Bug 186

Summary: [Chameleon 1.1] Locate Widget doesn't center new point
Product: Chameleon Reporter: Paul Spencer <pspencer@dmsolutions.ca>
Component: WidgetAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P3    
Version: 1.99   
Target Milestone: 1.99 beta 4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description From 2004-01-19 08:53:03
When zooming to a new location found by the Locate widget, the map does not
center on the new location.  This is because the location is calculated in pixel
coordinates at the full map scale and then a zoom scale at the pixel location is
performed.  The new location can be significantly offset from the center of the
map once this operation is performed.

A work around is to add code to recalculate the pixel location of the point
after the zoom scale and then do a recenter on that pixel location.

The real solution would be to set the map extents directly from the geographic
center and scale value without any pixel calculations.
------- Comment #1 From 2004-04-08 08:40:54 -------
updated version to 1.99
------- Comment #2 From 2004-07-08 10:58:32 -------
Changed target to 1.99 beta 3.
------- Comment #3 From 2004-10-07 16:49:40 -------
fixed in cvs.  The locate widget now zooms to the approximate location then
recenters on the actual geographic coordinates (within a few pixels).
------- Comment #4 From 2004-10-25 07:57:46 -------
Changed target for verification to 1.99 RC 1.