Project

General

Profile

1
OpenLayers.Layer.Markers
2

    
3
The base class for all vector drawing, The OpenLayers.Layer.Markers layer is the primary way to get annotations into your map. 
4

    
5
* Constructor
6
  OpenLayers.Layer.Markers(name, options) -- Name and options for layer.
7

    
8
* Methods
9
  addMarker({OpenLayers.Marker|Marker}) -- none -- Adds a marker to the layer, sets the map object on the marker, and calls drawMarker on the marker.
10
  removeMarker({OpenLayers.Marker|Marker}) -- none -- Remove the marker from the layer and map.
11
  clearMarkers() -- none -- Remove all markers from the layer with removeMarker.
12
  redraw() -- none -- Redraw all markers. Used so that markers can change their position when a base layer changes.
13
  drawMarker -- none -- Call marker.draw(px), which passes the Pixel of the latitude/longitude in the map viewport to the marker. adds the marker to the div, and marks the marker as drawn.
(19-19/34)