Changeset 3577
- Timestamp:
- 07/03/07 19:13:16 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/Markers.js (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/Markers.js
r3553 r3577 8 8 * 9 9 * Class: OpenLayers.Layer.Markers 10 * 10 11 * Inherits from: 11 12 * - <OpenLayers.Layer> … … 16 17 17 18 /** 18 * Property: isBaseLayer19 * APIProperty: isBaseLayer 19 20 * {Boolean} Markers layer is never a base layer. 20 21 */ … … 38 39 39 40 /** 40 * Constructor: OpenLayers.Layer.Markers41 * Create a Markers layer.42 *43 * Parameters:44 * name - {String}45 * options - {Object} Hashtable of extra options to tag onto the layer46 */41 * Constructor: OpenLayers.Layer.Markers 42 * Create a Markers layer. 43 * 44 * Parameters: 45 * name - {String} 46 * options - {Object} Hashtable of extra options to tag onto the layer 47 */ 47 48 initialize: function(name, options) { 48 49 OpenLayers.Layer.prototype.initialize.apply(this, arguments); … … 51 52 52 53 /** 53 * Method: destroy54 * APIMethod: destroy 54 55 */ 55 56 destroy: function() { … … 78 79 79 80 /** 80 * Method: addMarker81 * APIMethod: addMarker 81 82 * 82 83 * Parameters: … … 92 93 93 94 /** 94 * Method: removeMarker95 * APIMethod: removeMarker 95 96 * 96 97 * Parameters: … … 117 118 118 119 /** 119 *Method: redraw120 * clear all the marker div's from the layer and then redraw all of them.121 * Use the map to recalculate new placement of markers.122 */120 * APIMethod: redraw 121 * Clear all the marker div's from the layer and then redraw all of them. 122 * Use the map to recalculate new placement of markers. 123 */ 123 124 redraw: function() { 124 125 for(i=0; i < this.markers.length; i++) { … … 128 129 129 130 /** 130 * Method: drawMarker131 * *Private*.Calculate the pixel location for the marker, create it, and132 * add it to the layer's div133 *134 * Parameters:135 * marker - {<OpenLayers.Marker>}136 */131 * Method: drawMarker 132 * Calculate the pixel location for the marker, create it, and 133 * add it to the layer's div 134 * 135 * Parameters: 136 * marker - {<OpenLayers.Marker>} 137 */ 137 138 drawMarker: function(marker) { 138 139 var px = this.map.getLayerPxFromLonLat(marker.lonlat);
