1 |
4307
|
leinfelder
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
3 |
|
|
|
4 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml" >
|
5 |
|
|
<head>
|
6 |
|
|
<title>Mapbuilder Enhanced Map Viewer</title>
|
7 |
|
|
<link rel='StyleSheet' type='text/css' href='../../lib/skin/default/demoStyles.css'/>
|
8 |
|
|
<link rel='StyleSheet' type='text/css' href='../../lib/skin/default/mapStyle.css'/>
|
9 |
|
|
<link rel='StyleSheet' type='text/css' href='../../lib/skin/default/scalebar-fat.css'/><!-- This style sheet is needed for the scalebar -->
|
10 |
|
|
<script>
|
11 |
|
|
// URL of Mapbuilder configuration file.
|
12 |
|
|
var mbConfigUrl='config.xml';
|
13 |
|
|
</script>
|
14 |
|
|
<!-- This points to the core mapbuilder library, replaces this with MapbuilderCompressed.js when you want to use the compressed version -->
|
15 |
|
|
<script type="text/javascript" src="../../lib/Mapbuilder.js"></script>
|
16 |
|
|
</head>
|
17 |
|
|
<!-- This onload event starts mapbuilder -->
|
18 |
|
|
<body onload="mbDoLoad()" >
|
19 |
|
|
<!--
|
20 |
|
|
|
21 |
|
|
############################# cut here 1 #############################
|
22 |
|
|
|
23 |
|
|
-->
|
24 |
|
|
<div id="header"> <!-- The header of the page -->
|
25 |
|
|
<h1><a href="http://communitymapbuilder.org">MapBuilder</a> <!--Version-->1.5-rc2<!--VersionEnd--> Enhanced Map Viewer</h1>
|
26 |
|
|
<!-- The version tag will be inserted into the comment tags above
|
27 |
|
|
during the build process. -->
|
28 |
|
|
<a href="#help" class="help">Explanation</a>
|
29 |
|
|
</div><!-- /header -->
|
30 |
|
|
<div id="middle"><!-- The center piece of the page with left menubar and right mainbody -->
|
31 |
|
|
<div id="exampleList"></div><!-- this is the container where the menubar will be drawn -->
|
32 |
|
|
<!--
|
33 |
|
|
|
34 |
|
|
############################# end cut 1 #############################
|
35 |
|
|
|
36 |
|
|
-->
|
37 |
|
|
<div id="mainbody"><!-- right side of the middle div, is also divided into two areas -->
|
38 |
|
|
|
39 |
|
|
<div class="left">
|
40 |
|
|
|
41 |
|
|
<div id="locatorMap"></div><!-- This is the container where the small locator map will be drawn -->
|
42 |
|
|
<div id="legend"></div><!-- This is the container where the legend will be drawn -->
|
43 |
|
|
<!--
|
44 |
|
|
|
45 |
|
|
############################# cut here 2 #############################
|
46 |
|
|
|
47 |
|
|
-->
|
48 |
|
|
<p>
|
49 |
|
|
<a name="help"></a><h3>Explanation</h3>
|
50 |
|
|
This is an enhanced mapviewer. It has some extra functions when compared with the basic map viewer.<br/>
|
51 |
|
|
It adds an <i>extent history</i>, so you can go back to previous viewed extents.<br/>
|
52 |
|
|
It uses the new <i>GetFeatureInfoWSR</i> widget, which uses the WebServiceRequest tool to talk to a WMS server,
|
53 |
|
|
issuing a GetFeatureInfo request. With that you can get more information of an area on the map. <b>Note</b> that the result
|
54 |
|
|
is shown outside the visible area, scroll down to see it. The FeatureInfo widget is used to render the result.<br/>
|
55 |
|
|
A <i>graticule</i> widget which toggles a grid on top of the map.<br/>
|
56 |
|
|
A <i>legend</i> widget which shows the map layers it displays the legend graphic on the other side of the
|
57 |
|
|
map in the <i>legendGraphic</i> container. This is a modification on the stock legend widget.<br/>
|
58 |
|
|
An <i>overview map</i> which shows the current extent on a world map.<br/>
|
59 |
|
|
A <i>scalebar</i> which style is defined by the scalebar stylesheet loaded with the page.<br/>
|
60 |
|
|
An <i>abstract</i> this is only a XSL document which filters the abstract out of a WMC.<br/>
|
61 |
|
|
A <i>maptitle</i> which is also only a XSL document.<p>
|
62 |
|
|
The customisation of the legend is done by using a different XSL document and point the widget to that
|
63 |
|
|
XSL in de config file (using the <stylesheet>< parameter).<br/>
|
64 |
|
|
Customisation of widgets is also possible using a different javascript file
|
65 |
|
|
specified in the config file (with the <scriptfile> parameter). This is used in the <a href="../flickr/index.html">flickr</a> example, for the custom <i>FlickrRest2Wfs</i> widget.
|
66 |
|
|
<br />
|
67 |
|
|
Have a look at <a href="http://communitymapbuilder.org/display/MAP/Modifying+the+Basic+Examples">this guide</a> if you want to modify this example.
|
68 |
|
|
</p>
|
69 |
|
|
|
70 |
|
|
<!--
|
71 |
|
|
|
72 |
|
|
############################# end cut 2 #############################
|
73 |
|
|
|
74 |
|
|
-->
|
75 |
|
|
</div><!-- /left -->
|
76 |
|
|
<div class="right">
|
77 |
|
|
<h2 id="mapTitle"><!-- This is the container where the maptitle will be drawn, note that it is not a DIV but a H2 element, which works as well --></h2>
|
78 |
|
|
<table cellspacing="0">
|
79 |
|
|
<tr>
|
80 |
|
|
<td align="center" valign="top"> <!-- right side of page -->
|
81 |
|
|
<table>
|
82 |
|
|
<tr>
|
83 |
|
|
<td id="mainMapPane" valign="top" align="left"><!-- This is the container where the map will be drawn, this time it is a TD element -->
|
84 |
|
|
<td id="legendGraphic" valign="top" align="right"><!-- This is the container where the seperate legend graphic will be drawn -->
|
85 |
|
|
</tr>
|
86 |
|
|
<tr>
|
87 |
|
|
<td valign="top">
|
88 |
|
|
<table style=" margin:0; padding:0">
|
89 |
|
|
<tr>
|
90 |
|
|
<td id="mainButtonBar" style="width: 192px" align="left"/><!-- This is the container where the buttons will be drawn -->
|
91 |
|
|
<td id="cursorTrack" align="right"/><!-- This is the container where the coordinates below the mouse will be written -->
|
92 |
|
|
</tr>
|
93 |
|
|
<tr>
|
94 |
|
|
<td/>
|
95 |
|
|
<td id="scalebar"/><!-- This is the container where the scalebar will be drawn -->
|
96 |
|
|
</tr>
|
97 |
|
|
</table>
|
98 |
|
|
</td>
|
99 |
|
|
</tr>
|
100 |
|
|
<tr>
|
101 |
|
|
<td id="workspace" valign="top" colspan="2"/><!-- This is the container where the abstract will be drawn, note that in the config a htmlTagId property is set, which points to this element, also getFeatureInfo will plot its results here -->
|
102 |
|
|
</tr>
|
103 |
|
|
</table>
|
104 |
|
|
</td>
|
105 |
|
|
</tr>
|
106 |
|
|
</table>
|
107 |
|
|
</div><!-- /right -->
|
108 |
|
|
|
109 |
|
|
</div><!-- /mainbody -->
|
110 |
|
|
<!--
|
111 |
|
|
|
112 |
|
|
################### cut here 3 ############################
|
113 |
|
|
|
114 |
|
|
-->
|
115 |
|
|
</div><!-- /middle -->
|
116 |
|
|
<div id="footer">
|
117 |
|
|
<div class="right">
|
118 |
|
|
<a href="http://communitymapbuilder.org/" title="powered by community mapbuilder"><img src="../../lib/skin/default/images/Icon.gif"/></a>
|
119 |
|
|
<a href="https://www.osgeo.org/" title="member of OSgeo"><img src="../../lib/skin/default/images/Osgeo.png"/></a>
|
120 |
|
|
</div><!-- /right -->
|
121 |
|
|
</div><!-- /footer -->
|
122 |
|
|
<!--
|
123 |
|
|
|
124 |
|
|
############################# end cut 3 #############################
|
125 |
|
|
|
126 |
|
|
-->
|
127 |
|
|
</body>
|
128 |
|
|
</html>
|