//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(35.36441589327595, -119.02519226074219), 11);//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; } // //ALBANY COURT (1_2027) points.push(new GLatLng(35.29652834752265,-119.1031265258789)); 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(35.29652834752265,-119.1031265258789)); }); map.addOverlay(markers[0]); // //BRIDGETON (3_9264) points.push(new GLatLng(35.43577803767836,-119.11505699157715)); 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(35.43577803767836,-119.11505699157715)); }); map.addOverlay(markers[1]); } } window.onload=load; //]]>