[OpenLayers-Commits] r3577 - trunk/openlayers/lib/OpenLayers/Layer
commits at openlayers.org
commits at openlayers.org
Tue Jul 3 19:13:17 EDT 2007
Author: euzuro
Date: 2007-07-03 19:13:16 -0400 (Tue, 03 Jul 2007)
New Revision: 3577
Modified:
trunk/openlayers/lib/OpenLayers/Layer/Markers.js
Log:
update nd docs
Modified: trunk/openlayers/lib/OpenLayers/Layer/Markers.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Markers.js 2007-07-03 22:54:42 UTC (rev 3576)
+++ trunk/openlayers/lib/OpenLayers/Layer/Markers.js 2007-07-03 23:13:16 UTC (rev 3577)
@@ -7,6 +7,7 @@
* @requires Openlayers/Layer.js
*
* Class: OpenLayers.Layer.Markers
+ *
* Inherits from:
* - <OpenLayers.Layer>
*/
@@ -15,7 +16,7 @@
OpenLayers.Class.inherit( OpenLayers.Layer, {
/**
- * Property: isBaseLayer
+ * APIProperty: isBaseLayer
* {Boolean} Markers layer is never a base layer.
*/
isBaseLayer: false,
@@ -37,20 +38,20 @@
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 @@
},
/**
- * Method: addMarker
+ * APIMethod: addMarker
*
* Parameters:
* marker - {<OpenLayers.Marker>}
@@ -91,7 +92,7 @@
},
/**
- * Method: removeMarker
+ * APIMethod: removeMarker
*
* Parameters:
* marker - {<OpenLayers.Marker>}
@@ -116,10 +117,10 @@
},
/**
- * 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 @@
},
/**
- * 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) {
More information about the Commits
mailing list