-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
55 lines (53 loc) · 2.54 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>MapServer Itasca Application</title>
<script language="javascript">
function configure() {
var template = document.demo.template.options[document.demo.template.selectedIndex].value;
var snippet = " TEMPLATE " + template;
document.demo.map_web.value = snippet;
if (template.indexOf("frame") != -1) document.demo.action = "frames.html";
if (template.indexOf("dhtml") != -1) document.demo.action = "frames_dhtml.html";
}
</script>
</head>
<body bgcolor="#FFFFFF">
<center><h2>MapServer Itasca Application (ms v8)</h2></center>
<p>
<hr />
This demonstration application will take you through various levels of complexity. Starting with a basic application that
allows a user to pan/zoom and change layers we add:
<ul>
<li> dynamically configured scalebars</li>
<li> JavaScript-based panning</li>
<li> query results to a frame</li>
<li> and finally, a DHTML rubber-band zoom/query capability</li>
</ul>
The base data is the old-reliable Itasca dataset that we know and love...
</p>
<!-- EDIT THE FORM ACTION -->
<form name="demo" method="GET" action="/cgi-bin/mapserv" onSubmit="configure()">
<input type="hidden" name="layer" value="ctybdpy2">
<input type="hidden" name="layer" value="lakespy2">
<input type="hidden" name="layer" value="dlgstln2">
<input type="hidden" name="zoomsize" value=2>
<input type="hidden" name="map_web" value="">
<!-- EDIT THESE HIDDEN VARIABLES -->
<input type="hidden" name="map" value="/usr/local/www/docs_maps/mapserver_demos/workshop/itasca.map">
<input type="hidden" name="program" value="/cgi-bin/mapserv">
<input type="hidden" name="root" value="/mapserver_demos/workshop">
<select name="template" size="1">
<option value="itasca_basic.html"> Basic Application
<option value="itasca_adds_scalebar.html"> -- Adds second scalebar
<option value="itasca_adds_pan.html"> -- Adds pan controls
<option value="itasca_adds_frames.html"> -- Adds frames
<option value="itasca_adds_dhtml.html"> -- Adds dhtml rubber-band box
</select>
<input type="submit" value="Initialize">
</form>
<hr />
<table style="width:100%"><tr><td align="right">Powered by MapServer</td></tr></table>
</body>
</html>