An additional layer of grouped objects applied on the map. Objects placed in the layer are instances of classes derived from EMAPI.Object.PointObject class.
| EMAPI. | An additional layer of grouped objects applied on the map. |
| Functions | |
| EMAPI. | The constructor of a new instance of the EMAPI.ClusterLayer class. |
| addObjects | Adds new object to the layer |
| removeObjects | Removes objects from the layer. |
| clearObjects | Removes all object 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.ClusterLayer. |
The constructor of a new instance of the EMAPI.ClusterLayer class.
| name | {String} Layer name. |
| options | {Object} The object with additional parameters of the class instance e. g. iconCreateFunction (name of the own function which generate grouping icons EMAPI.Icon class), showCoverageOnHover (selecting ranges of grouping icons). |
addObjects: function( a )
Adds new object to the layer
| objects | {Array(EMAPI.Object.PointObject)} The list of objects which should be placed on a layer. |
removeObjects: function( a )
Removes objects from the layer.
| objects | {Array(EMAPI.Object.PointObject)} The list of objects which have to be removed from the layer. |
setMap: function( map )
Sets the layer on the map.
| map | {EMAPI.Map} The 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 object to the layer
addObjects: function( a )
Removes objects from the layer.
removeObjects: function( a )
Removes all object 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.ClusterLayer.
destroy: function()