| 1 |
Index: lib/OpenLayers/Layer/Markers.js |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- lib/OpenLayers/Layer/Markers.js (revision 2286) |
|---|
| 4 |
+++ lib/OpenLayers/Layer/Markers.js (working copy) |
|---|
| 5 |
@@ -31,6 +31,10 @@ |
|---|
| 6 |
initialize: function(name, options) { |
|---|
| 7 |
OpenLayers.Layer.prototype.initialize.apply(this, arguments); |
|---|
| 8 |
this.markers = new Array(); |
|---|
| 9 |
+ |
|---|
| 10 |
+ if (this.map && this.map.getExtent()) { |
|---|
| 11 |
+ this.markers.viewRequestID = this.map.viewRequestID; |
|---|
| 12 |
+ } |
|---|
| 13 |
}, |
|---|
| 14 |
|
|---|
| 15 |
/** |
|---|
| 16 |
@@ -51,9 +55,13 @@ |
|---|
| 17 |
moveTo:function(bounds, zoomChanged, dragging) { |
|---|
| 18 |
OpenLayers.Layer.prototype.moveTo.apply(this, arguments); |
|---|
| 19 |
|
|---|
| 20 |
- if (zoomChanged) { |
|---|
| 21 |
+ if (zoomChanged || |
|---|
| 22 |
+ (this.map && |
|---|
| 23 |
+ this.markers.viewRequestID != this.map.viewRequestID)) { |
|---|
| 24 |
this.redraw(); |
|---|
| 25 |
} |
|---|
| 26 |
+ |
|---|
| 27 |
+ this.markers.viewRequestID = this.map.viewRequestID; |
|---|
| 28 |
}, |
|---|
| 29 |
|
|---|
| 30 |
/** |
|---|