OpenLayers OpenLayers

Ticket #1249 (assigned feature)

Opened 7 months ago

Last modified 3 months ago

Reproject centre point and vector layers when changing base layers

Reported by: openlayers Assigned to: edgemaster (accepted)
Priority: minor Milestone: 2.7 Release
Component: Map Version: 2.5
Keywords: reprojection Cc: grand.edgemaster@gmail.com, tom@compton.nu
State: Needs Discussion

Description

The attached patch recentres the map when base layers of different projections are changed between.

(also fixes a comment typo)

Attachments

OpenLayers.Map.patch (1.5 kB) - added by openlayers on 01/05/08 19:48:01.

Change History

01/05/08 19:48:01 changed by openlayers

  • attachment OpenLayers.Map.patch added.

01/15/08 15:22:56 changed by elemoine

  • state changed from Needs More Work to Needs Discussion.

oldProjection could be null so it is not safe to unconditionally dereference it.

How would we solve the case of base layers with different projections and no projection object specified?

02/22/08 07:31:50 changed by tomh

  • cc changed from grand.edgemaster@gmail.com to grand.edgemaster@gmail.com, tom@compton.nu.

03/21/08 14:01:55 changed by crschmidt

  • milestone set to 2.7 Release.

04/15/08 13:59:06 changed by edgemaster

  • owner changed from crschmidt to edgemaster.
  • status changed from new to assigned.
  • summary changed from Reproject centre point when changing base layers to Reproject centre point and vector layers when changing base layers.

I will work on the criticisms brought up by elemoine shortly.

My most recent work on this was added to my sandbox in r6888