Skip to content

Commit

Permalink
Making it so overlays at the top of the draw stack get the moveTo cal…
Browse files Browse the repository at this point in the history
…l first (base layer still gets the first moveTo). p=mosesonline, r=me (closes #3230)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
  • Loading branch information
tschaub committed Mar 31, 2011
1 parent baf35ae commit 66dabae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenLayers/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ OpenLayers.Map = OpenLayers.Class({

bounds = this.baseLayer.getExtent();

for (var i=0, len=this.layers.length; i<len; i++) {
for (var i=this.layers.length-1; i>=0; --i) {
var layer = this.layers[i];
if (layer !== this.baseLayer && !layer.isBaseLayer) {
var inRange = layer.calculateInRange();
Expand Down

0 comments on commit 66dabae

Please sign in to comment.