Bug 186 - [Chameleon 1.1] Locate Widget doesn't center new point
: [Chameleon 1.1] Locate Widget doesn't center new point
Status: RESOLVED FIXED
: Chameleon
Widget
: 1.99
: PC Windows XP
: P3 minor
: 1.99 beta 4
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-01-19 08:53 by
Modified: 2004-12-02 21:32 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


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.