digidem / leaflet-side-by-side

A Leaflet control to add a split screen to compare two map overlays
http://lab.digital-democracy.org/leaflet-side-by-side/
MIT License
351 stars 111 forks source link

The example code is not working in Chrome or Edge, windows 10 #40

Open mariabardon opened 2 years ago

mariabardon commented 2 years ago

Hi, I have copy and pasted your code into a local html file, and only one of the layers is displayed in the page. I am using Chrome, in Windows 10. I have also tried Microsoft Edge, even though you say it would not work, anyway... Any suggestions?

sefo commented 1 year ago

Did you find a solution to this? I have the exact same problem. I've been trying to make this library work for hours...

EDIT: The link to the tiles layer returns 404. Replace with 'https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png' for example.