/* * Copyright (c) 2005-2006 Andriy Bidochko. * http://www.mapbuilder.net * * The script has been generated by MapBuilder.net service and released to the customer under * The GNU General Public License (GPL), which can be found at: http://www.opensource.org/licenses/gpl-license.php * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation; * either version 2 of the License, or any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ //That function will return the element of the array returned by map.getMapTypes() that identifies the current map function getCurrentMapTypeNumber(oMap){ var type=-1; for(var ix=0;ix 2.64 * marker.setTooltip(oOptions.label); * marker.setOpacity((oOptions.opasity ? oOptions.opasity : 100)); */ } else { var marker = new GMarker(point, icon); } GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } // Zoom map to. Used from InfoWindow function ZoomMapTo(num) { // Get current zoom level var currentZoom = map.getZoom(); // Re-center map newzoom = (currentZoom > 17) ? 17 : ((currentZoom == 0) ? 0 : (currentZoom + 1)); //V2-V1 compatability map.setCenter(aLocations[num][3], newzoom); } // Function is called when sidebar item is clicked or we are dealing with group boxes. function myInfoWindowHtml(num) { // Map rendering with open info window is very slow. Lets center map first. map.setCenter(aLocations[num][3]); // Use markeropenInfoWindowHtml(html) aLocations[num][0].openInfoWindowHtml(aLocations[num][2]); } /* Side Bar */ // Creates a locations list and put it into side bar function createSideBar() { var oUL = document.createElement("ul"); // write links into document. for (var i=0; i[+] Directions: To here - From here
Start address
" } GetGoogleMapsAPIVersion = function() { var v = 0; var scripts = document.getElementsByTagName("SCRIPT") for (var i=0; i" + ""; // Define Marker InfoHTML = "
Longfellow Creek: headwaters
\"Streambed
200 SW Roxbury Street
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_green.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[0] = new Array(marker, "Longfellow Creek: headwaters", InfoHTML, point); point = new GLatLng(47.5538, -122.3656); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Longfellow Creek: Jay Mirro
\"Longfellow
SW Brandon St at 26th Ave SW
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_green.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[1] = new Array(marker, "Longfellow Creek: Jay Mirro", InfoHTML, point); point = new GLatLng(47.563468, -122.375996); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Longfellow Creek: NOAA fish biologists
\"NOAA
4470 35th Ave SW
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_green.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[2] = new Array(marker, "Longfellow Creek: NOAA fish biologists", InfoHTML, point); point = new GLatLng(47.5647, -122.3655); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Longfellow Creek: Salmon Bone Bridge
\"Fishbone
SW Genesee St at 26th Ave SW
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_green.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[3] = new Array(marker, "Longfellow Creek: Salmon Bone Bridge", InfoHTML, point); point = new GLatLng(47.711786, -122.367637); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Piper's Creek: Carkeek Park
\"Fish
950 NW Carkeek Park Road
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_orange.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[4] = new Array(marker, "Piper's Creek: Carkeek Park", InfoHTML, point); point = new GLatLng(47.5115, -122.2483); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Taylor Creek: Dead Horse Canyon
\"Map,
68th Ave S at Rainier Ave S
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[5] = new Array(marker, "Taylor Creek: Dead Horse Canyon", InfoHTML, point); point = new GLatLng(47.705224, -122.291079); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Thornton Creek: Beaver Pond
\"Searching
10517 35th Ave NE
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[6] = new Array(marker, "Thornton Creek: Beaver Pond", InfoHTML, point); point = new GLatLng(47.7032, -122.3232); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Thornton Creek: construction zone
\"Northgate
5th Ave NE at NE 103rd Street
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[7] = new Array(marker, "Thornton Creek: construction zone", InfoHTML, point); point = new GLatLng(47.6959, -122.32975); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Thornton Creek: headwaters
\"Reporter
2300 N 92nd Street
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[8] = new Array(marker, "Thornton Creek: headwaters", InfoHTML, point); point = new GLatLng(47.69588, -122.2732); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Thornton Creek: mouth
\"The
9000 51st Ave NE
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[9] = new Array(marker, "Thornton Creek: mouth", InfoHTML, point); // And finnaly create sidebar createSideBar(); }