Skip to content

Instantly share code, notes, and snippets.

@yhahn
Created October 2, 2012 16:39
Show Gist options
  • Save yhahn/3820841 to your computer and use it in GitHub Desktop.
Save yhahn/3820841 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.5/mapbox.css' rel='stylesheet' />
</head>
<body>
<div id='map' style='width:500px; height:300px;'></div>
<script type='text/javascript'>
mapbox.auto('map', 'examples.map-4l7djmvo', function(map) {
// Remove default handlers.
while (map.eventHandlers.length) map.eventHandlers.pop().remove();
// Add desired interaction handlers.
map.eventHandlers.push(new easey_handlers.TouchHandler().init(map));
map.eventHandlers.push(new easey_handlers.DragHandler().init(map));
map.eventHandlers.push(new easey_handlers.DoubleClickHandler().init(map));
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment