Opened 19 years ago

Closed 19 years ago

#1334 closed defect (fixed)

[MapScript-PHP] initialization of scale only happens on setExtent

Reported by: pspencer@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: 4.4
Severity: minor Keywords:
Cc: mapserver@…

Description

Contrary to the documentation for 4.4, the map scale is not calculated by
calling $oMap->prepareQuery().

I also tried $oMap->prepareImage();

It is calculated if you set the extent using 

$oMap->setExtent( $oMap->extent->minx, $oMap->extent->miny, $oMap->extent->maxx,
$oMap->extent->maxy);

need to determine why prepareQuery/prepareImage are not calculating scale or
update documentation to reflect use of setExtent as only valid way to calculate
extent.

Change History (2)

comment:1 by mapserver@…, 19 years ago

Cc: mapserver@… added

comment:2 by assefa, 19 years ago

Resolution: fixed
Status: newclosed
prepareQuery now updated the scale.
Note: See TracTickets for help on using tickets.