moveToCurrentLocation method
Future<void>
moveToCurrentLocation(
)
Implementation
Future<void> moveToCurrentLocation() async {
if(widget.isUseMapSDKLocation != null && widget.isUseMapSDKLocation == true){
widget.locationUtils.moveToCurrentLocationActionWithSearchPOI(
onGetReverseGeoCodeSearchResult: _onGetReverseGeoCodeSearchResult,
moveMapCenter: mapKey.currentState!.moveMapCenter,
);
}else{
final TIMCoordinate? currentLocation = await widget.locationUtils
.moveToCurrentLocationActionWithoutSearchPOI(
moveMapCenter: mapKey.currentState!.moveMapCenter);
if (currentLocation != null) {
widget.locationUtils.searchPOIByCoordinate(
coordinate: currentLocation,
onGetReverseGeoCodeSearchResult: _onGetReverseGeoCodeSearchResult);
}
}
}