AtlasCT.com
User Manual v5.0

LayersManager

Inheritance: 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
Inheritance: Layer > LayersCollection > LayersManager
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).

Constructors

LayersManager

LayersManager()

The LayersManager constructor.

Methods

getDefaultLayer

LocalVectorLayer getDefaultLayer()

Returns the default layer of the layers manager.

Return

The default layer of the layers manager.

See Also

setDefaultLayer

setDefaultLayer

setDefaultLayer(LocalVectorLayer localVectorLayer)

Sets 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 )

Parameters

localVectorLayerthe layer style to set as default.

See Also

getDefaultLayer

LayersManager Events

LayersManager. EVENT_SHAPE_CLICK

LayersManager.EVENT_SHAPE_CLICK

This event dispatches after the user clicks on a shape.

Arguments

senderLayersManager The sender object.
mapMap
layerLayer
shapeShape

LayersManager. EVENT_SHAPE_MOUSE_OVER

LayersManager.EVENT_SHAPE_MOUSE_OVER

This event dispatches after the user moves the mouse cursor over a shape.

Arguments

senderLayersManager The sender object.
mapMap
layerLayer
shapeShape

LayersManager. EVENT_SHAPE_MOUSE_OUT

LayersManager.EVENT_SHAPE_MOUSE_OUT

This event dispatches after the user moves the mouse cursor out of a shape.

Arguments

senderLayersManager The sender object.
mapMap
layerLayer
shapeShape

LayersManager. EVENT_POLYGON_BUILD

LayersManager.EVENT_POLYGON_BUILD

This event dispatches after the user finishes to build/draw a polygon.

Arguments

senderLayersManager The sender object.
layerLayer
polygonPolygon

LayersManager. EVENT_POLYGON_BUILD

This event dispatches after the user finishes to build/draw a polyline.

Arguments

senderLayersManager The sender object.
layerLayer
polylinePolyline

LayersManager. EVENT_POLYGON_BUILD

This event dispatches after the user finishes to build/draw a circle.

Arguments

senderLayersManager The sender object.
layerLayer
circleCircle

LayersManager. EVENT_SHAPE_EDITED

LayersManager.EVENT_SHAPE_EDITED

This event dispatches after the user finishes to edit a shape (polygons, polylines, circles).

Arguments

senderLayersManager The sender object.
shapesListArray of records of {Layer, Shape}

LayersManager. EVENT_SHAPE_SELECTED

LayersManager.EVENT_SHAPE_SELECTED

This event dispatches after the user selects one shape or more (polygons, polylines, circles).

Arguments

senderLayersManager The sender object.
shapesListArray of records of {Layer, Shape}
Inheritance: EventListener > Layer
Inheritance: Layer > LayersCollection
LayersManager()
The LayersManager constructor.
setDefaultLayer(LocalVectorLayer localVectorLayer)
Sets a default layer to the layers manager.
LocalVectorLayer getDefaultLayer()
Returns the default layer of the layers manager.
LayersManager.EVENT_SHAPE_CLICK
This event dispatches after the user clicks on a shape.
LayersManager.EVENT_SHAPE_MOUSE_OVER
This event dispatches after the user moves the mouse cursor over a shape.
LayersManager.EVENT_SHAPE_MOUSE_OUT
This event dispatches after the user moves the mouse cursor out of a shape.
LayersManager.EVENT_POLYGON_BUILD
This event dispatches after the user finishes to build/draw a polygon.
LayersManager.EVENT_SHAPE_EDITED
This event dispatches after the user finishes to edit a shape (polygons, polylines, circles).
LayersManager.EVENT_SHAPE_SELECTED
This event dispatches after the user selects one shape or more (polygons, polylines, circles).
t.setLayersManager = function(_layersManager)
Sets the layers manager of the map.
t.getLayersManager = function()
Returns the layers manager of the map.
Inheritance: Layer > VectorLayer > LocalVectorLayer
Inheritance: EventListener > Map
The Shape class is used to define a shape (Marker, Polygon, Polyline, Circle) to be drawn on the map.
In order to add any shape on the map you should add the shape object to the map’s LayersManager object.

Inheritance: Shape > Poly > Polygon
Inheritance: Shape > Poly > Polyline
Inheritance: Shape > Circle