1
|
<?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 Proj4js demo</title>
|
7
|
<link rel='StyleSheet' type='text/css' href='../../lib/skin/default/demoStyles.css'/>
|
8
|
<style>
|
9
|
.cursorTrackLeft {
|
10
|
width: 100px;
|
11
|
}
|
12
|
.cursorTrackRight {
|
13
|
width: 100px;
|
14
|
}
|
15
|
</style>
|
16
|
<script>
|
17
|
// URL of Mapbuilder configuration file.
|
18
|
var mbConfigUrl='config.xml';
|
19
|
</script>
|
20
|
<!-- This points to the core mapbuilder library, replaces this with MapbuilderCompressed.js when you want to use the compressed version -->
|
21
|
<script type="text/javascript" src="../../lib/Mapbuilder.js"></script>
|
22
|
|
23
|
</head>
|
24
|
<!-- This onload event starts mapbuilder -->
|
25
|
<body onload="mbDoLoad()" >
|
26
|
<!-- DIY cut here 1 -->
|
27
|
<div id="header"> <!-- The header of the page -->
|
28
|
<h1><a href="http://communitymapbuilder.org">MapBuilder</a> <!--Version-->1.5-rc2<!--VersionEnd--> Proj4js demo</h1>
|
29
|
<!-- The version tag will be inserted into the comment tags above
|
30
|
during the build process. -->
|
31
|
</div><!-- /header -->
|
32
|
|
33
|
<div id="middle"><!-- The center piece of the page with left menubar and right mainbody -->
|
34
|
<div id="exampleList"></div><!-- this is the container where the menubar will be drawn -->
|
35
|
<div id="mainbody"><!-- right side of the middle div, is also divided into two areas -->
|
36
|
|
37
|
<div class="left">
|
38
|
<h3>Explanation</h3>
|
39
|
<p>
|
40
|
This demo shows the Proj4js library in action.
|
41
|
All coordinate conversions shown here are being carried out on the client side
|
42
|
in JavaScript.
|
43
|
</p>
|
44
|
<p>
|
45
|
The cursor is tracked in Longitude and Latitude as well as in map projected X-Y coordinates.
|
46
|
<div id="cursorTrack"><!-- This is where the cursor tracker will be drawn --></div>
|
47
|
</p>
|
48
|
<p>
|
49
|
A GML document may be loaded and its feature coordinates will be converted to the map
|
50
|
projection prior to being rendered over the map.<br/>
|
51
|
<a href="javascript:config.loadModel('gml2FeatureTemplate','bsc_ows_small.xml')">load GML</a>
|
52
|
</p>
|
53
|
</div><!-- /left -->
|
54
|
|
55
|
<!-- DIY end cut 1-->
|
56
|
<div class="right">
|
57
|
<div id="mainMapPane"><!-- This is the container where the map will be drawn -->
|
58
|
<noscript>this page requires Javascript to be enabled</noscript>
|
59
|
</div><!-- /mainMapPane -->
|
60
|
<div>
|
61
|
<div style="float: left; width: 30%;" id="mainButtonBar"><!-- This is the container where the buttons will be drawn --></div>
|
62
|
<div id="scaleText"><!-- This is where the scale text will be drawn --></div>
|
63
|
</div>
|
64
|
<div>
|
65
|
<h2>Examples of maps in different projections</h2>
|
66
|
<div id="maps"></div>
|
67
|
</div>
|
68
|
</div><!-- /right -->
|
69
|
<!-- DIY cut here 2 -->
|
70
|
|
71
|
</div><!-- /mainbody -->
|
72
|
</div><!-- /middle -->
|
73
|
|
74
|
<div id="footer"><!-- The footer of the page -->
|
75
|
<div class="right">
|
76
|
<a href="http://communitymapbuilder.org/" title="powered by community mapbuilder"><img src="../../lib/skin/default/images/Icon.gif"/></a>
|
77
|
<a href="https://www.osgeo.org/" title="member of OSgeo"><img src="../../lib/skin/default/images/Osgeo.png"/></a>
|
78
|
</div><!-- /right -->
|
79
|
</div><!-- /footer -->
|
80
|
<!-- DIY end cut 2 -->
|
81
|
</body>
|
82
|
</html>
|