Definition of Issue:
Something has changed with the way Google's Map API is working. It no longer respects the pop-up showing the address location in BoldTrak. The address is being returned and the pin is being dropped on the map but the call to pop-up the Address is no longer functioning. It could be that the issue lies with the BrowserHost (internal web browser) in OWS.
Current Workaround:
We have created a way for the address to be listed so that the operator can still access this information.
- Browse to the BoldTrak directory on the IIS machine (typically C:\inetpub\wwwroot\BoldTrak)
- Open Views/Shared/_BasicLayout.cshtml
- Under the <body> tag, add the following:
<h3 id=”customError”></h3> - Save.
- Open Views/Tracking/Tracking.cshtml
- Scroll down about ¾ of the way, to where you see this:
if(status == google.maps.GeocoderStatus.OK){
setDetailField("detailAddress", geocodeResults[0].formatted_address);
}else{
setDetailField("detailAddress", "Not Available");
}if(status == google.maps.GeocoderStatus.OK){
- Replace with the following:
var el = document.getElementById("customError");
if (status == google.maps.GeocoderStatus.OK) {
setDetailField("detailAddress", geocodeResults[0].formatted_address);
el.innerHTML = geocodeResults[0].formatted_address;
} else {
setDetailField("detailAddress", "Not Available");
el.innerHTML = "Not Available";
}
setDetailField("detailAddress", geocodeResults[0].formatted_address);
el.innerHTML = geocodeResults[0].formatted_address;
} else {
setDetailField("detailAddress", "Not Available");
el.innerHTML = "Not Available";
}
Permanent Solution:
We need to identify the root cause and determine if we have to change to a new Google API or if we can fix this in the OWS.