tripkit-android / com.skedgo.tripkit.ui.map.home / MapViewModel

MapViewModel

class MapViewModel :RxViewModel

Properties

Name Summary
markers val markers: Observable<Pair<List<Pair<MarkerOptions,POILocation>>,Set<String>>!>
myLocation val myLocation: Observable<Location>
myLocationError val myLocationError: Observable<Throwable>

Functions

Name Summary
getDestinationPinUpdate fun getDestinationPinUpdate(): Observable<PinUpdate>
getInitialCameraUpdate fun getInitialCameraUpdate(requestLocationPermission: () -> Observable<Boolean> = { Observable.just(true) }): Observable<CameraUpdate>
getOriginPinUpdate fun getOriginPinUpdate(): Observable<PinUpdate>
goToMyLocation fun goToMyLocation():Unit
onViewPortChanged fun onViewPortChanged(viewPort:ViewPort):Unit
putCameraPosition fun putCameraPosition(cameraPosition: CameraPosition?): Completable