Opened 20 years ago

Closed 19 years ago

#854 closed defect (wontfix)

zoomToRectangle/Point/Feature - not precise

Reported by: monicasocol@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: unspecified
Severity: normal Keywords:
Cc:

Description

The zoomRectangle, zoomPoint and ZoomToFeature are not precise enough when 
zooming from a large extent to a small extent. Zooming a small amount works 
well. When you start from the full extent of the map and try zoomRectangle() 
for example, it zooms in, but it is not centering to that rectangle. 
A work around will be to calculate the centroid of the rectangle and recenter 
to that point after zooming in, but this will refresh the map again so double 
the time for the operation --- it is not a good solution.

Change History (3)

comment:1 by dmorissette, 20 years ago

Sometimes the apparent error is caused by the fact that the extents in the
mapObj are not properly reset to match the width/height of the map image on
which the zoom operation is performed. Please make sure that's not the problem.

Also, can you please help us help you by providing a small testcase to reproduce
the issue, i.e. a mapfile, with a little script that does a zoom operation and
shows the result you get and what the expected result should have been.

comment:2 by assefa, 19 years ago

Have you tried what is suggested in comment #1 ? If this is still an issue, 
could you please provide samples to easily reproduce this.

comment:3 by assefa, 19 years ago

Resolution: wontfix
Status: newclosed
Marking it as won't fix. Please reopen if it is still an issue.
Note: See TracTickets for help on using tickets.