ArcGIS Runtime SDK for iOS
100.15
|
An overlay to display graphics on the map.
Instances of this class represent a graphics overlay that can display graphics on top of a map. Graphics may represent temporary data in your application, such as the results of a query or an analysis, or may be used to highlight existing content in the map.
Each graphic contains a geometry describing the location and the shape of the graphic. A graphics overlay typically contains graphics
based on a single geometry type (Point, Multipoint, Polyline, or Polygon). Each graphic can be associated with an AGSSymbol
which controls how the graphic looks. Alternatively, the overlay can be associated with an AGSRenderer
which manages the appearance of all graphics in the layer.
Instance Methods | |
(void) | - clearSelection |
(NSArray< AGSGraphic * > *) | - selectedGraphics |
(void) | - selectGraphics: |
(void) | - unselectGraphics: |
Class Methods | |
(instancetype) | + graphicsOverlay |
Properties | |
AGSEnvelope * | extent |
NSMutableArray< AGSGraphic * > * | graphics |
NSMutableArray< AGSLabelDefinition * > * | labelDefinitions |
BOOL | labelsEnabled |
double | maxScale |
double | minScale |
float | opacity |
NSString * | overlayID |
AGSPopupDefinition * | popupDefinition |
BOOL | popupEnabled |
AGSRenderer * | renderer |
AGSGraphicsRenderingMode | renderingMode |
BOOL | scaleSymbols |
AGSLayerSceneProperties * | sceneProperties |
AGSColor * | selectionColor |
BOOL | visible |
- (void) clearSelection |
Clears selection on all graphics.
+ (instancetype) graphicsOverlay |
Initializes an AGSGraphicsOverlay.
- (NSArray<AGSGraphic*>*) selectedGraphics |
An array of AGSGraphic
objects representing graphics that have selection enabled Graphics with selection enabled will be drawn using selectionColor
.
- (void) selectGraphics: | (NSArray< AGSGraphic * > *) | graphics |
Select the specified graphics. The map or scene will be updated to render the graphics with selectionColor
.
graphics | to select. |
- (void) unselectGraphics: | (NSArray< AGSGraphic * > *) | graphics |
Disable selection on the specified graphics. The map or scene will be redrawn to reflect the change.
graphics | to unselect. |
|
readnonatomicstrong |
The extent of the graphics overlay.
|
readnonatomicstrong |
The list of graphics in the graphics overlay.
If Z-index for graphics is not set, they will usually render in the order in which they were added to the graphics overlay, the first added is rendered first and subsequent ones on top. In rare cases, the rendering algorithm may change the display order to provide more efficient rendering. If ordering is important, set the AGSGraphic::zIndex
property explicitly on graphics. You can also place graphics of the same geometry type in their own graphics overlay and manage the order of the overlays in the view.
|
readnonatomicstrong |
Defines how labels should be displayed.
|
readwritenonatomicassign |
Indicates whether or not graphics in this overlay will be labelled.
|
readwritenonatomicassign |
The maximum scale at which this overlay is visible. If the map or scene is zoomed in beyond this scale, the overlay will not be visible. A value of 0 means there is no maximum scale threshold and the overlay will be visible at the smallest scale available for the map or scene.
|
readwritenonatomicassign |
The minimum scale at which this overlay is visible. If the map or scene is zoomed out beyond this scale, the overlay will not be visible. A value of 0 means there is no minimum scale threshold and the overlay will be visible at the largest scale available for the map or scene.
|
readwritenonatomicassign |
The opacity of content in this overlay. Default value is 1 (fully opaque). Permitted values are between 0-1 (inclusive).
|
readwritenonatomiccopy |
Identifier for this overlay. Defaults to an empty string. Does not need to be unique.
|
readwritenonatomicstronginherited |
The AGSPopupDefinition
associated with the popup source. This property will be nil
if an error occurs or if the popup source is not associated with a popup definition.
|
readwriterequirednonatomicassigninherited |
Indicates whether popups are enabled on this source.
|
readwritenonatomicstrong |
The renderer assigned to the overaly which is responsible for symbolizing the graphics. It is optional as each graphic may have it's own symbol. If a graphic has a symbol, that will be used for drawing the graphic instead of the renderer.
|
readwritenonatomicassign |
The rendering mode of the graphics. Default is AGSGraphicsRenderingModeDynamic
.
|
readwritenonatomicassign |
Whether the overlay's symbols and labels honor the AGSMap
reference scale when displayed in an AGSMapView
. If the AGSMap
has a positive reference scale, and the overlay honors it, then symbols and labels will be drawn at their specified size when the viewing scale is the same as the reference scale. They will grow or shrink as the view zooms in or out, to keep the symbol a fixed size on the map. If the AGSMap
has no reference scale, the reference scale is 0
, or the AGSGraphicOverlay::scaleSymbols
property is NO
, the symbols and labels will be drawn at their fixed screen size.
The default value is NO
.
AGSGraphicOverlay::scaleSymbols
only affects display in an AGSMapView
. The symbols and labels will be displayed at fixed screen size in an AGSSceneView
.
|
readwritenonatomicstrong |
Properties to apply only when rendering data in 3D scenes using AGSSceneView
.
|
readwritenonatomicstrong |
The color to use for drawing a halo around selected graphics. Default is cyan.
color
property exposed through AGSGeoView::selectionProperties
.
|
readwritenonatomicassign |
Indicates whether this overlay is visible on the map or not.