[UMN_MAPSERVER-USERS] How keep the Selection of the layers in HTML

Richard Greenwood richard.greenwood at GMAIL.COM
Thu Sep 9 17:34:00 EDT 2004


Checkout SAVEQUERY and QUERYFILE in the CGI reference. This allows you
to save a selection and eliminates the overhead of running the query
each time the map needs to be redrawn. And it does not require any
scripting!

Rich
-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com


On Thu, 9 Sep 2004 09:14:54 -0400, Skweda O'Bomsawin
<sobomsawin at kassini.com> wrote:
> Pierre,
> 
> You can keep your selection active while using mapscript as CGI, but it's a
> little bit tricky.  What you have to do is to make your selection with a
> query or nquery mode, catch the unique ids of elements selected which
> Mapserver will return and insert these values into an URL with itemnquerymap
> or itemquerymap mode, or simply create a new layer and use a filter...
> Personally, I use Java and Mapscript CGI to do this and it works like a
> charm!
> 
> Hope this can help...
> 
> Skweda O'Bomsawin
> 
> -----Message d'origine-----
> De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
> part de Pierre RELLA
> Envoyé : 9 septembre 2004 03:12
> À : MAPSERVER-USERS at LISTS.UMN.EDU
> Objet : [UMN_MAPSERVER-USERS] How keep the Selection of the layers in HTML
> 
> 
> 
> Hi,
>         In "html" when i refresh the page, the new page lost the selection
> of the
> layers. How can i keep the previous selection? I think using PHP .If
> somebody have a script ....
> 
> Best Regards
>



More information about the mapserver-users mailing list