Changeset 3098
- Timestamp:
- 04/26/07 19:29:10 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/Markers.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/Markers.js
r1721 r3098 22 22 * @type Array(OpenLayers.Marker) */ 23 23 markers: null, 24 25 26 /** internal state of drawing. This is a workaround for the fact 27 * that the map does not call moveTo with a zoomChanged when the 28 * map is first starting up. This lets us catch the case where we 29 * have *never* drawn the layer, and draw it even if the zoom hasn't 30 * changed. 31 * @type Boolean */ 32 drawn: false, 24 33 25 34 /** … … 52 61 OpenLayers.Layer.prototype.moveTo.apply(this, arguments); 53 62 54 if (zoomChanged ) {63 if (zoomChanged || !this.drawn) { 55 64 this.redraw(); 65 this.drawn = true; 56 66 } 57 67 },
