[mapserver-users] small gmap bug?
Stephan Dunning
SDunning at nephrology.org
Mon Aug 13 09:39:20 PDT 2001
I could be wrong or this may have already been discovered, but I think I
found a slight bug in the gmap75.php file that affects the zoom and query
rectangles.
The GMap75CheckClick() function includes the following code:
if ($oPixelRect->minx > $oPixelRect->maxx)
{
// Use intval() to avoid dfTmp becoming a
reference
// to $oPixelRect->minx with PHP4 !?!?!?
$dfTmp = intval($oPixelRect->minx);
$oPixelRect->set("minx",$oPixelRect->maxx);
$oPixelRect->set("maxx",$dfTmp);
}
if ($oPixelRect->miny < $oPixelRect->maxy)
{
$dfTmp = intval($oPixelRect->miny);
$oPixelRect->set("miny", $oPixelRect->maxy);
$oPixelRect->set("maxy", $dfTmp);
}
}
Should -
"if ($oPixelRect->miny < $oPixelRect->maxy)"
be -
"if ($oPixelRect->miny > $oPixelRect->maxy)" instead?
Thanks,
Stephan
More information about the MapServer-users
mailing list