OpenWetWare:Software/Google Earth API

From OpenWetWare
Jump to navigationJump to search

Google Maps API

This Google service could support in many ways the OWW community:

  • visualize locations of the OWW users
  • display all the Institutions involved
  • find the nearest outreach officers

Google Maps API Registration

OWW key is:


This key is good for all URLs in this directory:

Here is a map based on a KML file of all the OpenWetWare institutions in the OpenWetWare:World tour:

(The KML file is stored in Reshma's web directory because it doesn't seem to recognize the uploaded OWW version or the wiki page version ... something to do with the mime type perhaps.)

Ideally the KML file should live on an OWW page.

Here is an implementation of the map in javascript: demo

Here is an implementation of the map using wibbit: demo

<html xmlns="">

   <script src=";v=2&amp;key=ABQIAAAALLbK9zjbd7JpTrkV4-YbwxRSXllrirTOP8BJPCtxjWVzsNMbFRQmkCSOpE5ARgUVPuqz3vsD2xHp3g"
   <script type="text/javascript">
   function load() {
     if (GBrowserIsCompatible()) {
       var map;
       var geoXml = new GGeoXml("");
       map = new GMap2(document.getElementById("map")); 
       map.addControl(new GLargeMapControl());
       map.setCenter(new GLatLng(30,10), 2); 
       map.addControl(new GLargeMapControl());
       map.addControl(new GMapTypeControl());

addOnloadHook(load); hookEvent("unload", GUnload);

   <div id="map" style="width: 800px; height: 600px"></div>


Check out the API documentation for more information.