Created
November 27, 2012 22:19
-
-
Save springmeyer/4157545 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/js/site.js b/js/site.js | |
index df5fbb6..672ff5b 100644 | |
--- a/js/site.js | |
+++ b/js/site.js | |
@@ -1,4 +1,4 @@ | |
-var mm = com.modestmaps, map; | |
+var mm = com.modestmaps, map, glow; | |
$.domReady(function() { | |
function mapMM() { | |
$('#map')[0].innerHTML = ''; | |
@@ -7,19 +7,7 @@ $.domReady(function() { | |
map = new mm.Map('map', new wax.mm.connector(tj)); | |
// wax.mm.interaction(map, tj, {clickAction: []}); | |
map.setCenterZoom(new mm.Location(38.376115424036016, -97.11914062499999), 5); | |
- var glow = glower.mm(map, tj); | |
- }); | |
- } | |
- | |
- function mapLeaf() { | |
- $('#map')[0].innerHTML = ''; | |
- wax.tilejson('http://d.tiles.mapbox.com/v2/energy.billion-ton-update-biomass-production-by-county-v3.jsonp', | |
- function(tj) { | |
- map = new L.Map('map'); | |
- map.addLayer(new wax.leaf.connector(tj), { zoomControl: false }); | |
- // wax.mm.interaction(map, tj, {clickAction: []}); | |
- map.setView(new L.LatLng(38.376, -97.119), 5); | |
- var glow = glower.leaf(map, tj); | |
+ glow = glower.mm(map, tj); | |
}); | |
} | |
@@ -38,7 +26,7 @@ $.domReady(function() { | |
// layers and you won't see Google tiles | |
map.mapTypes.set('mb', new wax.g.connector(tj)); | |
map.setMapTypeId('mb'); | |
- var glow = glower.g(map, tj); | |
+ glow = glower.g(map, tj); | |
}); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment