Photos

From MBEWiki
Revision as of 07:30, 26 January 2008 by Mwhite (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

test:

<script type="text/javascript"> //<![CDATA[

     function makeMap1() {      if (GBrowserIsCompatible()) {        var map = new GMap2(document.getElementById("map1"));        map.setCenter(new GLatLng(42.058056, -87.674167), 17, G_HYBRID_MAP);        GEvent.addListener(map, 'click', function(overlay, point) {          if (overlay) {            if (overlay.tabs) {              overlay.openInfoWindowTabsHtml(overlay.tabs);            } else if (overlay.caption) {              overlay.openInfoWindowHtml(overlay.caption);            }          }        });        map.enableScrollWheelZoom(); map.addControl(new GMapTypeControl());  map.addControl(new GSmallMapControl());  mapIcons['N'] = new GIcon(G_DEFAULT_ICON, 'http://maps.google.com/mapfiles/markerN.png'); marker = new GMarker(new GLatLng(42.0579, -87.6739), { 'icon':mapIcons['N'] }); marker.caption = ' '; marker.tabs = [ new GInfoWindowTab('Address', 'NUCAPT (Seidman, Mat. Sci.)
2220 N Campus Dr
Evanston, IL 60208'), new GInfoWindowTab('Directions', '<a href=\"http://maps.google.com/maps?q=2220+N+Campus+Dr,+Evanston,+IL&spn=0.022078,0.040199&hl=en\" class=\"external text\" title=\"http://maps.google.com/maps?q=2220+N+Campus+Dr,+Evanston,+IL&spn=0.022078,0.040199&hl=en\" rel=\"nofollow\">Driving directions</a>') ]; map.addOverlay(marker); GME_DEFAULT_ICON = G_DEFAULT_ICON; } else { document.getElementById("map1").innerHTML = "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>."; } } addLoadEvent(makeMap1);

//]]> </script>

Personal tools