From 78f6e07457624f7b5cde6557ef681945072d3d8f Mon Sep 17 00:00:00 2001 From: fkloft Date: Mon, 23 Dec 2013 21:53:25 +0100 Subject: [PATCH] Mobile: implement follow mode --- mobile/plugins/user-location.user.js | 28 ++++++++++++ .../ic_action_location_follow.png | Bin 0 -> 646 bytes .../ic_action_location_follow.png | Bin 0 -> 451 bytes .../ic_action_location_follow.png | Bin 0 -> 820 bytes .../ic_action_location_follow.png | Bin 0 -> 1236 bytes .../cradle/iitc_mobile/IITC_JSInterface.java | 10 +++++ .../com/cradle/iitc_mobile/IITC_Mobile.java | 41 +++++++++++++----- .../cradle/iitc_mobile/IITC_UserLocation.java | 14 ++++++ 8 files changed, 82 insertions(+), 11 deletions(-) create mode 100644 mobile/res/drawable-hdpi/ic_action_location_follow.png create mode 100644 mobile/res/drawable-mdpi/ic_action_location_follow.png create mode 100644 mobile/res/drawable-xhdpi/ic_action_location_follow.png create mode 100644 mobile/res/drawable-xxhdpi/ic_action_location_follow.png diff --git a/mobile/plugins/user-location.user.js b/mobile/plugins/user-location.user.js index 24a76147..c11ddf94 100644 --- a/mobile/plugins/user-location.user.js +++ b/mobile/plugins/user-location.user.js @@ -21,6 +21,7 @@ window.plugin.userLocation = function() {}; window.plugin.userLocation.locationLayer = new L.LayerGroup(); +window.plugin.userLocation.follow = false; window.plugin.userLocation.setup = function() { $('