Skip to content

Commit

Permalink
Another approach to enable tile display on retina displays
Browse files Browse the repository at this point in the history
  • Loading branch information
ut committed Sep 8, 2024
1 parent 48ad628 commit 5e0fc78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/LeafletMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,17 @@ export default {
const selectedYear = ref(1900) // initial value
const allMarkers = [];
L.Browser.retina = false
let alidade_smooth_dark = L.tileLayer('https://tiles-eu.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.png', {
attribution: '&copy; <a href="https://stadiamaps.com/" target="_blank">Stadia Maps</a>&copy; <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a>&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>'
})
let hamburg_dark_mode = L.tileLayer('https://tiles.3plusx.io/hamburg/darkmode/{z}/{x}/{y}{r}.png', {
attribution: 'Karte: UT/3+x, Geodaten: <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap + Mitwirkende</a>',
maxZoom: 17,
detectRetina: false
detectRetina: false,
tileSize: 256
})
Expand Down

0 comments on commit 5e0fc78

Please sign in to comment.