OpenLayers OpenLayers

Ticket #182 (closed feature: fixed)

Opened 4 years ago

Last modified 3 years ago

Pick Best Zoom Level on switching Base Layers

Reported by: euzuro Assigned to: euzuro
Priority: major Milestone: 2.2 Release
Component: general Version:
Keywords: Cc:
State:

Description

Currently, when user switches between baselayers, the new baselayer just inherits the old base layer's extent and zoom level.

For the moment this seems fine as all our baselayers' zoom levels seem to be in synch, but this will not always be the case.

What should be done is a getExtent() on the old baselayer and then a GetZoomForBounds() on the new one.

Change History

08/16/06 16:53:00 changed by euzuro

  • status changed from new to assigned.

08/21/06 18:39:50 changed by euzuro

similarly, it should be noted that gridded overlays currently will not work correctly unless their resolutions array is exactly the same as that of the baselayer.

we need a good way of synchronizing all this across the [back to the drawing] board.

09/14/06 10:25:03 changed by crschmidt

  • milestone changed from 2.1 Release to 2.2 Release.

10/02/06 10:44:21 changed by sderle

  • priority changed from minor to major.

10/05/06 00:07:55 changed by euzuro

  • status changed from assigned to closed.
  • resolution set to fixed.

fixed with r1582