MapTools.org

[Chameleon-dev] [Bug 186] New: [Chameleon 1.1] Locate Widget doesn't center new point

bugzilla-daemon@www.maptools.org bugzilla-daemon@www.maptools.org
Mon, 19 Jan 2004 08:53:04 -0500
http://www.maptools.org/bugzilla/show_bug.cgi?id=186

           Summary: [Chameleon 1.1] Locate Widget doesn't center new point
           Product: Chameleon
           Version: 1.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Widget
        AssignedTo: chameleon-dev@lists.maptools.org
        ReportedBy: spencer@dmsolutions.ca


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.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


This archive was generated by Pipermail.