Google Maps Address Pop-up Workaround

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.

  1. Browse to the BoldTrak directory on the IIS machine (typically C:\inetpub\wwwroot\BoldTrak)
  2. Open Views/Shared/_BasicLayout.cshtml
  3. Under the <body> tag, add the following:
    <h3 id=”customError”></h3>
  4. Save.
  5. Open Views/Tracking/Tracking.cshtml
  6. 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){
  1. 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";
}

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.


Was this article helpful?
Thank you for your feedback!
User Icon

Thank you! Your comment has been submitted for approval.