Skip to content

Instantly share code, notes, and snippets.

@glassbead0
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glassbead0/14706666c668cb0a4921 to your computer and use it in GitHub Desktop.
Save glassbead0/14706666c668cb0a4921 to your computer and use it in GitHub Desktop.
<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