An additional layer of objects applied to the map. Objects placed in the layer are instances of classes derived from EMAPI.Object class.
EMAPI. | An additional layer of objects applied to the map. |
Functions | |
EMAPI. | The constructor of a new instance of the EMAPI.VectorLayer class. |
addObjects | Adds new objects to the layer. |
bringToFront | Brings layer on the top of displayed layers. |
removeObjects | Removes objects from the layer. |
clearObjects | Removes all objects from the layer. |
setMap | Sets the layer on the map. |
setVisibility | Sets layer visibility on the map. |
count | Returns an amount of objects in the layer. |
getBounds | Returns the rectangle’s coordinates of the current map view which include all layer objects. |
destroy | Destroys an object of EMAPI.VectorLayer. |
addObjects: function( objects )
Adds new objects to the layer.
objects | {Array(EMAPI.Object)} The list of objects which should be placed on a layer. |
removeObjects: function( objects )
Removes objects from the layer.
objects | {Array(EMAPI.Object)} The list of objects which have to be removed from the layer. |
setMap: function( map )
Sets the layer on the map.
map | {EMAPI.Map} he instance of the map, where the layer will be put on. |
getBounds: function ()
Returns the rectangle’s coordinates of the current map view which include all layer objects.
{EMAPI.Bounds} The EMAPI.Bounds object representing the range of the map.
Adds new objects to the layer.
addObjects: function( objects )
Brings layer on the top of displayed layers.
bringToFront: function ()
Removes objects from the layer.
removeObjects: function( objects )
Removes all objects from the layer.
clearObjects: function()
Sets the layer on the map.
setMap: function( map )
Sets layer visibility on the map.
setVisibility: function( visibility )
Returns an amount of objects in the layer.
count:function()
Returns the rectangle’s coordinates of the current map view which include all layer objects.
getBounds: function ()
Destroys an object of EMAPI.VectorLayer.
destroy: function()