-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex6.html
53 lines (49 loc) · 1.67 KB
/
ex6.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
<html>
<head>
<title>TBEG ContentPane Layout</title>
<style type="text/css">
html, body, #main, #map3 {
width: 100%;
height: 100%;
}
</style>
<script type="text/javascript" src="../../js/OpenLayers-2.12/OpenLayers.js"></script>
<script type="text/javascript">
require(['dojo/ready'], function (ready) {
ready(function () {
var map = new OpenLayers.Map({
div:'map3',
displayProjection:new OpenLayers.Projection('EPSG:4326'),
projection:new OpenLayers.Projection('EPSG:900913')
});
map.addLayer(
new OpenLayers.Layer.OSM()
);
map.setCenter(
new OpenLayers.LonLat(581044,6720916),
8
);
});
});
</script>
</head>
<body>
<div dojoType="dijit.layout.BorderContainer" design="headline" id="main">
<div dojoType="dijit.layout.ContentPane" region="top"
style="background-color: #b39b86; height: 10%;">
</div>
<div dojoType="dijit.layout.ContentPane" region="left"
splitter="true" style="background-color: #acb386; width: 100px;">
</div>
<div id="map3" dojoType="dijit.layout.ContentPane" region="center"
style="background-color: #f5ffbf; padding: 0px;">
</div>
<div dojoType="dijit.layout.ContentPane" region="right"
style="background-color: #acb386; width: 100px;" splitter="true">
</div>
<div dojoType="dijit.layout.ContentPane" region="bottom"
style="background-color: #b39b86; height: 50px;" splitter="true">
</div>
</div>
</body>
</html>