Closed sefo closed 1 year ago
It works by replacing missing tiles with correct ones. So replace the stamen layer block with:
const otherLayer = L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
attribution: 'qwerty'
}).addTo(map);
L.control.sideBySide(osmLayer, otherLayer).addTo(map);
Live example doesn't work. Example code when fixed still doesn't work. (stamen layers are 404, js imports badly configured)) Importing the lib to my vueJS app displays 1 layer with the slider in the middle. No additional layer added by L.control.sideBySide(x, y)
Can someone take over and fix this? I couldn't find any alternative. Some forks out there are not working either.