how to remove the code
When removing the openInfoWindowHtml code, what part would I delete?
Here is a sample of the bottom of the code
if (address_3.addressType == "coordinates") {
var cacheReturn = '';
} else {
var cacheReturn = searchCache(address_3.full, address_3.zip);
}
if (cacheReturn != "" || (address_3.addressType == "coordinates")) {
if(address_3.addressType == "coordinates") {
var latitude = address_3.latitude;
var longitude = address_3.longitude;
} else {
var latitude = cacheReturn.substring(1,cacheReturn.indexOf(",")-1);
var longitude = cacheReturn.substring(cacheReturn.indexOf(",")+1,(cacheReturn.length)-1);
}
var point = new GLatLng(latitude, longitude);
if (point && !isNaN(latitude)) {
wagmp_map_1_obj.addressFailed = false;
var marker_3 = new GMarker(point, icon_3);
GEvent.addListener(marker_3, 'click', function() {
marker_3.openInfoWindowHtml(address_3.infowindowtext);
});
if(!fromAddress.enabled || 'address_3' != 'address_3') {
if('address_3' == 'address_3')
map.setCenter(point, 6);
map.addOverlay(marker_3);
if('address_3' == 'address_3')
marker_3.openInfoWindowHtml(address_3.infowindowtext);
}
wagmp_map_1_obj.markers.push(marker_3);
wagmp_map_1_obj.addresses.push(address_3);
wagmp_map_1_obj.icons.push(icon_3);
wagmp_map_1_obj.points.push(point);
} else {
if (wagmp_map_1_obj.addressFailed) {
map.setCenter(new GLatLng(41, -80), 3);
}
wagmp_map_1_obj.addressFailed = true;
}
} else if (address_3.addressType == "address") {
geocoder.getLatLng (
address_3.full,
function(point) {
if(point) {
this.addressFailed = false;
addToCache(address_3.full, '', point);
var marker_3 = new GMarker(point, icon_3);
GEvent.addListener(marker_3, 'click', function() {
marker_3.openInfoWindowHtml(address_3.infowindowtext);
});
if(!fromAddress.enabled || 'address_3' != 'address_3') {
if('address_3' == 'address_3')
map.setCenter(point, 6);
map.addOverlay(marker_3);
if('address_3' == 'address_3')
marker_3.openInfoWindowHtml(address_3.infowindowtext);
}
wagmp_map_1_obj.markers.push(marker_3);
wagmp_map_1_obj.addresses.push(address_3);
wagmp_map_1_obj.icons.push(icon_3);
wagmp_map_1_obj.points.push(point);
} else {
var noZipAddress = address_3.full.replace((address_3.zip+','), '');
geocoder.getLatLng (noZipAddress,
function(point) {
if(point) {
wagmp_map_1_obj.addressFailed = false;
addToCache(address_3.full, address_3.zip, point);
var marker_3 = new GMarker(point, icon_3);
GEvent.addListener(marker_3, 'click', function() {
marker_3.openInfoWindowHtml(address_3.infowindowtext);
});
if (!fromAddress.enabled || 'address_3' != 'address_3') {
if('address_3' == 'address_3')
map.setCenter(point, 6);
map.addOverlay(marker_3);
if('address_3' == 'address_3')
marker_3.openInfoWindowHtml(address_3.infowindowtext);
}
wagmp_map_1_obj.markers.push(marker_3);
wagmp_map_1_obj.addresses.push(address_3);
wagmp_map_1_obj.icons.push(icon_3);
wagmp_map_1_obj.points.push(point);
} else {
if (wagmp_map_1_obj.addressFailed) {
map.setCenter(new GLatLng(41, -80), 3);
}
wagmp_map_1_obj.addressFailed = true;
}
}