/* * Copyright (c) 2005-2007 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.openInfoWindowTabsHtml( [ new GInfoWindowTab("Info", html), new GInfoWindowTab("Directions", GetDirectionForm(id)) ]); }); 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].openInfoWindowTabsHtml( [ new GInfoWindowTab("Info", aLocations[num][2]), new GInfoWindowTab("Directions", GetDirectionForm(num)) ]); } /* 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 options = {opasity: 100, label:"Belly"}; InfoHTML = "
Belly
\"Belly\"

New American cuisine
309 East Main St, Montrose, CO
(970) 252-1488
Belly\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 0); map.addOverlay(marker); aLocations[0] = new Array(marker, "Belly", InfoHTML, point); point = new GLatLng(38.4796576, -107.8786217); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Cafe 110"}; InfoHTML = "
Cafe 110
\"Cafe

Southwestern cuisine
110 N Townsend Ave, Montrose, CO
(970) 249-0777
Cafe 110\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 1); map.addOverlay(marker); aLocations[1] = new Array(marker, "Cafe 110", InfoHTML, point); point = new GLatLng(38.4508781, -107.8656792); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Camp Robber"}; InfoHTML = "
Camp Robber
\"Camp

Southwestern cuisine
1515 Ogden Rd, Montrose, CO
(970) 240-1590
Camp Robber\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 2); map.addOverlay(marker); aLocations[2] = new Array(marker, "Camp Robber", InfoHTML, point); point = new GLatLng(38.47886134, -107.8773415); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Cazwella's"}; InfoHTML = "
Cazwella's
\"Cazwellas\"

Food from the Americas
320 East Main St, Montrose, CO
(970) 252-9200
Cazwella\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 3); map.addOverlay(marker); aLocations[3] = new Array(marker, "Cazwella's", InfoHTML, point); point = new GLatLng(38.4782521, -107.8790245); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Fiesta Guadalajara"}; InfoHTML = "
Fiesta Guadalajara
\"Fiesta

Mexican cuisine
26 N Selig Ave, Montrose, CO
(970) 249-2460
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 4); map.addOverlay(marker); aLocations[4] = new Array(marker, "Fiesta Guadalajara", InfoHTML, point); point = new GLatLng(38.48698, -107.859063); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Garlic Mike's"}; InfoHTML = "
Garlic Mike's
\"Garlic

Itialian cuisine [pizza, sandwiches, pastas]
103 Rose Ln, Montrose, CO
(970) 249-4381
Garlic Mike\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 5); map.addOverlay(marker); aLocations[5] = new Array(marker, "Garlic Mike's", InfoHTML, point); point = new GLatLng(38.44750549, -107.8644991); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Paghre's "}; InfoHTML = "
Paghre's
\"Paghres\"

Itialian cuisine [pizza, sandwiches, pastas]
1541 Oxbow Dr, Suite 1800, Montrose, CO
(970) 249-6442
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 6); map.addOverlay(marker); aLocations[6] = new Array(marker, "Paghre's ", InfoHTML, point); point = new GLatLng(38.45092526, -107.8654218); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Papa Murphy's"}; InfoHTML = "
Papa Murphy's
\"Papa

Pizza [take & bake]
1521 Ogden Rd, Montrose, CO
(970) 249-7300
Papa Murphy\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 7); map.addOverlay(marker); aLocations[7] = new Array(marker, "Papa Murphy's", InfoHTML, point); point = new GLatLng(38.48683149, -107.8662264); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Red Barn"}; InfoHTML = "
Red Barn
\"Red

Steakhouse
1413 East Main St, Montrose, CO
(970) 249-9202
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 8); map.addOverlay(marker); aLocations[8] = new Array(marker, "Red Barn", InfoHTML, point); point = new GLatLng(38.455588, -107.844664); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Remington's at the Bridges"}; InfoHTML = "
Remington's at the Bridges
\"Remingtons

Steaks, seafood, fine dining
2500 Bridge Cir, Montrose, CO
(970) 252-1010
Remington\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 9); map.addOverlay(marker); aLocations[9] = new Array(marker, "Remington's at the Bridges", InfoHTML, point); point = new GLatLng(38.44730383, -107.8642416); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Rib City Grill"}; InfoHTML = "
Rib City Grill
\"Rib

Barbeque cuisine
1521 Oxbow Drive, Suite 165, Montrose, CO
(970) 249-7427
Rib City Grill\'s web site
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 10); map.addOverlay(marker); aLocations[10] = new Array(marker, "Rib City Grill", InfoHTML, point); point = new GLatLng(38.4494944, -107.8676188); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Stone House"}; InfoHTML = "
Stone House
\"Stone

Steaks, seafood, pastas
1415 Hawk Pkwy, Montrose, CO
(970) 240-8899
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 11); map.addOverlay(marker); aLocations[11] = new Array(marker, "Stone House", InfoHTML, point); point = new GLatLng(38.4899503, -107.8938076); footerHtml = ""; // Define Marker options = {opasity: 100, label:"Union Cafe"}; InfoHTML = "
Union Cafe
\"Union

American cuisine [Gourmet burgers, sandwiches, subs, salads]
87 Merchant Dr, Montrose, CO
(970) 249-3060
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options, 12); map.addOverlay(marker); aLocations[12] = new Array(marker, "Union Cafe", InfoHTML, point); // And finnaly create sidebar createSideBar(); }