selectLocation

@UiThread
fun selectLocation(@Nullable location: MPLocation)

Selects the given MPLocation.

This will set the camera over it. The camera will animate and a fixed zoom level will be used (21)

Parameters

location

The MPLocation to be selected, null to deselect the current one


@UiThread
fun selectLocation(@Nullable location: MPLocation, zoomToLocationMinZoomLevel: Boolean)

Selects the given MPLocation.

This will set the camera over it. The camera will animate and, if the zoomToLocationMinZoomLevel param is set to true, the location's smallest zoom level (getZoomLevelOn) will be used as the camera's target zoom

Parameters

location

The MPLocation to be selected, null to deselect the current one

zoomToLocationMinZoomLevel

true to use the location's smallest zoom level (getZoomLevelOn) will be used as the camera's target zoom


@UiThread
fun selectLocation(    @Nullable location: MPLocation,     animateCamera: Boolean,     zoomToLocationMinZoomLevel: Boolean,     showInfoWindow: Boolean,     userTriggered: Boolean)

Selects the given MPLocation.

This will set the camera over it. The camera will animate and, if the zoomToLocationMinZoomLevel argument is set to true, the location's smallest zoom level (getZoomLevelOn) will be used as the camera's target zoom

Parameters

location

The location to be selected, null to deselect the current one

animateCamera

true if the camera should animate to the location's position, false to just move

zoomToLocationMinZoomLevel

true to use the location's smallest zoom level (getZoomLevelOn) will be used as the camera's target zoom

showInfoWindow

true if the Info Window should be shown, false otherwise

userTriggered

true to move the MPLocation marker into view only if it is partially visible. Set to false for the default behaviour


@UiThread
fun selectLocation(    @Nullable location: MPLocation,     animateCamera: Boolean,     zoomToLocationMinZoomLevel: Boolean,     showInfoWindow: Boolean)

Selects the given MPLocation.

This will set the camera over it. The camera will animate and, if the zoomToLocationMinZoomLevel param is set to true, the location's smallest zoom level (getZoomLevelOn) will be used as the camera's target zoom

Parameters

location

The location to be selected, null to deselect the current one

animateCamera

true if the camera should animate to the location's position, false to just move

zoomToLocationMinZoomLevel

true to use the location's smallest zoom level (getZoomLevelOn) will be used as the camera's target zoom

showInfoWindow

true if the Info Window should be shown, false otherwise