Last active
August 29, 2015 14:07
-
-
Save glassbead0/14706666c668cb0a4921 to your computer and use it in GitHub Desktop.
This file contains 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
<script type="text/javascript"> | |
// Load the US Map | |
jQuery(document).ready(function(e) { | |
jQuery.getJSON('usa.json', {}, function(json) { | |
jQuery('#map-usa').gmap({'center': '36,-98', 'zoom': 4, 'disableDefaultUI': false, 'callback': function() { | |
// Add a bunch of map markers for USA map here | |
// Use MarkerClusterer to make marker clusters | |
}}); | |
}); | |
}); | |
//Load the international map | |
jQuery(document).ready(function(e) { | |
jQuery.getJSON('international.json', {}, function(json) { | |
map = jQuery('#map-international').gmap({'center': '36,-98', this: 'resize', 'zoom': 20, 'disableDefaultUI': false, 'callback': function() { | |
// Add a bunch of map markers for international map here | |
// Use MarkerClusterer to make marker clusters | |
}}); | |
}); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment