OpenLayers OpenLayers

Ticket #262 (closed feature: fixed)

Opened 2 years ago

Last modified 2 years ago

all layers don't need to be redrawn all the time when a base layer changes

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

Description

Currently, whenever a base layer is changed, all layers are redrawn. In Map.setBaseLayer, by setting this.zoom = null, the zoomChange flag is raised with the subsequent setCenter call.

I don't know enough about the commercial layers to be sure, but it seems to me that all layers only need to be redrawn when the resolution/zoom relationship changes with the change in base layer.

If that is so, it seems like the this.zoom = null line could be made a bit smarter (comparing for the resolution/zoom relationship in the old and new base layers).

Also, the above would be easier if you could do something like Layer.getResolution({zoom: zoom}) - but I can't tell if that idea makes sense to anybody else. (Allowing for options to be sent to the getZoom, getExtent, getResolution functions instead of getResolutionForZoom et al.)

Change History

09/14/06 11:25:57 changed by crschmidt

  • milestone changed from 2.1 Release to 2.2 Release.

10/02/06 12:02:08 changed by euzuro

  • owner set to euzuro.
  • status changed from new to assigned.

10/02/06 12:02:26 changed by sderle

also might make sense to look at layer.srs

10/05/06 01:07:22 changed by euzuro

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

fixed with r1582