Skip to content

Commit ea2930d

Browse files
Updated URIs for launching map apps
1 parent e5fd9cd commit ea2930d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,11 @@ function updateVehicleInfo(index, position) {
364364
var ua = navigator.userAgent.toLowerCase();
365365
// determine how to link the vehicle coordinates to a native app, if on a mobile device
366366
if(ua.indexOf('iphone') > -1) {
367-
coords_text = '<a id="launch_mapapp" href="http://maps.google.com/?q='+position.gps_lat+','+position.gps_lon+'">'
367+
coords_text = '<a id="launch_mapapp" href="maps://?q='+position.gps_lat+','+position.gps_lon+'">'
368368
+ roundNumber(position.gps_lat, 6) + ', ' + roundNumber(position.gps_lon, 6) +'</a>'
369369
+ ' <i class="icon-location"></i>';
370370
} else if(ua.indexOf('android') > -1) {
371-
coords_text = '<a id="launch_mapapp" href="geo:0,0?q='+position.gps_lat+','+position.gps_lon+'">'
371+
coords_text = '<a id="launch_mapapp" href="geo:'+position.gps_lat+','+position.gps_lon+'">'
372372
+ roundNumber(position.gps_lat, 6) + ', ' + roundNumber(position.gps_lon, 6) +'</a>'
373373
+ ' <i class="icon-location"></i>';
374374
} else {

0 commit comments

Comments
 (0)