Zoom to custom extent - PHP

Kevin Grootendorst kgrootendorst at BAIRD.COM
Wed Jan 26 12:12:22 PST 2005


Bill,
OK.  This makes sense.

But, using the following statement:
If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS
['doQuickZoom'] == "1" )
This returns a false, and the QuickZoom php code is not executed.

Using this statement:
If ( isset( $HTTP_FORM_VARS['doQuickZoom']) && $HTTP_FORM_VARS
['doQuickZoom'] == "" )
Also returns a false.

Using this statement:
If ($HTTP_FORM_VARS['doQuickZoom'] == "")
Returns a TRUE - and the php code is executed.  But the map does not draw
to the desired extents.  It just refreshes the current map extent.

Thanks.

Kevin


On Wed, 26 Jan 2005 14:52:35 -0500, William Bronsema
<wbronsema at DMSOLUTIONS.CA> wrote:

>Kevin,
>
>doQuickZoom is supposed to go back to "".  echo
>$HTTP_FORM_VARS['doQuickZoom'] before your "If ( isset(
>$HTTP_FORM_VARS['doQuickZoom'])...." statement to see what I mean.  It
>should only echo 1 after a quick zoom is called.  You only want it to be 1
>when you want to do a quick zoom.  Make sense?
>
>Is the PHP code being called to perform the quick zoom and the map is just
>not zooming?  Or is the PHP code not being called?
>
>Regards,
>Bill
>
>________________________________________________
>William A. Bronsema, C.E.T.
>Applications and Software Development,
>DM Solutions Group Inc.
>



More information about the MapServer-users mailing list