davvalent commited on 2021-12-03 00:38:40
Showing 2 changed files, with 18 additions and 5 deletions.
| ... | ... |
@@ -16,9 +16,11 @@ |
| 16 | 16 |
<div id="map"></div> |
| 17 | 17 |
<script> |
| 18 | 18 |
|
| 19 |
+// let foo; |
|
| 20 |
+ |
|
| 19 | 21 |
// Tuiles |
| 20 | 22 |
var mapbox = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
|
| 21 |
- attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>', |
|
| 23 |
+ attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>, Archives de Montréal', |
|
| 22 | 24 |
maxZoom: 20, |
| 23 | 25 |
id: 'mapbox/streets-v11', |
| 24 | 26 |
tileSize: 512, |
| ... | ... |
@@ -38,7 +40,13 @@ |
| 38 | 40 |
// Couche commerces |
| 39 | 41 |
var commerce_A = L.marker([45.51857363631958, -73.55070940735172]).bindPopup('Commerce A'),
|
| 40 | 42 |
commerce_B = L.marker([45.51817273702336, -73.55133219776212]).bindPopup('Commerce B');
|
| 41 |
- var commerces = L.layerGroup([commerce_A, commerce_B]); |
|
| 43 |
+ var commerces = L.layerGroup([ |
|
| 44 |
+ commerce_A, |
|
| 45 |
+ commerce_B |
|
| 46 |
+ ]); |
|
| 47 |
+ |
|
| 48 |
+ // Couches candidates |
|
| 49 |
+ foo = L.marker(); |
|
| 42 | 50 |
|
| 43 | 51 |
// App |
| 44 | 52 |
var mlasse = L.map( |
| ... | ... |
@@ -52,7 +60,10 @@ |
| 52 | 60 |
}; |
| 53 | 61 |
var overlayMaps = {
|
| 54 | 62 |
"<span class=\"controles\">Plan d'expropriation</span>": plan, |
| 55 |
- "<span class=\"controles\">Commerces d'alimentation</span>": commerces |
|
| 63 |
+ "<span class=\"controles\">Commerces d'alimentation</span>": commerces, |
|
| 64 |
+ "<span class=\"controles\">Carte-index des plans d’utilisation du sol de la ville de Montréal</span>": foo, |
|
| 65 |
+ "<span class=\"controles\">Photographies aériennes des archives</span>": foo, |
|
| 66 |
+ "<span class=\"controles\">Plan d'assurance</span>": foo, |
|
| 56 | 67 |
}; |
| 57 | 68 |
L.control.layers(null, overlayMaps).addTo(mlasse); |
| 58 | 69 |
|
| 59 | 70 |