[OpenLayers-Trac] [OpenLayers] #1551: moveTo does not work with multiple baselayers
OpenLayers
trac at openlayers.org
Sun May 18 16:21:36 EDT 2008
#1551: moveTo does not work with multiple baselayers
-------------------------------+--------------------------------------------
Reporter: ksgeograf | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.7 Release
Component: Map | Version: 2.6
Resolution: | Keywords:
State: Needs Discussion |
-------------------------------+--------------------------------------------
Changes (by elemoine):
* state: => Needs Discussion
Comment:
The change you're proposing doesn't make sense to me. First thing: you're
comparing a boolean value (isBaseLayer) to a Layer object
(this.baseLayer). Then, if what you actually want is {{{if (layer !=
this.baseLayer)}}}, I don't quite understand either, because since there's
only one base layer that is visible at one point in time (this.baseLayer),
we know the other base layers are invisible. And if we switch from one
base layer to another one, {{{setVisibility()}}} will take care of calling
{{{redraw()}}} on the new base layer (itself calling {{{moveTo()}}})
--
Ticket URL: <http://trac.openlayers.org/ticket/1551#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list