LocalVectorLayerInheritance: Layer > VectorLayer > LocalVectorLayer The LocalVectorLayer class allows you to add various of shapes (Polygon, Polyline, Circle, Marker) above the map. See understanding the layers architecture Summary
getShapeById
Returns the shape whose ID is specified. Parameters
ReturnsA reference to the shape instance, or null if there is no shape with the specified ID. removeShapeById
Removes the shape whose ID is specified. Parameters
ReturnsA reference to the shape instance, or null if there is no shape with the specified ID. setClustering
Sets the clustering level of the layer’s markers drawing method. Parameters
|
|
|
When you set the clustering level to high, the layer clusters a bunch of close markers and draw them as one marker
When you set the clustering level to none, the layer doesn’t use the clustering method at all.
|
|
removeAll() |
Array[] Shape getShapes() |
|
LocalVectorLayer.CLUSTERING_NONE |
LocalVectorLayer.CLUSTERING_LOW |
LocalVectorLayer.CLUSTERING_MEDIUM |
LocalVectorLayer.CLUSTERING_HIGH |
In order to add any shape on the map you should add the shape object to the map’s LayersManager object.