Hey all, had posted this before but trying it with a different method and thought i'd repost What I am trying to do is this...I have a map of Saskatchewan(saskmap.map in the attachements) that has a couple differnent layers. What i need to be able to do is have the user be able to select an area on the map and it zooms in and when it zooms in then the map displays the second layer as well (this i can do easily enough with minextent). Then i want the user to be able to select multiple polygons (from the ruralmun layer) and then also make a selection from a pull down menu (just a radio select) and then submit their query...and that will bring up results on the website from our database. The part I am having problem is is creating a map that can have multiple selections. I have looked at http://maps.dnr.state.mn.us/cgi-bin/mapserv48? map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer= county&mode=nquery&searchmap=true and this is pretty much what I need to do and understand that I need to create an imagemap in order to do it...just not really sure how to tie it all together. I have attached what I have so far which is my mapfile (saskmap.map), my template file (test.html) as well as a header and footer file (top.html and bottom.html respectively) but these are merely ones from the mapserver test suite and i know they are not right just trying to figure out how to put this all together....any help would be appreciated thank
# # Start of map file # # Map of Saskatchewan Crop Districts and Rural Municipalities # NAME DEMO STATUS ON SIZE 400 400 EXTENT 114000 5427477 788000 6067338 UNITS METERS SHAPEPATH "C:\ms4w\apps\ms101\data" IMAGECOLOR 255 255 255 TRANSPARENT FALSE
FONTSET ../fonts/fonts.list
#
# Start of web interface definition
#
WEB
#MINSCALE 1000000
#MAXSCALE 8000000
TEMPLATE test.html
HEADER top.html
FOOTER bottom.html
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "C:\ms4w\tmp\ms_tmp\"
IMAGEURL "C:\ms4w\tmp\ms_tmp\"
# LOG "/tmp/gmap.log"
METADATA
END
END
QUERYMAP
STATUS ON
STYLE SELECTED
COLOR 255 255 0
END
LEGEND
STATUS ON
LABEL
TYPE TRUETYPE
FONT arial-bold
COLOR 0 0 0
SIZE 10
ANTIALIAS TRUE
OFFSET 0 -2
END
END
SCALEBAR
STATUS ON
STYLE 1
INTERVALS 4
SIZE 200 5
COLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS meters
LABEL
COLOR 0 0 0
SIZE small
END
END
REFERENCE
STATUS ON
IMAGE mapserv.gif
SIZE 150 150
EXTENT 114000 5427477 788000 6067338
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
#
# Start of layer definitions
#
LAYER
NAME cropdis
GROUP cropdis
DATA cropdis
STATUS DEFAULT
TYPE POLYGON
MAXSCALE 8000000
MINSCALE 2000000
CLASS
NAME "Crop Districts"
COLOR 232 123 123
OUTLINECOLOR 0 0 0
END
PROJECTION
"init=epsg:26913"
END
END
LAYER
NAME ruralmun
GROUP ruralmun
DATA ruralmun
STATUS DEFAULT
TYPE POLYGON
MAXSCALE 2000000
MINSCALE 1000000
CLASS
NAME "Rural Municipalities"
COLOR 255 255 255
OUTLINECOLOR 0 0 0
END
PROJECTION
"init=epsg:26913"
END
END
END # Map File
Title: Crop Districts of Saskatchewan
|
Crop Districts of Saskatchewan
| ||||
|
You selected the following maps:
|
