ArcGIS Runtime SDK for iOS
100.15
|
A class representing a component of a vector marker. A single instance of AGSVectorMarkerSymbolElement
is a combination of a symbol and a geometry.
The symbol held by the element is itself an instance of AGSMultilayerSymbol
. The geometry of the element does not pertain to the geography of the Map or Scene. Rather, the geometry property describes the shape of the symbol
. The coordinate values defining the geometry are in points. This behavior facilitates creating a custom vector marker symbol element of custom shape and symbol, then combining it with zero or more other elements to form a vector marker.
When rendering, the symbol draws according to the shape of the geometry, which is defined relative to other elements in the layer. (The coordinates used to define element geometry are not in real units.)
To create a red square, for example, construct an instance AGSVectorMarkerSymbolElement
with a AGSMultilayerPolygonSymbol
that contains a red AGSSolidFillSymbolLayer
and a square geometry. When combined in a AGSVectorMarkerSymbolElement
and placed in a AGSVectorMarkerSymbolLayer
a red square displays.
The symbol and geometry properties must create a meaningful combination to have a visual effect. For example, a AGSMultilayerPolygonSymbol
does not draw anything if the corresponding geometry is a point, but does draw if the geometry is a polygon.
Instance Methods | |
(instancetype) | - initWithGeometry:multilayerSymbol: |
Class Methods | |
(instancetype) | + vectorMarkerSymbolElementWithGeometry:multilayerSymbol: |
Properties | |
AGSGeometry * | geometry |
AGSMultilayerSymbol * | symbol |
- (instancetype) initWithGeometry: | (AGSGeometry *) | geometry | |
multilayerSymbol: | (AGSMultilayerSymbol *) | multilayerSymbol | |
Initialize a vector marker symbol element with the provided parameters
geometry | Geometry that defines the shape of the symbol. |
multilayerSymbol | The element's symbol |
+ (instancetype) vectorMarkerSymbolElementWithGeometry: | (AGSGeometry *) | geometry | |
multilayerSymbol: | (AGSMultilayerSymbol *) | multilayerSymbol | |
Initialize a vector marker symbol element with the provided parameters
geometry | Geometry that defines the shape of the symbol. |
multilayerSymbol | The element's symbol |
|
readwritenonatomicstrong |
The geometry of the vector marker symbol element. When setting a geometry, the corresponding symbol must be appropriate for the desired drawing effect. For instance, a polygon geometry would pair best with a AGSMultilayerPolygonSymbol
and would draw the symbol with the polygon geometry.
|
readwritenonatomicstrong |
The symbol of the vector marker symbol element. The symbol, an instance of AGSMultilayerSymbol
can be any arbitrary multilayer symbol. When setting a geometry, the corresponding symbol must be appropriate for the desired drawing effect. For instance, an instance of AGSMultilayerPolygonSymbol
would pair best with a polygon geometry and would draw the symbol with the polygon geometry.