-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest3.html
More file actions
36 lines (35 loc) · 1.32 KB
/
test3.html
File metadata and controls
36 lines (35 loc) · 1.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>OpenLayers.Editor</title>
<meta charset="utf-8">
<script src="http://openlayers.org/api/2.12/OpenLayers.js"></script>
<script type="text/javascript" src="ole/lib/loader.js"></script>
<script type="text/javascript">
function init() {
var map, editor;
OpenLayers.Lang.setCode(language);
map = new OpenLayers.Map('map');
map.addLayer(new OpenLayers.Layer.OSM());
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(10, 50), 5);
editor = new OpenLayers.Editor(map, {
activeControls: ['LayerSettings', 'Navigation', 'SnappingSettings', 'CADTools', 'TransformFeature', 'Separator', 'DeleteFeature', 'DragFeature', 'SelectFeature', 'Separator', 'DrawHole', 'ModifyFeature', 'Separator'],
featureTypes: ['regular', 'polygon', 'path', 'point']
});
editor.startEditMode();
}
</script>
<style type="text/css">
/* Make map consume all available space */
html, body, #map {
height:100%;
margin:0;
}
</style>
<link rel="stylesheet" href="../theme/geosilk/geosilk.css" type="text/css" />
</head>
<body onload="init()">
<div id="map"></div>
</body>
</html>