fysoul17 / google_maps_place_picker

Place picker on Google Maps for Flutter
MIT License
223 stars 365 forks source link

i couldnot use my normal json style #118

Open mohadel92 opened 3 years ago

mohadel92 commented 3 years ago

Describe the bug i tried to load my json styling to the map as i used to do with offical google map and i failed

To Reproduce Steps to reproduce the behavior:

  1. provide your local json file or use ``` await DefaultAssetBundle.of(context) .loadString("assets/json/google_map_style.json");
  2. See error [VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port Reloaded 14 of 1154 libraries in 1,540ms. Reloaded 14 of 1154 libraries in 1,317ms. Reloaded 14 of 1154 libraries in 856ms. [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: Unable to load asset: assets/json/map_style.json `#0 PlatformAssetBundle.load package:flutter/…/services/asset_bundle.dart:225 #1 AssetBundle.loadString package:flutter/…/services/asset_bundle.dart:68 #2 CachingAssetBundle.loadString. package:flutter/…/services/asset_bundle.dart:166 #3 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:291:23) #4 CachingAssetBundle.loadString package:flutter/…/services/asset_bundle.dart:166 #5 SalonInfoScreen.build.. package:saloni_salon/Screens/SalonInfoScreen.dart:342 #6 _InkResponseState._handleTap package:flutter/…/material/ink_well.dart:993 #7 _InkResponseState.build. package:flutter/…/material/ink_well.dart:1111` **Expected behavior** the styled map should appear like normal google map

Flutter Doctor -v

`Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel unknown, 1.22.6, on Mac OS X 10.14.6 18G8012 darwin-x64, locale en-EG)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.3.1) [✓] Android Studio (version 3.6) [✓] VS Code (version 1.55.2) [✓] Connected device (1 available)

• No issues found! Mohammeds-MacBook-Pro:saloni_salon mohammedadelalisorour$ `