[OpenLayers-Trac] [OpenLayers] #1551: moveTo does not work with multiple baselayers
OpenLayers
trac at openlayers.org
Sun May 18 09:36:44 EDT 2008
#1551: moveTo does not work with multiple baselayers
-----------------------+----------------------------------------------------
Reporter: ksgeograf | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.7 Release
Component: general | Version: 2.6
Keywords: | State:
-----------------------+----------------------------------------------------
Even though it is uncommon to have several base layers, it is sometimes
usefull to be able to switch back and forth.
In the current implementation of Map.js moveTo(), the move checks if the
layer to move is the baseLayer, the lines are:
{{{
for (var i = 0; i < this.layers.length; i++) {
var layer = this.layers[i];
if (!layer.isBaseLayer) {
var inRange = layer.calculateInRange();
if (layer.inRange != inRange) {
}}}
the line
{{{if (!layer.isBaseLayer) {}}}
should be changed to
{{{if (layer.isBaseLayer != this.baseLayer) {}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/1551>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list