Questions tagged [google-maps-flutter]
226 questions
19
votes
5 answers
Flutter Google Maps, Trying to create an already created platform view, view id: 0
For first time google maps flutter ,loads perfect but when hot restart it , it goes to platform exception
google_maps_flutter: ^0.5.21+15
Github [google_maps_flutter] Trying to create an already created platform view…

Lavkant Kachhwaha
- 250
- 2
- 11
18
votes
3 answers
Any way to add Google Maps in Flutter for Web?
I am exploring flutter-web and want to add google map in it. Although, I have used google map using google_maps_flutter in flutter-app but that works for Android and iOS.

Muhammad Zeeshan
- 333
- 2
- 3
- 11
15
votes
8 answers
Flutter GoogleMap is blank after resuming from background
I'm experiencing the following issue: My Flutter app uses a GoogleMap. The map loads just fine initially. However, if I put the app into the background and resume a while later, the map stays blank. The Google logo still shows, like it happens when…

jbxbergdev
- 860
- 1
- 10
- 23
14
votes
1 answer
Security in Flutter: google_maps_flutter requires API Keys but how to provide them securely?
How this question is not a duplicate?
While @MrUpsidedown offers a few related questions in the comments section, none of them truly answer the part I tried to emphasize here: how to provide API keys securely?
After reading all the answers in the…

Igor Soloydenko
- 11,067
- 11
- 47
- 90
11
votes
1 answer
Flutter Google Maps remove navigation button at bottomRight on marker tap
Is it possible to remove the google maps navigation button at bottom right when we click on a marker?
I tried this
Marker(
consumeTapEvents: true,
onTap: () {
print("marker clicked");
…

Shahzad Akram
- 4,586
- 6
- 32
- 65
10
votes
0 answers
Google Map crashes Flutter when view loads twice
I'm using Firestore as my database and a StreamBuilder Route for checking the isLoggedIn. When logged in the first time the Google Map is working fine, but when logged in again it Crashes with an Error shown below:
D/libEGL (11553): eglInitialize:…

TecHaxter
- 176
- 2
- 12
8
votes
3 answers
No implementation found for method camera animate on channel map recenter button
The Flutter map recenter button not working
dependency version = google_maps_flutter: ^2.1.6
Implement code
Future _goToTheLake() async {
LatLng lat = LatLng(ctrl.getLat().value, ctrl.getLang().value);
print(lat);
final GoogleMapController…

Manoj Jaiswal
- 91
- 1
- 4
8
votes
4 answers
How to re-position Google Maps logo and map buttons
How do you change the position of the Google logo (originally at the bottom left corner) and other map buttons (location, zoom in/out, etc.) of the GoogleMap widget?
I would also like to know if you can disable/enable them.
I am using…

Rami Mohamed
- 2,505
- 3
- 25
- 33
7
votes
2 answers
Using Google Maps in flutter for both mobile and web
I'm working on an flutter application that should have a common codebase for web and mobile.
My app will have a google map and as far as I've seen there's not a single package to satisfy all platforms.
google_maps_flutter - seems to work only for…

exilonX
- 1,712
- 3
- 26
- 50
7
votes
3 answers
Flutter: How to animate marker icon in google_maps_flutter?
I want to show pulse animated marker in google_maps_flutter.
Is there any way to do like this(below) marker in Flutter?
I am able to do like this(below):
For easy to understand what I am able to achieve…

Md Mahmudul Islam
- 2,514
- 4
- 18
- 33
7
votes
1 answer
Flutter - Google maps polyline patterns not working
I am trying to add dashed polylines to the google map but the pattern property doesn't seem to work.
Below you can see the method that creates the polyline, the pattern is set to dash with 5px gap, but it still shows as a solid line. Is there…

selected
- 764
- 2
- 10
- 19
6
votes
2 answers
Programmatically Select Marker to Navigate To Location Google_Maps_Flutter
I am trying to develop a user experience where the user is provided a list of venues to travel to, and upon selecting one of those locations, I want it to
Add a marker to the map
Show an info window
Provide the option to navigate to…

kalittles
- 325
- 1
- 4
- 17
6
votes
5 answers
How do I get map rotation on google maps flutter?
I'm trying to get the map rotation (bearing) but can't find it with the map controller.
Using currently google_maps_flutter: ^1.1.1 and flutter: 1.22

Rafael Moreira Queiroz
- 81
- 1
- 6
6
votes
1 answer
Flutter adjust/scale google map zoom level based on circle radius
I'd like to scale google map zoom level based on the radius of the circle. Technically I want the user to see circle on map at optimum zoom level. I tried to get bounds and adjust camera position, but circle does not have any such bounds…

gavrbhat
- 210
- 3
- 8
5
votes
2 answers
Flutter Google Maps how to show active areas with border
I am using the google_maps_flutter: ^2.1.3 package in my Flutter project that I am currently developing and I want to show active regions on the map in the application. I tried to show the active regions on the map using polygons, but I couldn't…

Melik BOZKURT
- 110
- 12