[mapserver-users] Persistent Change from a Form

Stephen Lime steve.lime at dnr.state.mn.us
Thu May 31 11:27:46 PDT 2001


Well, there is an experimental feature in 3.4 that allows you to cache queries
and use them over and over again. Before I try to explain how it works let me
work up a demo over the next couple of days to add to the test suite. It should
address your problem nicely.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Hankley, Chip" <Chip.Hankley at GASAI.Com> 05/31/01 10:43AM >>>
I have a SELECT element on a form that is populated with a bunch of values
from a shapefile.

The user can select a value, then hit a button, which sends a modification
to mapserv using this type of syntax:

Map_<Layer Name>_class_expression

This works great. The polygon that is represented by the value in the list
"lights up."

Now I want it to stay "selected." If I understand this syntax right, it's
kind of like I'm making a "virtual" change to the map file. If I zoom in or
out, pan, anything, it reads the original (non-virtual) map file and the
polygon is no longer "selected."

How can I do this (I'm bucking for the easy solution... I haven't delved
into MapScript or anything like that yet).

Thanks!

Chip






More information about the MapServer-users mailing list