/* * 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 = "
Downtown Olympia
\"ShoppersMuch of the city\'s downtown sits on landfill, just a foot or so above the highest tides of the year. City officials believe predict sea level rise from climate will cause much of downtown to be flooded during heavy rains or extreme high tides.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[0] = new Array(marker, "Downtown Olympia", InfoHTML, point); point = new GLatLng(47.038217, -122.901016); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Hands on Children's Museum
\"TheThe museum, which is currently housed in a drab former state office building, long ago out grew its space. A new facility planned for the Port Peninsula would allow the museum to triple its size.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[1] = new Array(marker, "Hands on Children's Museum", InfoHTML, point); point = new GLatLng(47.049568, -122.902158); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Olympia Farmers' Market
\"OlympiaOlympia\'s Farmers\' market sits on the Port Peninsula, which is just a foot above high tide. Sea level rise predictions show the entire peninsula periodically covered in floodwaters by the end of the century.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[2] = new Array(marker, "Olympia Farmers' Market", InfoHTML, point); point = new GLatLng(47.02861, -122.72278); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Rich Hoey, Director of Water Resources for the City of Olympia,
\"RichBeneath the white building in the background, 22 million gallons of water a day bubble up from an underground aquifer. The springs provide most of the City of Olympia\'s drinking water. But they lie below mean sea level, and with scientists predicting 1-3 feet of sea level rise over the next century, the springs may become contaminated with tidal water. The City of Olympia has been working for years to secure an alternate drinking water supply at a higher elevation.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[3] = new Array(marker, "Rich Hoey, Director of Water Resources for the City of Olympia,", InfoHTML, point); point = new GLatLng(47.490166, -121.788); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Shamrock Park
King County maintains a system of levees, like the one here, on the South fork of the Snoqualmie River near the neighborhood of Shamrock Park. Floods in Shamrock Park in 2006 had residents rowing through their own back yards. Floodplain managers for the County believe climate change will cause flooding to worsen. That\'s just one reason they have $300 million in levee repairs they\'d like to do in the next decade.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[4] = new Array(marker, "Shamrock Park", InfoHTML, point); point = new GLatLng(47.74, -121.09); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
SNOTEL site at Stevens Pass
\"SNOTELThe SNOTEL network uses sonar and underground scales to measure snow pack at 62 locations in Washington State, like this one at Stevens Pass. The stations transmit hourly data to the Internet via radio signals. Photo by Phyllis Fletcher.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[5] = new Array(marker, "SNOTEL site at Stevens Pass", InfoHTML, point); point = new GLatLng(47.039225, -122.891429); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
The Washington Capitol Building
\"TheThe state\'s Capitol and most state office buildings sit on a hill above the city. But many of the access roads that state employees use to get to work may be flooded by rising tides.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[6] = new Array(marker, "The Washington Capitol Building", InfoHTML, point); point = new GLatLng(47.517, -121.9225); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Upper Preston
\"KingsMark Isaacson and Tom Bean look across the Raging River to some homes in Upper Preston that have been flooded out over and over again. King County is seeking a federal grant to appropriate the land so the river can run its course.
" + 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, "Upper Preston", InfoHTML, point); // And finnaly create sidebar createSideBar(); }