Graphics Overlay
Contains a collection of graphics for display in a map or scene view. Graphics overlays display on top of all other data in a map or scene view. A graphics overlay can contain graphics of various geometry types and can define symbology for the graphics it contains using its GraphicsOverlay.getRenderer().
A graphic's Z-index can be used to define its draw order in the collection and is mostly relevant for display in a two dimensional map. For dynamic 3D rendering (in a scene), graphic display order is determined by the distance to the camera rather than by Z-index. Z-index is considered, however, when using static rendering in a scene (draping graphics on the surface, in other words).
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 Graphic.getZIndex() 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.
Constructors
Creates a graphics overlay object containing the given graphics.
Functions
Deselect all graphics in the graphics overlay.
Selects the specified graphics. Any graphics that are not in the overlay will be ignored.
Unselects the specified graphics. Any graphics that are not in the overlay will be ignored.
Properties
Calculate and return the extent of the graphics contained in the overlay's graphics collection. The extent's spatial reference is that of the GeoView that contains the overlay. If the overlay is not in a view, returns null. If the overlay is in a view but that view does not yet have a spatial reference, returns null. If the overlay is in a view with a spatial reference, but has no graphics, then an empty envelope will be returned.
A flag indicating whether the PopupDefinition defined on the PopupSource is enable / disable. Will return false if an error occurs.
Whether the overlay's symbols and labels honor the map reference scale when displayed in a map view. If the map 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 map has no reference scale, the reference scale is zero, or GraphicsOverlay.getScaleSymbols() is false, the symbols and labels will be drawn at their fixed screen size. The default value is 'false'. GraphicsOverlay.scaleSymbols only affects display in a MapView. The symbols and labels will be displayed at fixed screen size in a SceneView.