| OpenLayers. | |
| Properties | |
| isBaseLayer | {Boolean} Markers layer is never a base layer. |
| markers | {Array(OpenLayers.Marker)} internal marker list |
| drawn | {Boolean} internal state of drawing. |
| Constructor | |
| OpenLayers. | Create a Markers layer. |
| Functions | |
| destroy | |
| setOpacity | Sets the opacity for all the markers. |
| moveTo | |
| addMarker | |
| removeMarker | |
| clearMarkers | This method removes all markers from a layer. |
| drawMarker | Calculate the pixel location for the marker, create it, and add it to the layer’s div |
| getDataExtent | Calculates the max extent which includes all of the markers. |
{Array(OpenLayers.Marker)} internal marker list
moveTo:function( bounds, zoomChanged, dragging )
| bounds | {OpenLayers.Bounds} |
| zoomChanged | {Boolean} |
| dragging | {Boolean} |
drawMarker: function( marker )
Calculate the pixel location for the marker, create it, and add it to the layer’s div
| marker | {OpenLayers.Marker} |
destroy: function()
Sets the opacity for all the markers.
setOpacity: function( opacity )
moveTo:function( bounds, zoomChanged, dragging )
addMarker: function( marker )
removeMarker: function( marker )
This method removes all markers from a layer.
clearMarkers: function()
Calculate the pixel location for the marker, create it, and add it to the layer’s div
drawMarker: function( marker )
Calculates the max extent which includes all of the markers.
getDataExtent: function ()