Skip to content

Instantly share code, notes, and snippets.

@aergonaut
Created February 25, 2013 05:32
Show Gist options
  • Save aergonaut/5027966 to your computer and use it in GitHub Desktop.
Save aergonaut/5027966 to your computer and use it in GitHub Desktop.
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