Skip to content

Instantly share code, notes, and snippets.

@ajturner
Created June 8, 2011 13:37
Show Gist options
  • Select an option

  • Save ajturner/1014431 to your computer and use it in GitHub Desktop.

Select an option

Save ajturner/1014431 to your computer and use it in GitHub Desktop.
Styled InfoWindows in GeoIQ
<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