OpenWetWare:Map

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Rshetty (Talk); changed back to last version by Austin)
Line 1: Line 1:
-
<html xmlns="http://www.w3.org/1999/xhtml">
+
Note you need to reverse the coordinates from [[Institutions.kml]]
-
<script src="http://maps.google.com/maps?file=api&amp;v=2.71&amp;key=ABQIAAAALLbK9zjbd7JpTrkV4-YbwxRSXllrirTOP8BJPCtxjWVzsNMbFRQmkCSOpE5ARgUVPuqz3vsD2xHp3g&amp;hl=en" type="text/javascript"></script>
+
-
<script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;key=ABQIAAAALLbK9zjbd7JpTrkV4-YbwxRSXllrirTOP8BJPCtxjWVzsNMbFRQmkCSOpE5ARgUVPuqz3vsD2xHp3g" type="text/javascript"></script>
+
-
<script src="/w/extensions/GoogleMaps/EditorsMap.js" type="text/javascript"></script>
+
-
<script src="/w/extensions/GoogleMaps/color_select.js" type="text/javascript"></script>
+
<googlemap lat="40" lon="0" zoom="2" width="800" height="600" icon="http://openwetware.org/images/a/ad/OWWEmblem.png">
-
<script type="text/javascript">
+
42.36053792387064,-71.09007145677018
-
//<![CDATA[
+
/MIT\ [[MIT]]
-
    var GME_SMALL_ICON;
+
/Labs\ [[Chen Lab]], [[DeLong Lab]], [[Endy Lab]], [[Grossman Lab]], [[Keating Lab]], [[Alik|Khademhosseini Lab]], [[Knight Lab]], [[Lauffenburger Lab]], [[Lippard Lab]], [[Matsudaira Lab]], [[Prather | Prather Lab]], [[Sauer Lab]], [[Schauer Lab]], [[Stephanopoulos Lab]], [[van Oudenaarden Lab]], [[Wittrup Lab]]
-
    GME_SMALL_ICON = new GIcon();
+
42.39965240903314,-71.12495555710451, Tufts University
-
    GME_SMALL_ICON.image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png";
+
-26.19278044648975,28.03047646695849, University of the Witwatersrand
-
    GME_SMALL_ICON.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
+
12.99680722434742,77.56823161869931, Indian Institute of Science, Bangalore
-
    GME_SMALL_ICON.iconSize = new GSize(12, 20);
+
</googlemap>
-
    GME_SMALL_ICON.shadowSize = new GSize(22, 20);
+
-
    GME_SMALL_ICON.iconAnchor = new GPoint(6, 20);
+
-
    GME_SMALL_ICON.infoWindowAnchor = new GPoint(5, 1);
+
-
 
+
-
    var editors_options = {
+
-
        'container':'toolbar', 'textbox':'wpTextbox1', 'toggle':'google_maps_toggle_link','width':400, 'height':400, 'lat':42.390591, 'lon':-72.525478, 'zoom':14, 'type':'map', 'controls':'medium', 'units':'meters', 'scale':'no', 'selector':'yes', 'zoomstyle':'fast', 'doubleclick':'recenter', 'icons':'http://maps.google.com/mapfiles/marker{label}.png', 'icon':'http://www.google.com/mapfiles/marker.png', 'version':2.71, 'precision':4, 'color':'#758bc5', 'overview':'no', 'geocoder':'1', 'localsearch':'1',  'rtl':false }; var mapIcons = {}; var GME_DEFAULT_ICON = G_DEFAULT_ICON; function addLoadEvent(func) { var oldonload = window.onload; if (typeof oldonload == 'function') { window.onload = function() { oldonload(); func(); }; } else { window.onload = func; } } window.unload = GUnload;var _ = { 'incompatible browser':'In order to see the map that would go in this space, you will need to use a <a href=\"http://local.google.com/support/bin/answer.py?answer=16532&topic=1499\">compatible web browser</a>.', 'no editor':'Unfortunately, your browser does not support the interactive map-making features. Try the latest version of <a href=\"http://www.microsoft.com/ie\">Internet Explorer</a> (Windows) or <a href=\"http://www.mozilla.org/products/firefox\">Firefox</a> (Windows, Mac, and Linux).', 'make marker':'Caption (wiki mark-up OK):', 'remove':'remove', 'caption':'Caption', 'tab title':'Tab title', 'tab':'Tab', 'start path':'start a path', 'save point':'save &amp; close', 'load map from article':'Load a map from the article:', 'no maps':'No maps in this article to load.', 'refresh list':'Refresh list', 'load map':'Load map', 'clip result':'Add to map', 'no results':'Sorry, no results', 'searching':'searching...', 'map':'Map', 'note':'Note: be sure to copy what you want to save into the article (below) before hitting \"Load map\", \"Save\" or \"Preview\"!', 'instructions':'Below is the Wiki mark-up to create the map above.', 'are you sure':'Are you sure?', 'clear all points':'Clear all points', 'refresh points':'Refresh points', 'width':'Width', 'height':'Height', 'scale control':'Scale', 'overview control':'Overview', 'selector control':'Map/Satellite selector', 'zoom control':'Navigation', 'large':'Large', 'medium':'Medium', 'small':'Small', 'no zoom control':'None', 'yes':'Yes', 'no':'No', 'search preface':'Click the map to add a point, or jump to a city, country, address or business:', 'geocode preface':'Click the map to add a point, or jump to a city, country, or address:', 'no search preface':'Click the map to add a point.', 'search':'Search', 'clear search':'clear search results', 'meters':'meters', 'miles':'miles', 'editing path':'Click the map to add more points to this path.', 'save path':'Save', 'edit path':'add points', 'color path':'change color', 'make map':'make a map', 'hide map':'hide map' };var GME_PATHS_SUPPORTED = true; function insertGoogleMapLinks() {
+
-
    var links = document.createElement('div');
+
-
    links.style.fontSize = "10px";
+
-
    links.innerHTML = '<a id="google_maps_show_link" href="javascript:void(0)" '+
+
-
        'onclick="javascript:document.getElementById(\'google_maps_show_link\').style.display=\'none\'; '+
+
-
        'emap = new EditorsMap(editors_options);">'+_['make map']+'</a> <a id="google_maps_toggle_link" href="javascript:emap.toggleGoogleMap()" style="display: none;">'+_['hide map']+'</a>';
+
-
  document.getElementById('toolbar').appendChild(links);
+
-
}
+
-
 
+
-
addLoadEvent(insertGoogleMapLinks);
+
-
//]]>
+
-
</script>
+
-
</html>
+

Revision as of 18:26, 19 April 2007

Note you need to reverse the coordinates from Institutions.kml

Personal tools