Browse Source

地图优化

zyh
w-R 3 years ago
parent
commit
ceec324c27
  1. 2
      lib/address/address_map_page.dart
  2. 2
      pubspec.yaml

2
lib/address/address_map_page.dart

@ -145,7 +145,7 @@ class _AddressMapPage extends State<AddressMapPage> {
var addressPoi = await apiService.searchPoi( var addressPoi = await apiService.searchPoi(
"${latLng.latitude}", "${latLng.longitude}", keyWord, 20, 1); "${latLng.latitude}", "${latLng.longitude}", keyWord, 20, 1);
//,;:['pois'],['entrances'] //,;:['pois'],['entrances']
List<dynamic> poi = addressPoi['entrances']; List<dynamic> poi = addressPoi['pois']??addressPoi['entrances'];
poiList = poi poiList = poi
.map((e) => Address.fromJson({ .map((e) => Address.fromJson({
"address": e["address"] is List ? "" : e["address"], "address": e["address"] is List ? "" : e["address"],

2
pubspec.yaml

@ -3,7 +3,7 @@ description: 一心回乡.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 2.0.32+20 version: 2.0.33+21
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save