public class MapActions extends java.lang.Object implements NavigatorListener, MapHandlerListener
Modifier and Type | Field and Description |
---|---|
protected android.support.design.widget.FloatingActionButton |
controlBtn |
protected android.support.design.widget.FloatingActionButton |
navigationBtn |
protected android.support.design.widget.FloatingActionButton |
settingsBtn |
protected android.support.design.widget.FloatingActionButton |
showPositionBtn |
protected android.support.design.widget.FloatingActionButton |
zoomInBtn |
protected android.support.design.widget.FloatingActionButton |
zoomOutBtn |
Constructor and Description |
---|
MapActions(android.app.Activity activity,
org.mapsforge.map.android.view.MapView mapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
homeBackKeyPressed()
called from Map activity when onBackpressed
|
boolean |
isMenuVisible() |
void |
onPressLocation(org.mapsforge.core.model.LatLong latLong)
when use press on the screen to get a location form map
|
void |
pathCalculating(boolean shortestPathRunning)
calculate path calculating (running) true NOT running or finished false
|
void |
setMenuVisible(boolean menuVisible)
side bar menu visibility
|
protected void |
showMyLocation(org.mapsforge.map.android.view.MapView mapView)
move map to my current location as the center of the screen
|
void |
statusChanged(boolean on)
the change on navigator: navigation is used or not
|
protected void |
zoomControlHandler(org.mapsforge.map.android.view.MapView mapView)
implement zoom btn
|
protected android.support.design.widget.FloatingActionButton showPositionBtn
protected android.support.design.widget.FloatingActionButton navigationBtn
protected android.support.design.widget.FloatingActionButton settingsBtn
protected android.support.design.widget.FloatingActionButton controlBtn
protected android.support.design.widget.FloatingActionButton zoomInBtn
protected android.support.design.widget.FloatingActionButton zoomOutBtn
public MapActions(android.app.Activity activity, org.mapsforge.map.android.view.MapView mapView)
public void onPressLocation(org.mapsforge.core.model.LatLong latLong)
onPressLocation
in interface MapHandlerListener
latLong
- public void pathCalculating(boolean shortestPathRunning)
pathCalculating
in interface MapHandlerListener
shortestPathRunning
- protected void zoomControlHandler(org.mapsforge.map.android.view.MapView mapView)
protected void showMyLocation(org.mapsforge.map.android.view.MapView mapView)
public boolean isMenuVisible()
public void setMenuVisible(boolean menuVisible)
menuVisible
- public void statusChanged(boolean on)
statusChanged
in interface NavigatorListener
on
- public boolean homeBackKeyPressed()