// // This JS file sets up the Gmap and one specific location. Its // used by the locations app for the detailed location pages. // if (GBrowserIsCompatible()) { var gmarker; var html; // // custom icon to use on the map // var icon = new GIcon(); icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; icon.iconSize = new GSize(12, 20); icon.shadowSize = new GSize(22, 20); icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(5, 1); // // create the map and center it on the napa valley // var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.setCenter(new GLatLng(38.4,-122.45), 13); // A function to create the marker and set up the event window function createMarker(point,name,info) { var marker = new GMarker(point, icon); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml('
'+info+'
'); }); // save the info we need to use later for the sidebar gmarker = marker; html = info; return marker; } var point = new GLatLng(38.49406,-122.40601); var marker = createMarker(point,96, ' \u003Cdiv class\u003D\u0022location\u0022\u003E\u000A \u000A \u003Ch3\u003ERutherford Hill Winery \u003Cimg src\u003D\u0022/media/site_media/icons/tasting.gif\u0022 alt\u003D\u0022tasting\u0022 width\u003D\u002215\u0022 height\u003D\u002215\u0022 /\u003E\u003Cimg src\u003D\u0022/media/site_media/icons/tour.gif\u0022 alt\u003D\u0022tour\u0022 width\u003D\u002215\u0022 height\u003D\u002215\u0022 /\u003E\u003Cimg src\u003D\u0022/media/site_media/icons/picnic.gif\u0022 alt\u003D\u0022picnic\u0022 width\u003D\u002215\u0022 height\u003D\u002215\u0022 /\u003E\u003C/h3\u003E\u000A \u000A \u003Cdiv class\u003D\u0022links\u0022\u003E\u000A \u003Cul\u003E\u003Cli\u003E\u003Ca href\u003D\u0022http://maps.google.com/maps?saddr\u003D\u0026daddr\u003D200%20Rutherford%20Hill%20Road%20Rutherford%2C%20CA%2094573\u0022 onclick\u003D\u0022this.blur()\u003B\u0022\u003EGet Directions!\u003C/a\u003E\u003C/li\u003E\u003Cli\u003E\u003Ca href\u003D\u0022http://www.rutherfordhill.com/\u0022 onclick\u003D\u0022this.blur()\u003B\u0022 target\u003D\u0022_blank\u0022 rel\u003D\u0022nofollow\u0022\u003EWebsite\u003C/a\u003E\u003C/li\u003E\u003C/ul\u003E\u000A \u000A \u000A \u003Cdiv class\u003D\u0022rating\u0022\u003E\u003Cdiv class\u003D\u0022stars\u002Doff\u0022 style\u003D\u0022width:80px\u0022\u003E\u003Cdiv class\u003D\u0022stars\u002Don\u0022 style\u003D\u0022width:80px\u0022\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u000A \u003C/div\u003E\u000A \u000A \u003Cdiv class\u003D\u0022info\u0022\u003E\u000A\u000A \u003Ca href\u003D\u0022/location/rutherford\u002Dhill\u002Dwinery/\u0022\u003E\u003Cimg class\u003D\u0022thumbnail\u0022 src\u003D\u0022/media/cache/rutherford_hill_thumb_thumbnail_image.jpg\u0022\u000A alt\u003D\u0022/media/cache/rutherford_hill_thumb_thumbnail_image.jpg\u0022 \u000A title\u003D\u0022/media/cache/rutherford_hill_thumb_thumbnail_image.jpg\u0022 /\u003E\u003C/a\u003E\u000A\u000A \u003Cdiv class\u003D\u0022info_details\u0022\u003E\u003Cdiv class\u003D\u0022col_right\u0022\u003E\u000A (707) 963\u002D1871\u003Cbr /\u003E200 Rutherford Hill Road Rutherford, CA 94573\u000A \u003C/div\u003E\u000A \u000A Tasting Room: \u003Cb\u003E$15\u003C/b\u003E\u003Cbr /\u003E\u000A Tour: \u003Cb\u003E$20\u003C/b\u003E\u003Cbr /\u003E\u000A Picnic Area: \u003Cb\u003Eyes\u003C/b\u003E\u003Cbr /\u003E\u000A \u000A \u000A \u000A Hours: \u003Cb\u003EDaily 10am to 5pm\u003C/b\u003E\u003C/div\u003E \u000A \u003C!\u002D\u002D clear the float left and right from columns \u002D\u002D\u003E\u000A \u003Cdiv class\u003D\u0022clear\u0022\u003E\u003C/div\u003E\u000A \u003C/div\u003E\u000A \u003C/div\u003E'); map.addOverlay(marker); gmarker.openInfoWindowHtml('
'+html+'
'); }