OpenLayers. Layer. Markers

Inherits from

Summary
{Boolean} Markers layer is never a base layer.
Create a Markers layer.
Calculates the max extent which includes all of the markers.

Properties

isBaseLayer

{Boolean} Markers layer is never a base layer.

Constructor

OpenLayers. Layer. Markers

Create a Markers layer.

Parameters

name{String}
options{Object} Hashtable of extra options to tag onto the layer

Functions

destroy

destroy: function()

addMarker

addMarker: function(marker)

Parameters

marker{OpenLayers.Marker}

removeMarker

removeMarker: function(marker)

Parameters

marker{OpenLayers.Marker}

getDataExtent

getDataExtent: function ()

Calculates the max extent which includes all of the markers.

Returns

{OpenLayers.Bounds}

destroy: function()
addMarker: function(marker)
removeMarker: function(marker)
getDataExtent: function ()
Calculates the max extent which includes all of the markers.
Instances of OpenLayers.Marker are a combination of a OpenLayers.LonLat and an OpenLayers.Icon.
Instances of this class represent bounding boxes.