forked from makinacorpus/Leaflet.MeasureControl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (54 loc) · 1.72 KB
/
index.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
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DEV - Leaflet.QgsMeasure</title>
<!-- Dependency to Leaflet -->
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css"/>
<script type="text/javascript" src="node_modules/leaflet/dist/leaflet-src.js"></script>
<!-- Dependency to Leaflet Draw -->
<link rel="stylesheet" href="node_modules/leaflet-draw/dist/leaflet.draw-src.css"/>
<script src="node_modules/leaflet-draw/dist/leaflet.draw-src.js"></script>
<!-- Files from current project -->
<link rel="stylesheet" href="dist/leaflet.qgsmeasure.css">
<script type="text/javascript" src="dist/leaflet.qgsmeasure.min.js"></script>
</head>
<style>
html {
font-family: Helvetica, sans-serif;
}
.plugin-title {
display: flex;
flex-direction: row;
align-content: center;
margin: 10px;
}
.plugin-title span {
font-size: 2rem;
font-weight: bold;
margin-right: 35px;
}
.plugin-title a {
text-align: center;
align-self: center;
text-decoration: none;
}
</style>
<body>
<div class="plugin-title">
<span>Leaflet.QgsMeasure</span>
<a href="https://github.com/gabriel-russo/Leaflet.QgsMeasure">github.com/gabriel-russo/Leaflet.QgsMeasure</a>
</div>
<div id="map" style="width: 98vw; height: 85vh"></div>
</body>
<script type="text/javascript">
const osm = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Map data © 2013 OpenStreetMap contributors',
});
const map = L.map('map')
.setView([-23.70078702319699, -46.69719607766831], 16)
.addLayer(osm);
L.Control.qgsmeasure()
.addTo(map);
</script>
</html>