diff --git a/lib/address/address_map_page.dart b/lib/address/address_map_page.dart index 2dc06eae..ec5beee9 100644 --- a/lib/address/address_map_page.dart +++ b/lib/address/address_map_page.dart @@ -83,7 +83,7 @@ class _AddressMapPage extends State { .then((value) { saveLatLng(value); if (_mapController != null) { - this.latLng = value; + this.latLng = Platform.isIOS ? value : latLng; addMarker(); _mapController.updateMapOptions( BMFMapOptions( @@ -284,10 +284,10 @@ class _AddressMapPage extends State { bmfMarker = BMFMarker( position: latLng, - screenPointToLock: BMFPoint(window.physicalSize.width / 2, - window.physicalSize.height / 4), + screenPointToLock: BMFPoint((Platform.isIOS ? MediaQuery.of(context).size.width : window.physicalSize.width) / 2, + Platform.isIOS ? MediaQuery.of(context).size.height : window.physicalSize.height / 4), isLockedToScreen: true, - centerOffset: BMFPoint(1, 1), + centerOffset: BMFPoint(0.5, 0.95), enabled: false, icon: "assets/image/icon_map_marker.png", draggable: false, @@ -296,8 +296,8 @@ class _AddressMapPage extends State { } bmfMarker.updateIsLockedToScreen( true, - BMFPoint(window.physicalSize.width / 2, - window.physicalSize.height / 4)); + BMFPoint((Platform.isIOS ? MediaQuery.of(context).size.width : window.physicalSize.width) / 2, + (Platform.isIOS ? MediaQuery.of(context).size.height : window.physicalSize.height) / 4)); } saveLatLng(BMFCoordinate latLng) async {