Skip to content

Commit

Permalink
fix(Leaflet directive): leaflet mapbox tiles
Browse files Browse the repository at this point in the history
preparing leaflet map to show mapbox tiles
  • Loading branch information
felixerdy committed Oct 8, 2020
1 parent b4f68d4 commit e37727a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/components/leaflet.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@
var baselayer = L.tileLayer('@@OPENSENSEMAP_MAPTILES_URL', {
subdomains: 'abc',
attribution: '© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a></strong>',
detectRetina: true,
// detectRetina: true,
reuseTiles: true,
maxZoom: 18
maxZoom: 18,
// https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/
tileSize: 512,
zoomOffset: -1,
}).addTo(map);

baselayer.on('load', layerLoaded);
Expand Down

0 comments on commit e37727a

Please sign in to comment.