Skip to content

Instantly share code, notes, and snippets.

@willwhite
Created October 27, 2011 14:10
Show Gist options
  • Save willwhite/1319646 to your computer and use it in GitHub Desktop.
Save willwhite/1319646 to your computer and use it in GitHub Desktop.
--- texas.html 2011-10-27 10:10:29.000000000 -0400
+++ demo.html 2011-10-26 17:02:57.000000000 -0400
@@ -19,6 +19,7 @@
<script>
var mm = com.modestmaps;
var map;
+ var interaction;
// Each time a layer is clicked, we request the TileJSON from
// MapBox Hosting and use that to configure the map with `map.setProvider()`.
$('li a').click(function() {
@@ -33,7 +34,6 @@
tilejson.center[0]),
tilejson.center[2] - 3);
wax.mm.zoomer(map, tilejson).appendTo(map.parent);
- wax.mm.interaction(map, tilejson);
interaction = wax.mm.interaction(map, tilejson);
} else {
// We used the TileJSON to configure the map.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment