OpenLayers JavaScript Mapping Library |
OpenLayers. MarkerInstances of OpenLayers.Marker are a combination of a OpenLayers.LonLat and an OpenLayers.Icon. Markers are generally added to a special layer called OpenLayers.Layer.Markers. Examplevar markers = new OpenLayers.Layer.Markers( "Markers" ); Note that if you pass an icon into the Marker constructor, it will take that icon and use it. This means that you should not share icons between markers -- you use them once, but you should clone() for any additional markers using that same icon. Summary
OpenLayers. MarkerParaemeters
|
Destroy the marker.
destroy: function()