From 13d1ff9aaa01d45d13a227648a422dc43393a21d Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 8 May 2013 03:05:17 +0100 Subject: [PATCH] change mobile 'my location' to zoom level 15, rather than 13 ideally, the zoom level should be preserved when locating, perhaps with minimum and maximum zoom levels. this way it'd work well for both low portal density regions and the higher portal density in cities (i.e. at least zoom level 13, no more than zoom level 17). leaflet doesn't allow for this as it stands, so tis is a quick-n-dirty improvement --- mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java index 47deeccc..2a235f5d 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_Mobile.java @@ -318,8 +318,7 @@ public class IITC_Mobile extends Activity { // get the users current location and focus it on map case R.id.locate : iitc_view.loadUrl("javascript: window.show('map');"); - iitc_view - .loadUrl("javascript: window.map.locate({setView : true, maxZoom: 13});"); + iitc_view.loadUrl("javascript: window.map.locate({setView : true, maxZoom: 15});"); actionBar.setTitle(getString(R.string.menu_map)); return true; // start settings activity @@ -395,4 +394,4 @@ public class IITC_Mobile extends Activity { } } } -} \ No newline at end of file +}