MapEventLayer: complete gestures public API, closes #10
This commit is contained in:
parent
c238916d89
commit
c8f74e649e
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright 2013 Hannes Janetzek
|
||||
* Copyright 2016 devemux86
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
@ -105,14 +106,26 @@ public class MapEventLayer extends Layer implements InputListener, GestureListen
|
||||
mEnableTilt = enable;
|
||||
}
|
||||
|
||||
public boolean tiltEnabled() {
|
||||
return mEnableTilt;
|
||||
}
|
||||
|
||||
public void enableMove(boolean enable) {
|
||||
mEnableMove = enable;
|
||||
}
|
||||
|
||||
public boolean moveEnabled() {
|
||||
return mEnableMove;
|
||||
}
|
||||
|
||||
public void enableZoom(boolean enable) {
|
||||
mEnableScale = enable;
|
||||
}
|
||||
|
||||
public boolean zoomEnabled() {
|
||||
return mEnableScale;
|
||||
}
|
||||
|
||||
/**
|
||||
* When enabled zoom- and rotation-gestures will not move the viewport.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user