fysoul17 / google_maps_place_picker

Place picker on Google Maps for Flutter
MIT License
222 stars 357 forks source link

OnCreateMap not implemented #116

Open adhamkhwaldeh opened 3 years ago

adhamkhwaldeh commented 3 years ago

Describe the bug I can't delegate the Google map controller via onCreateMap

To Reproduce I've solved this issue locally 1- in google_map_place_picker.dart 2- _buildGoogleMap function 3- change the following function onMapCreated: (GoogleMapController controller) { provider.mapController = controller; provider.setCameraPosition(null); provider.pinState = PinState.Idle; onMapCreated?.call(controller); // add this line only // When select initialPosition set to true. if (selectInitialPosition!) { provider.setCameraPosition(initialCameraPosition); _searchByCameraLocation(provider); } },