Open Krukarius opened 4 years ago
Well yes, you can take the code for buttons and tweak it a bit. I based mine off two plugins for mapbbcode: "FunctionButtons" and "PermalinkAttribution". The idea is basically to listen to map's move
event and update the link with the map.getCenter()
coordinates.
Hi,
I have found and downloaded the file PermalinkAttribution.js, which is relevant for my purpose.
Because I am quite new in js. Could you tell me how to attach it to the main .js code?
Have you got some example working?
Thanks in advance
Hi,
I was struggling to make this code running.
After incorporation:
L.Control.PermalinkAttribution({position:'topright'}).addTo(map);
to my code, no results. Could you clarify what to do? Thank you in advance
Hi,
Your job is perfect.
I am wondering how to make another links such the Street View options
The details of this query is based here:
https://gis.stackexchange.com/questions/339126/link-to-another-url-permalink-in-leaflet
Is it feasible through a similar code?