This repository was archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.html
More file actions
95 lines (86 loc) Β· 2.84 KB
/
example.html
File metadata and controls
95 lines (86 loc) Β· 2.84 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
html, body {
height:100%;
width:100%;
padding: 0;
margin: 0;
}
#map {
width:100%;
height:100%;
background-color: #D8E7EF;
}
</style>
</head>
<body>
<div id="map" tabindex="0"></div>
<div id="errorcontainer" style="position: absolute;
transition: opacity 1250ms;
padding: 5px 0 5px 0;
color:#ffffff;font-weight:bold;background-color: #20aaac;bottom: 5px;left: 0;width: 100%;text-align: center;"></div>
<script type="text/javascript" src="vendor/openlayers3/ol.js"></script>
<script type="text/javascript" src="vendor/proj4/dist/proj4.js"></script>
<script type="text/javascript" src="dist/maplib.js"></script>
<script type="text/javascript">
(function () {
'use strict';
var config = {
"numZoomLevels": 18,
"newMaxRes": 21664,
"center": [
570130,7032300
],
"groups": [],
"zoom": 15,
"layers": [
{
"id": "1992",
"isBaseLayer": true,
"subLayers": [
{
"title": "norges_grunnkart",
"source": "WMS",
"url": ["http://opencache.statkart.no/gatekeeper/gk/gk.open?LAYERS=norges_grunnkartt"],
"gatekeeper": true,
"name": "norges_grunnkart",
"format": "image/png",
"coordinate_system": "EPSG:32632",
"id": "1992",
"tiled": true
}
],
"visibleOnLoad": true
}
],
"coordinate_system": "EPSG:32632",
"extent": [
-2000000.0, 3500000.0, 3545984.0, 9045984.0
],
"extentUnits": "m"
};
var eventHandler = new ISY.Events.EventHandler();
var mapImplementation = new ISY.MapImplementation.OL3.Map(
null,
eventHandler
);
var layerHandler = new ISY.MapAPI.Layers(mapImplementation);
var groupHandler = new ISY.MapAPI.Groups();
var categoryHandler = new ISY.MapAPI.Categories();
var map = new ISY.MapAPI.Map(
mapImplementation,
eventHandler,
null,
layerHandler,
groupHandler,
categoryHandler
);
map.Init('map', config);
}());
</script>
</body>
</html>