Fixed zoom controls not being hidden on mobile
This commit is contained in:
parent
65f5308854
commit
14d3fe82c2
@ -136,7 +136,7 @@ window.setupMap = function() {
|
||||
window.map = new L.Map('map', {
|
||||
center: [0,0],
|
||||
zoom: 1,
|
||||
zoomControl: (typeof android !== 'undefined' && android && android.showZoom) ? !android.showZoom() : true,
|
||||
zoomControl: (typeof android !== 'undefined' && android && android.showZoom) ? android.showZoom() : true,
|
||||
minZoom: 1
|
||||
});
|
||||
|
||||
|
@ -190,6 +190,7 @@ public class IITC_JSInterface {
|
||||
});
|
||||
}
|
||||
|
||||
@JavascriptInterface
|
||||
public boolean showZoom() {
|
||||
PackageManager pm = mIitc.getPackageManager();
|
||||
boolean hasMultitouch = pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH);
|
||||
|
Loading…
x
Reference in New Issue
Block a user