forked from mapbox/leaflet-omnivore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (26 loc) · 931 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dev - Leaflet Better File Layer</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>
<!-- Files from current project -->
<link rel="stylesheet" href="dist/leaflet.betterfilelayer.css">
<script type="text/javascript" src="dist/leaflet.betterfilelayer.min.js"></script>
</head>
<body>
<div id="map" style="width: 98vw; height: 85vh"></div>
</body>
<script>
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([-8.748008188078693, -63.88549804687501], 13)
.addLayer(osm);
L.Control.betterFileLayer()
.addTo(map);
</script>
</html>