diff --git a/src/js/map.js b/src/js/map.js index bc489a0..ecabb83 100644 --- a/src/js/map.js +++ b/src/js/map.js @@ -53,8 +53,14 @@ $(document).ready(function() { } var map = L.map("map", {zoomControl: false}).setView([50.702, 4.335], 9); - var osm = L.tileLayer("//tile.osm.be/osmbe-nl/{z}/{x}/{y}.png", { - attribution: 'Achtergrondkaart © OpenStreetMap-bijdragers, tiles courtesy of GEO-6. | Made with ❤ by Zeus WPI | Privacybeleid', + var osm = L.tileLayer("https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}", { + id: 'mapbox/streets-v11', + tileSize: 512, + zoomOffset: -1, + // account name = zeuswpi, details are in password manager + // token has a restriction to only work with our domains and localhost + accessToken: 'pk.eyJ1IjoiemV1c3dwaSIsImEiOiJja2QzMDZ1NmcwMjBtMnlxbXV2bXVpaXhuIn0.-ViXZUT9SqRI3IvB8209LQ', + attribution: 'Achtergrondkaart © OpenStreetMap-bijdragers, Imagery © Mapbox. | Made with ❤ by Zeus WPI | Privacybeleid', maxZoom: 18 }).addTo(map);