Last active
December 16, 2017 05:47
-
-
Save christianhent/40ce1db34b22d27f1f5de53646ee122c to your computer and use it in GitHub Desktop.
creates the zoomhome-control and add it to the map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// ... existing map code | |
// ... | |
map.fitBounds(geoJson.getBounds()); | |
// create the zoomhome-control and add it to the map | |
var zoomHome = L.Control.zoomHome(); | |
zoomHome.addTo(map); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment