-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.html
40 lines (38 loc) · 999 Bytes
/
default.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Our app title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<!-- OpenLayers CSS -->
<link rel="stylesheet" href="http://openlayers.org/en/v3.0.0/css/ol.css" type="text/css">
<!-- Our app style -->
<style>
.map {
vw: 100vw;
vh: 100vh;
};
</style>
</head>
<body>
<div id="map"></div>
<!-- Our app HTML tags here -->
<!-- OpenLayers JS-->
<script src="http://openlayers.org/en/v3.0.0/build/ol.js" type="text/javascript"></script>
<!-- Our app code -->
<script>
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
})
],
view: new ol.View({
center: ol.proj.transform([23.7, 61.5], 'EPSG:4326', 'EPSG:3857'),
zoom: 11
})
});
</script>
</body>
</html>