Browse Source

Switch to mapbox light-v11 maps

pull/51/head
David Edmondson 1 year ago
parent
commit
c499aed783
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      compass/public/assets/map.js

+ 2
- 2
compass/public/assets/map.js View File

@ -10,8 +10,8 @@ var opts = {
maxZoom: 24, maxZoom: 24,
zoomOffset: -1, zoomOffset: -1,
tileSize: 512, tileSize: 512,
id: 'mapbox/light-v10',
accessToken: 'pk.eyJ1IjoiYWFyb25wayIsImEiOiJja3A0eXV2ZXIwMGt3MnVuc2Uzcm1yYzFuIn0.-_qwPOLRiQk8t56xs6vkfg'
id: 'mapbox/light-v11',
accessToken: 'pk.eyJ1IjoiZGF2aWRlZG1vbmRzb24iLCJhIjoiY2xjbmNmbXg5MTd6bzN2cDgycDNvYzEzdCJ9.cQLK-qlwLNH2qFmglWhwyQ'
}; };
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', opts).addTo(map); L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', opts).addTo(map);

Loading…
Cancel
Save