Skip to content

Instantly share code, notes, and snippets.

@chelm
Created January 3, 2011 19:34
Show Gist options
  • Save chelm/763826 to your computer and use it in GitHub Desktop.
Save chelm/763826 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://geoiq.local/javascripts/f1.api.js"></script>
<script>
$(function(){
gmap = new F1.Maker.Map({
map_id: 107,
dom_id: "goog",
view:'globe',
google_key:'ABQIAAAA630IfPtvy4gvDbA5HdxNGRSR6al1JJILrb2xb6gmsA_quSrGlRSCC3o3yILtTuPd8sBfe4gmHMilJQ'
});
});
function layerToggle(index,vis){
gmap.showLayer(index, vis);
}
</script>
</head>
<body>
<button onclick="javascript:layerToggle(0,false)">Hide 1</button>
<button onclick="javascript:layerToggle(0,true)">Show 1</button>
<div id="goog" style="border:1px solid; width:750px; height:500px;" width=750 height=500></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment