Is there a possibility to have a kind of home button on my Leaflet map which will zoom to my initial map view or a specific defined position, respectively?
Leaflet Map – How to Add ‘Home’ Button
leaflet
leaflet
Is there a possibility to have a kind of home button on my Leaflet map which will zoom to my initial map view or a specific defined position, respectively?
Best Answer
The following will add a custom zoom control with a home button to a Leaflet map. The home icon is from font-awesome, so be sure to include that reference.
Working fiddle here.
html:
css:
javascript: