|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import 'dart:convert'; |
|
|
|
|
import 'dart:io'; |
|
|
|
|
import 'dart:ui'; |
|
|
|
|
|
|
|
|
|
import 'package:android_intent_plus/android_intent.dart'; |
|
|
|
|
import 'package:dio/dio.dart'; |
|
|
|
@ -280,12 +281,13 @@ class _AddressMapPage extends State<AddressMapPage> {
|
|
|
|
|
print("map_wid: ${MediaQuery.of(context).size.width}"); |
|
|
|
|
print("map_hei: ${MediaQuery.of(context).size.height}"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bmfMarker = BMFMarker( |
|
|
|
|
position: latLng, |
|
|
|
|
screenPointToLock: BMFPoint(MediaQuery.of(context).size.width / 2, |
|
|
|
|
MediaQuery.of(context).size.height / 4), |
|
|
|
|
screenPointToLock: BMFPoint(window.physicalSize.width / 2, |
|
|
|
|
window.physicalSize.height / 4), |
|
|
|
|
isLockedToScreen: true, |
|
|
|
|
centerOffset: BMFPoint(0.5, 0.9), |
|
|
|
|
centerOffset: BMFPoint(1, 1), |
|
|
|
|
enabled: false, |
|
|
|
|
icon: "assets/image/icon_map_marker.png", |
|
|
|
|
draggable: false, |
|
|
|
@ -294,8 +296,8 @@ class _AddressMapPage extends State<AddressMapPage> {
|
|
|
|
|
} |
|
|
|
|
bmfMarker.updateIsLockedToScreen( |
|
|
|
|
true, |
|
|
|
|
BMFPoint(MediaQuery.of(context).size.width / 2, |
|
|
|
|
MediaQuery.of(context).size.height / 4)); |
|
|
|
|
BMFPoint(window.physicalSize.width / 2, |
|
|
|
|
window.physicalSize.height / 4)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
saveLatLng(BMFCoordinate latLng) async { |
|
|
|
|