Skip to content

Instantly share code, notes, and snippets.

@christianhent christianhent/map.php
Last active Dec 16, 2017

Embed
What would you like to do?
creates the zoomhome-control and add it to the map
<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
You can’t perform that action at this time.