Forum Discussion
ArchiveUser
8 years agoQrew Captain
The preference is to just show the satellite image instead of the map image in the form itself. Next option is a toggle in the corner of the map like that found on a Google Maps display, the one in the corner.
The top image is how QB shows maps based on the Address field. The bottom is from the Geolocation app in the Exchange.
GEO.JS HTML Page
The formula in the MAP field that is shown in bottom pic.
The top image is how QB shows maps based on the Address field. The bottom is from the Geolocation app in the Exchange.
GEO.JS HTML Page
jQuery(document).ready(function getLocation()
{
if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(showPosition);
}
var test = $.ajax({url: url,async:false,success: pushResult}).responseText;
return false;
});
function showPosition(position){
var editURL = "";
editURL = "bmvifd7ns";
editURL += "?act=API_EditRecord&key=" + QBU_recid;
editURL += "&_fid_12=" + position.coords.latitude;
editURL += "&_fid_13=" + position.coords.longitude;
$.ajax({url: editURL,async:false});
location.reload(true);
}
The formula in the MAP field that is shown in bottom pic.
If([PCC Latitude]=0,
"Location Not Found!",
"<img src= \"http://maps.google.com/maps/api/staticmap?center="&[PCC Latitude]&"+"&[PCC Longitude]&"zoom=14&size=400x400\n&markers=color:blue%7Clabel:S%7C"&[PCC Latitude]&"+"&[PCC Longitude]&"&sensor=false\" alt=\"\"/>")