Created
March 18, 2017 09:18
-
-
Save abhisuri97/b4ac9110eaeedebdec146b8ad3d45b47 to your computer and use it in GitHub Desktop.
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
var mymap = L.map('mapid', { | |
scrollWheelZoom: false, | |
zoomControl: false | |
}).setView([39.9526, - 75.163], 3); | |
L.tileLayer('https://api.mapbox.com/styles/v1/mapbox/streets-v10/tiles/256/{z}/{x}/{y}@2x?access_token=hithereyouthoughtyoucouldgetanaccesstoken', { | |
maxZoom: 18, | |
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap<\/a> contributors, ' + '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA<\/a>, ' + 'Imagery © <a href="http://mapbox.com">Mapbox<\/a>', | |
}).addTo(mymap); | |
L.control.zoom({ | |
position: 'bottomright' | |
}).addTo(mymap); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment