Zoom to custom extent - PHP

Kevin Grootendorst kgrootendorst at BAIRD.COM
Fri Jan 21 11:47:45 EST 2005


Kristjan,
Thanks for your reply.  I forgot to include this additional PHP code in my
original
posting.  I have the following:

if ($HTTP_FORM_VARS["ViewRegion"])
    {
        if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)",
                 $HTTP_FORM_VARS["ViewRegion"], $ProvExtents))
        {
            $dfMinX = doubleval($ProvExtents[1]);
            $dfMinY = doubleval($ProvExtents[2]);
            $dfMaxX = doubleval($ProvExtents[3]);
            $dfMaxY = doubleval($ProvExtents[4]);

            SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY);
        }
    }

But no luck yet.  My page just reloads with the max extents of the map.

Kevin



More information about the mapserver-users mailing list