Add a graphic to the specified layer. You must create the layer first.
The graphic to be added
The layer ID to add the graphic to
A boolean returning true on success and false otherwise
Returns a copy of an array containing the current registered markup layers Do not modify this array!
Gets the map's graphics layers that are neither associated with the Essentials site nor used internally by GVH, all graphics layers except those excluded.
Create a new graphics layer and place it in the correct order in the map graphics layers collection.
Id of the graphics layer.
Reference to the ViewerApplication
One of "Pushpin", "Label", Highlight" or "Markup". Only required for layer creation. To simply retrieve a layer leave this out.
This method registers the markup layer as a clickable graphic layer
The markup layer
The application that this module belongs to
This method registers the stream layer as a clickable graphic layer
The stream layer
The application that this module belongs to
The display name for the Stream layer
This method registers a WFS layer as a clickable graphic layer
The WFS layer
The application that this module belongs to
The display name for the WFS layer
Call this function to remove an internal graphics layer. This just ensures that the internal layer count is correct and that new layers get added to the right location.
Id of the layer to remove
Type of layer being removed. No checks performed to see if this is 'right'
Convenience method to register a graphics layer as clickable if it's not been registered already.
The application this module belongs to
The optional Clickable Options
True if successfully registered, false otherwise.
Types of graphics layer created internally by the Viewer. These need to be kept in a certain order. Pushpins on top, labels below this, highlights underneath labels, and all above markup.