Last active
December 16, 2017 05:43
-
-
Save christianhent/c5ad2ce8b7e73bf86e35a4fd170dbc98 to your computer and use it in GitHub Desktop.
disables the standard zoom control
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 | |
// ... | |
// set {zoomControl: false} to disable the default zoom control | |
var map = new L.Map('map',{ | |
fullscreenControl: true, | |
zoomControl: false, | |
fullscreenControlOptions: { | |
position: 'topleft' | |
}, | |
layers: [tile] | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment