Class MultilayerPolygonSymbol

  • All Implemented Interfaces:
    JsonSerializable

    public final class MultilayerPolygonSymbol
    extends MultilayerSymbol
    Used to render polygon geometries, these symbols are built from multiple layers of symbols. They may be returned from polygon feature layers based on web maps, feature services, or mobile map packages, and can also be created from JSON by calling Symbol.fromJson(String).

    The symbol layers that comprise a MultilayerPolygonSymbol can be of different symbol types. For example, a MultilayerPolygonSymbol may contain fill symbol layers that draw the interior of the polygon, line (stroke) symbol layers that draw the outline of the polygon, and also point (marker) symbol layers that are drawn at specified point locations relative to the polygon. The layers that comprise the symbol can be accessed programmatically through MultilayerSymbol.getSymbolLayers(). The color property can also be changed programmatically. For more information about multilayer symbols, refer to Symbols in the ArcGIS Pro help.

    Since:
    100.2.0
    • Constructor Detail

      • MultilayerPolygonSymbol

        public MultilayerPolygonSymbol​(Iterable<SymbolLayer> symbolLayers)
        Creates a multilayer polygon symbol from the given symbol layers. Any modification of the given collection of symbol layers will be ignored, use MultilayerSymbol.getSymbolLayers() to add or remove symbol layers. By default the color is 0x00000000 (no color).
        Parameters:
        symbolLayers - symbol layers for the symbol, cannot be null
        Throws:
        IllegalArgumentException - if symbolLayers is null
        Since:
        100.5.0
      • MultilayerPolygonSymbol

        public MultilayerPolygonSymbol​(Iterable<SymbolLayer> symbolLayers,
                                       SymbolReferenceProperties referenceProperties)
        Creates a multilayer polygon symbol object with symbol layers and SymbolReferenceProperties.
        Parameters:
        symbolLayers - a collection of symbol layers that make up the symbol
        referenceProperties - the symbol reference properties for the symbol, may be null
        Throws:
        IllegalArgumentException - if symbolLayers is null
        Since:
        100.13.0