From dd066240c7bca61eaf0ad2da9feddcad3ff05a8e Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 3 Jul 2007 23:13:16 +0000 Subject: [PATCH] update nd docs git-svn-id: http://svn.openlayers.org/trunk/openlayers@3577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Markers.js | 45 +++++++++++++++++---------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/lib/OpenLayers/Layer/Markers.js b/lib/OpenLayers/Layer/Markers.js index 7c690dfe87..143e1dbc5f 100644 --- a/lib/OpenLayers/Layer/Markers.js +++ b/lib/OpenLayers/Layer/Markers.js @@ -7,6 +7,7 @@ * @requires Openlayers/Layer.js * * Class: OpenLayers.Layer.Markers + * * Inherits from: * - */ @@ -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 - {} @@ -91,7 +92,7 @@ OpenLayers.Layer.Markers.prototype = }, /** - * Method: removeMarker + * APIMethod: removeMarker * * Parameters: * 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 - {} - */ + * Method: drawMarker + * Calculate the pixel location for the marker, create it, and + * add it to the layer's div + * + * Parameters: + * marker - {} + */ drawMarker: function(marker) { var px = this.map.getLayerPxFromLonLat(marker.lonlat); if (px == null) {