Created
February 25, 2013 05:32
-
-
Save aergonaut/5027966 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
jQuery -> | |
mapOpts = | |
dragging: false | |
touchZoom: false | |
scrollWheelZoom: false | |
doubleClickZoom: false | |
boxZoom: false | |
map = L.map('map', mapOpts) | |
tileOpts = | |
attribution: 'Tiles by <a href="http://mapbox.com/about/maps" rel="external">MapBox</a>' | |
L.tileLayer('http://{s}.tiles.mapbox.com/v3/aergonaut.map-49fnwp4h/{z}/{x}/{y}.png', tileOpts).addTo(map) | |
if $('body.sessions').length | |
map.locate | |
setView: true | |
maxZoom: 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment