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