Zoom to custom extent - PHP

William Bronsema wbronsema at DMSOLUTIONS.CA
Wed Jan 26 15:20:01 EST 2005


Kevin,

It sounds like $HTTP_FORM_VARS['doQuickZoom'] is not being set.

Add this:
echo '<pre>';
print_r( $HTTP_FORM_VARS );
echo '</pre>';

just before the if statement and send me the output for both an intial page
load and quickzoom page load.  This will tell us exactly what is being set
(or not set ;) ).

Regards,
Bill



________________________________________________
William A. Bronsema, C.E.T.
Applications and Software Development,
DM Solutions Group Inc.



> -----Original Message-----
> From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM]
> Sent: January 26, 2005 3:12 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU; William Bronsema
> Subject: Re: Zoom to custom extent - PHP
>
> 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