We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Cliff, how can I create a "link to" button using Leaflet.Easy.Button? Thanx.
Lorenzo
The text was updated successfully, but these errors were encountered:
Do you mean to change the window's location like <a href="..." would?
<a href="..."
If that's the case, you can use javascript's window.location.href from inside you button's onclick function:
window.location.href
L.easyButton('fa-link', function(){ window.location.href = "https://www.google.com/"; }).addTo(map);
Sorry, something went wrong.
Great, it works!!! Thanx Atstp!
No branches or pull requests
Hi Cliff,
how can I create a "link to" button using Leaflet.Easy.Button?
Thanx.
Lorenzo
The text was updated successfully, but these errors were encountered: