-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (26 loc) · 1022 Bytes
/
index.html
File metadata and controls
29 lines (26 loc) · 1022 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>L.TileLayer.Canvas example</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
crossorigin=""></script>
<script src="../index.js"></script>
</head>
<body>
<div id="map" style="width: 600px; height: 500px;"></div>
<script>
const map = L.map('map').setView([51.505, -0.09], 13);
const config = {
attribution: '© <a href="https://openstreetmap.org">OpenStreetMap</a>'
};
L.tileLayer.canvas('https://c.tile.openstreetmap.org/{z}/{x}/{y}.png', config)
.addTo(map);
</script>
</body>
</html>