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
This commit is contained in:
Jon Atkins 2013-05-08 03:05:17 +01:00
parent f0d18ee05e
commit 13d1ff9aaa

View File

@ -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 {
}
}
}
}
}