-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpl.template.html
62 lines (55 loc) · 1.74 KB
/
pl.template.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Parking Lot Overlay</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<style>
#map {
height: 100vh;
}
</style>
</head>
<!-- STRONG TOWNS LANGLEY PARKING LOT MAPPING TOOL -->
<!-- Coded by: James Hansen (james@strongtownslangley.org) -->
<!-- https://github.com/StrongTownsLangley/ParkingLots -->
<!-- strongtownslangley.org -->
<body>
<div id="map"></div>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
var map = L.map('map').setView([{AVGLAT}, {AVGLON}], 12);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
opacity: 0.5,
}).addTo(map);
// Load GeoJSON file
var publicParkingLots = L.geoJSON(null, {
style: function(feature) {
return {
fillColor: '#1654AE',
weight: 0,
opacity: 1,
color: 'white',
fillOpacity: 1
};
}
});
var privateParkingLots = L.geoJSON(null, {
style: function(feature) {
return {
fillColor: '#088B9B',
weight: 0,
opacity: 1,
color: 'white',
fillOpacity: 1
};
}
});
{DATALIST}
publicParkingLots.addTo(map);
privateParkingLots.addTo(map);
</script>
</body>
</html>