Skip to content

Commit 85af407

Browse files
committed
Enable chase car upload for all browsers with geolocation
1 parent c601884 commit 85af407

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,10 @@ $(window).ready(function() {
901901
//setTimeout(function() {updateCurrentPosition(50.27533, 3.335166);}, 5000);
902902
if(navigator.geolocation) {
903903
// if we have geolocation services, show the locate me button
904-
// the button pants the map to the user current location
905-
if(is_mobile && !wvar.enabled) $(".chasecar").show();
904+
// the button pans the map to the user current location
905+
//if(is_mobile && !wvar.enabled) $(".chasecar").show();
906+
// Enable the chase-car option for all browsers, not just mobile ones.
907+
$(".chasecar").show();
906908
$("#locate-me,#app_name").attr('style','').click(function() {
907909
if(map && currentPosition) {
908910
// disable following of vehicles

0 commit comments

Comments
 (0)