Created
June 8, 2011 13:37
-
-
Save ajturner/1014431 to your computer and use it in GitHub Desktop.
Styled InfoWindows 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> | |
| <div id="results"></div> | |
| <script type="text/javascript" charset="utf-8"> | |
| var mymap = new F1.Maker.Map({ | |
| map_id: 48852, | |
| dom_id: "embed_map", | |
| onmaploaded: function() { | |
| embed_map.addLayerInfoWindowFilter(0, {title: "$[community]", subtitle:"number of dogs per person: $[number of dogs/per person]", tabs: [{title:"About", type: "text", value: "There are $[number of dogs/per person] dogs per person in $[community]"}, {title: "Data", type:"table", value:"$[latitude]$[longitude]"}]}) | |
| } | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment