update nd docs

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-07-03 23:13:16 +00:00
parent c06608c7d0
commit dd066240c7

View File

@@ -7,6 +7,7 @@
* @requires Openlayers/Layer.js
*
* Class: OpenLayers.Layer.Markers
*
* Inherits from:
* - <OpenLayers.Layer>
*/
@@ -15,7 +16,7 @@ OpenLayers.Layer.Markers.prototype =
OpenLayers.Class.inherit( OpenLayers.Layer, {
/**
* Property: isBaseLayer
* APIProperty: isBaseLayer
* {Boolean} Markers layer is never a base layer.
*/
isBaseLayer: false,
@@ -37,20 +38,20 @@ OpenLayers.Layer.Markers.prototype =
drawn: false,
/**
* Constructor: OpenLayers.Layer.Markers
* Create a Markers layer.
*
* Parameters:
* name - {String}
* options - {Object} Hashtable of extra options to tag onto the layer
*/
* Constructor: OpenLayers.Layer.Markers
* Create a Markers layer.
*
* Parameters:
* name - {String}
* options - {Object} Hashtable of extra options to tag onto the layer
*/
initialize: function(name, options) {
OpenLayers.Layer.prototype.initialize.apply(this, arguments);
this.markers = new Array();
},
/**
* Method: destroy
* APIMethod: destroy
*/
destroy: function() {
this.clearMarkers();
@@ -77,7 +78,7 @@ OpenLayers.Layer.Markers.prototype =
},
/**
* Method: addMarker
* APIMethod: addMarker
*
* Parameters:
* marker - {<OpenLayers.Marker>}
@@ -91,7 +92,7 @@ OpenLayers.Layer.Markers.prototype =
},
/**
* Method: removeMarker
* APIMethod: removeMarker
*
* Parameters:
* marker - {<OpenLayers.Marker>}
@@ -116,10 +117,10 @@ OpenLayers.Layer.Markers.prototype =
},
/**
* Method: redraw
* clear all the marker div's from the layer and then redraw all of them.
* Use the map to recalculate new placement of markers.
*/
* APIMethod: redraw
* Clear all the marker div's from the layer and then redraw all of them.
* Use the map to recalculate new placement of markers.
*/
redraw: function() {
for(i=0; i < this.markers.length; i++) {
this.drawMarker(this.markers[i]);
@@ -127,13 +128,13 @@ OpenLayers.Layer.Markers.prototype =
},
/**
* Method: drawMarker
* *Private*. Calculate the pixel location for the marker, create it, and
* add it to the layer's div
*
* Parameters:
* marker - {<OpenLayers.Marker>}
*/
* Method: drawMarker
* Calculate the pixel location for the marker, create it, and
* add it to the layer's div
*
* Parameters:
* marker - {<OpenLayers.Marker>}
*/
drawMarker: function(marker) {
var px = this.map.getLayerPxFromLonLat(marker.lonlat);
if (px == null) {