onMapMoveEnd method
Implementation
void onMapMoveEnd(
TIMCoordinate? targetGeoPt, TIMRegionChangeReason regionChangeReason) {
// If users drag the map manually, re-search the center coordinate
// 如果是手动拖动地图到了新位置,将中心点的坐标重新搜索
if (targetGeoPt != null &&
regionChangeReason == TIMRegionChangeReason.Gesture) {
widget.locationUtils.searchPOIByCoordinate(
coordinate: targetGeoPt,
onGetReverseGeoCodeSearchResult: _onGetReverseGeoCodeSearchResult);
inputKeywordEditingController.text = "";
}
}