sdk-maps-rx-extensions / com.tomtom.online.sdk.map.rx / RxMapCallbacksExtension

RxMapCallbacksExtension

interface RxMapCallbacksExtension

Interface to provide rx extensions for map callbacks (e.g. click on map).

Functions

getOnDoubleClickObservable

abstract fun getOnDoubleClickObservable(): Observable<LatLng!>!

Observable that is executed when the user double-clicks on the map.

getOnMapClickObservable

abstract fun getOnMapClickObservable(): Observable<LatLng!>!

Observable that is executed when the user click on the map.

getOnMapLongClickObservable

abstract fun getOnMapLongClickObservable(): Observable<LatLng!>!

Observable that is executed when the user long click on the map.

getOnMapRotateObservable

abstract fun getOnMapRotateObservable(): Observable<Double!>!

Observable that is executed when the user rotates the map.

getOnMapViewPortChangedObservable

abstract fun getOnMapViewPortChangedObservable(): Observable<MapViewPort!>!

Observable that is executed when the map view port is changed. It happens when e.g., map is panned or zoomed.

getOnRouteClickObservable

abstract fun getOnRouteClickObservable(): Observable<Route!>!

Observable that is executed when the user clicks on the route.

Inheritors

RxTomtomMap

open class RxTomtomMap : RxMapCallbacksExtension, RxMapAnnotationsExtension

Implementation for Tomtom map RX extensions. Extensions can be used instead of callbacks. To use this class you need to have TomtomMap initialized.