Class MultilayerPolygonSymbol

All Implemented Interfaces:
JsonSerializable

public final class MultilayerPolygonSymbol extends MultilayerSymbol
A polygon symbol built with multiple layers of symbols to display graphics and features that have polygon geometry.

A MultilayerPolygonSymbol can contain multiple layers that are combined to create different appearances, for example, a polygon with a marker in the center. The individual layers have their own properties such as width, height, and offset, and can be accessed programmatically through MultilayerSymbol.getSymbolLayers(). For more information about multilayer symbols, refer to Symbol layers.

If you create a MultilayerPolygonSymbol from a collection of SymbolLayer objects, the first symbol layer in the collection will be drawn first, with the second symbol layer on top of the first, and so on. Note that symbol layers in a multilayer symbol are in reverse order of how they appear in the JSON representation.

Since:
100.2.0
  • Constructor Details

    • 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