[mapserver-users] query layer
Toni Hernández
toni at giscampus.udg.es
Fri Oct 25 09:24:22 PDT 2002
Hi,
I am developing a mapserver application for my citi (girona, spain). I would
like to display the street layer by default but I would like also to permit
the user a query by street name.
The thing is that if I delete de filter attribute in the map file I see (by
default) the street layer but then I can not make a query. Furthermore If I
put the filter line in the map file then the street layer does not appear (I
think because no street matches the filter).
Is there anyway to solve this?
Maybe I am forgeting some field in the form.
This is my map file for the street (in spain carrerer) layer.
LAYER
NAME carrers
TYPE LINE
DATA carrers
STATUS on
FILTERITEM "NOM"
FILTER "%name%"
LABELMAXSCALE 2600
# LABELMINSCALE
LABELITEM "NOM"
CLASS
NAME "l_carrers"
COLOR 0 255 0
TEMPLATE "carrers.html"
LABEL
SIZE 10
TYPE TRUETYPE
COLOR 0 0 0
SHADOWCOLOR 255 255 230
SHADOWSIZE 0 2
FONT arial
ANTIALIAS TRUE
ANGLE AUTO
POSITION CC
BUFFER 10
MINDISTANCE 20
END
END
LABELITEM Nom
HEADER "cap_carrers.html"
FOOTER "peu_carrers.html"
END
Thanks for your knowlege
More information about the MapServer-users
mailing list