LayersManagerInheritance: Layer > LayersCollection > LayersManager The LayersManager class handles all the layers above the map. In order to add a layer to the map, you should attach a layers manager object to the map. You can do that by the map’s setLayersManager method (the map has a default layers manager, you can get the object by calling the map’s getLayersManager method). When the layers manager is attached to the map, you can add any layer to this object.
See understanding the layers architecture
Summary | | | | | The LayersManager constructor. | | | | Returns the default layer of the layers manager. | | Sets a default layer to the layers manager. | | | | This event dispatches after the user clicks on a shape. | | This event dispatches after the user moves the mouse cursor over a shape. | | This event dispatches after the user moves the mouse cursor out of a shape. | | This event dispatches after the user finishes to build/draw a polygon. | | This event dispatches after the user finishes to build/draw a polyline. | | This event dispatches after the user finishes to build/draw a circle. | | This event dispatches after the user finishes to edit a shape (polygons, polylines, circles). | | This event dispatches after the user selects one shape or more (polygons, polylines, circles). |
LayersManagerThe LayersManager constructor.
getDefaultLayerReturns the default layer of the layers manager. ReturnThe default layer of the layers manager. See AlsosetDefaultLayer
setDefaultLayerSets a default layer to the layers manager. The default layer is used to enable users to draw shapes above the map ( Such as: Polygon, Polyline, Circle ) ParameterslocalVectorLayer | the layer style to set as default. |
See AlsogetDefaultLayer
LayersManager. EVENT_SHAPE_CLICKLayersManager.EVENT_SHAPE_CLICK |
This event dispatches after the user clicks on a shape. Arguments
LayersManager. EVENT_SHAPE_MOUSE_OVERLayersManager.EVENT_SHAPE_MOUSE_OVER |
This event dispatches after the user moves the mouse cursor over a shape. Arguments
LayersManager. EVENT_SHAPE_MOUSE_OUTLayersManager.EVENT_SHAPE_MOUSE_OUT |
This event dispatches after the user moves the mouse cursor out of a shape. Arguments
LayersManager. EVENT_POLYGON_BUILDLayersManager.EVENT_POLYGON_BUILD |
This event dispatches after the user finishes to build/draw a polygon. Arguments
LayersManager. EVENT_POLYGON_BUILDThis event dispatches after the user finishes to build/draw a polyline. Arguments
LayersManager. EVENT_POLYGON_BUILDThis event dispatches after the user finishes to build/draw a circle. Arguments
LayersManager. EVENT_SHAPE_EDITEDLayersManager.EVENT_SHAPE_EDITED |
This event dispatches after the user finishes to edit a shape (polygons, polylines, circles). Arguments
LayersManager. EVENT_SHAPE_SELECTEDLayersManager.EVENT_SHAPE_SELECTED |
This event dispatches after the user selects one shape or more (polygons, polylines, circles). Arguments
|