[Mapserver-users] Locating and centering on a point

Steve Lime steve.lime at dnr.state.mn.us
Tue Dec 23 10:01:50 EST 2003


Anything you can do with the CGI can be done in PHP, plus a lot more.
What PHP/MapScript and the other flavors of MapScript give you is
essentially a way to roll your own custom version of the CGI if you need
to. I want to stress the IF in that last sentence.

The idea I presented can be implemented either way...

Steve

>>> "Leandro Dardini" <l.dardini at mct.it> 12/23/2003 2:27:47 AM >>>

----- Original Message -----
From: "Steve Lime" <steve.lime at dnr.state.mn.us>
To: <l.dardini at comune.montecatini-terme.pt.it>;
<mapserver-users at lists.gis.umn.edu>; <l.dardini at mct.it>
Sent: Monday, December 22, 2003 8:02 PM
Subject: Re: [Mapserver-users] Locating and centering on a point


> I would do it using an ITEMQUERY. The logic would go like this:
>
> 1) user selects the feature from a pulldown list
> 2) this triggers an ITEMQUERY, the pulldown is setting the qstring
> (this list probably exists as a second form on the page or invokes a
> javascript function to do the query)
> 3) assuming the selection is successful a URL query template is used
to
> redirect the user back to the main interface at a specific place and
> scale. You'd use the [shpmid] replacement string.

Thank you, but I'd like to use php/mapscript and not the mapserver.cgi.
Is
there a way to do this with php/mapscript?

Leandro


>
> You'd have to preload the list of clickable features (using straight
> CGI) but wouldn't have to load the coordinates.
>
> Steve
>
>
> >>> l.dardini at mct.it 12/22/2003 4:05:55 AM >>>
> Hi,
> I'd like to center my map on a precise point object. The user choose
> from a
> list of objects (dropdown list box), like restaurants, and the map
is
> centered on the restaurant
> choosen.
>
> What is the best way to do this?
>
> I look at the "province selection" in gmap example, but I don't want
> to
> preload all the coordinates in the html. I prefer a solution where
> coordinates are read from
> the shape file or using a postgis database.
>
> Leandro
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 




More information about the mapserver-users mailing list