//0 && $("#edit-field-map-center-coordinates-0-value").val() != ""){ submittedpoints=eval("["+$("#edit-field-map-center-coordinates-0-value").val().split("(").join("").split(")").join("")+"]"); map.setCenter(new GLatLng(submittedpoints[0],submittedpoints[1]), 10);//note, this center function has to run before adding controls or else it breaks in ie7 }else{ map.setCenter(new GLatLng(36.350388748220006, -119.67046737670898), 14);//note, this center function has to run before adding controls or else it breaks in ie7 } map.removeMapType(G_HYBRID_MAP); map.removeMapType(G_SATELLITE_MAP); map.addMapType(G_PHYSICAL_MAP); var extLargeMapControl = new ExtLargeMapControl(); map.addControl(extLargeMapControl);//throwing ie7 error var baseIcon = new GIcon(G_DEFAULT_ICON); baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; baseIcon.iconSize = new GSize(22, 22); baseIcon.shadowSize = new GSize(0, 0); function createMarker(point, index) { var letteredIcon = new GIcon(baseIcon); letteredIcon.image = "/sites/all/themes/common/pin" + index + ".png"; markerOptions = { icon:letteredIcon }; var marker = new GMarker(point, markerOptions); return marker; } // //MERIDIAN (1_2188) points.push(new GLatLng(36.35473,-119.6668)); markers.push(createMarker(points[0], 0+1)); markers[0].bid=0; GEvent.addListener(markers[0], "click", function(){ this.openExtInfoWindow( map, "custom_info_window_bubble", '
' ,{beakOffset: -5} ); map.panTo(new GLatLng(36.35473,-119.6668)); }); map.addOverlay(markers[0]); // //BORDEAUX...ONLY A FEW HOMES REMAINING! (2_2190) points.push(new GLatLng(36.35293,-119.66674)); markers.push(createMarker(points[1], 1+1)); markers[1].bid=1; GEvent.addListener(markers[1], "click", function(){ this.openExtInfoWindow( map, "custom_info_window_bubble", '' ,{beakOffset: -5} ); map.panTo(new GLatLng(36.35293,-119.66674)); }); map.addOverlay(markers[1]); } } window.onload=load; //]]>