Hi
I have been trying to get open see maps working using The perspective maps so far i’ve not been having much luck. I have been able to get OpenStreetMaps working using the URL https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png. But found similar URLS for open sea maps not to work. has anybody know how you go about changing the tile to used openseamaps,
thanks
It seems like a format like this should work:
OpenSeaMap: {
url: 'https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',
options: {
attribution: 'Map data: © <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'
}
}
Pulled from Leaflet’s own examples: http://leaflet-extras.github.io/leaflet-providers/
Specifically, https://github.com/leaflet-extras/leaflet-providers/blob/master/leaflet-providers.js
1 Like