mapserver examples/tutorial

Stephen Lime steve.lime at dnr.state.mn.us
Fri Oct 1 11:38:42 PDT 1999


Hi: As part of a workshop I'm doing I setup a simple progression of
mapserver interfaces online. They are simple, but they show enough
stuff to be useful to some folks, I hope. Each example is accompanied
by corresponding map files and all templates. You'll need Netscape
to access the templates as MSIE likes to parse everything that is 
text regardless of MIME type. Here's the URL to the first example:

http://www.dnr.state.mn.us/mis/gis/gislis99/example1.html

There are 5 in the progression. Since these are for use in a talk there's
little text on them so here's what to look for in the progression.

example 1: - single layer called from an <img> tag, no template so view source

example 2: - multiple layers called from an <img> tag, no template so view source

example 3: - basic interface, adds pan and zoom
                  - sticky zoom
                  - adds legend, scalebar and reference map

example 4: - more advanced interface, adds sticky layer selection
                  - mapfile introduces scale dependent lake layers

...big jump from to 5...

example 5: - adds java applet for box area of intrest selection
                  - adds query (mode=nquery), user can select 1 or many (with box)
                  - auto legend replaced with cleaner version (you'll see what I mean)
                  - javascript interface logic
                  - nice example of using javascript to handle query output, does one thing
                    if only one feature is found, and another if more than one is found

Server is running 3.2.21. All data is at http://www.dnr.state.mn.us/mis/gis/gislis99/data
and graphics are at http://www.dnr.state.mn.us/mis/gis/gislis99/graphics in case any
one wants to download stuff to play with themselves. Applet is available on request.

Hope it helps. 

Steve

Stephen Lime
Internet Applications Analyst
MIS Bureau - MN DNR

(651) 297-2937
steve.lime at dnr.state.mn.us




More information about the MapServer-users mailing list