Created
June 8, 2011 14:11
-
-
Save ajturner/1014482 to your computer and use it in GitHub Desktop.
Show Controls in GeoIQ
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
| <script src="http://geocommons.com/javascripts/f1.api.js" type="text/javascript"></script> | |
| <style type="text/css" media="screen"> | |
| #embed_map {width: 100%; height: 400px;} | |
| </style> | |
| <div id="embed_map"></div> | |
| <ul> | |
| <li>Zoom: <a href="#" onclick="mymap.showControl('Zoom',true);">show</a> | <a href="#" onclick="mymap.showControl('Zoom',false);">hide</a></li> | |
| <li>Layers: <a href="#" onclick="mymap.showControl('Layers',true);">show</a> | <a href="#" onclick="mymap.showControl('Layers',false);">hide</a></li> | |
| <li>Legend: <a href="#" onclick="mymap.showControl('Legend',true);">show</a> | <a href="#" onclick="mymap.showControl('Legend',false);">hide</a></li> | |
| <script type="text/javascript" charset="utf-8"> | |
| var mymap = new F1.Maker.Map({ | |
| map_id: 48852, | |
| dom_id: "embed_map", | |
| uiZoom: false, | |
| uiLegend: false, | |
| uiLayers: false | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment