Skip to content

Instantly share code, notes, and snippets.

@SpencerCooley
Created November 17, 2012 08:23
Show Gist options
  • Save SpencerCooley/4094258 to your computer and use it in GitHub Desktop.
Save SpencerCooley/4094258 to your computer and use it in GitHub Desktop.
$(function(){
wax.tilejson('http://a.tiles.mapbox.com/v3/stevef22.map-lts93ykh.jsonp',
function(tilejson) {
var map = new L.Map('map-div')
.addLayer(new wax.leaf.connector(tilejson))
.setView(new L.LatLng(29.409694, -98.490372), 13);
wax.leaf.interaction()
map.on('click', function(e){
L.marker(e.latlng, {draggable:true, title:"marker"}).addTo(map);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment