','try1',icon);
}
else {
var mappoint = new GLatLng(42.28753, -71.58527);
map.setCenter(mappoint, 14);
if ('A'=='Z') {
document.getElementById("place").innerHTML="The address could not be found.
The general area of zipcode 01581 is shown instead.";
document.getElementById("directions").innerHTML="";
}
else {
var marker = new GMarker(mappoint,icon);
map.addOverlay(marker);
}
}
}
}
function showAddress(address,flag,icon) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
showAddress('01581','try2');
document.getElementById("place").innerHTML="The address could not be found.
The general area of zipcode 01581 is shown instead.";
document.getElementById("directions").innerHTML="";
}
else {
map.setCenter(point, 14);
if (flag == 'try1') {
var marker = new GMarker(point,icon);
map.addOverlay(marker);
}
}
}
);
}
}
function howgetthere() {
var startpoint = document.directions.start.value;
var url = "http://maps.google.com/maps?saddr="+ startpoint+ "&daddr=1 Research Drive, MA, 01581"
window.open(url,'poppy','width=800,height=600');
}
function poof() {
document.directions.start.value="";
}
//]]>
![]() |
![]() |
||
|
||||