Questions tagged [google-maps-flutter]
226 questions
0
votes
0 answers
Google Map Flutter: Polygon, Circle and Marker
How to draw polygons on top of markers in Flutter? example.
I am building a mobile application using google_map_flutter to display markers and draw polygons on it. I'm facing an issue where the drawn polygons are appearing beneath the markers,…

PNT
- 1
0
votes
1 answer
Flutter how to toggle markers visibility in google maps
How can I toggle the visibility of list of markers in goole maps using a FloatingActionButton?
Alternatively, a switch button should also work.
This is my function to add the markers:
void addAll() async {
_markers = Set();
int i =…

user3132858
- 609
- 1
- 11
- 27
0
votes
0 answers
Flutter: Get User Location and Update on Firebase if user kill the app or terminate
I have done with fetch location and update on the firebase when the app is in foreground or background but i want if user remove the app from recent then it still update the user location on the firebase
if there is anything please respond it will…

CH Zubair
- 1
- 1
0
votes
1 answer
google_maps_flutter - programmatically set rotation to 0 (bearing to north)
When I create the GoogleMap widget I can set:
initialCameraPosition: CameraPosition(
target: _initialCameraPosition,
zoom: 12.0,
bearing: 0.0
),
but after the user…

Rony Tesler
- 1,207
- 15
- 25
0
votes
1 answer
flutter flavors for web in index.html and Android in AndroidManifest.xml
I'm using google_maps_flutter for two flavors (development, qa). I configured AppDelegate.swift for the two flavors with this.
I now need to do those flavors on Android in android/app/src/main/AndroidManifest.xml:

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
0
votes
0 answers
Google Maps in Flutter is crashing the App
In my flutter app I have used "google_maps_flutter" package to display map by passing latitude and longitude. Earlier it was working fine but from few days when I open the google map module in the app, the app is crashing down with the following…

Robert S
- 626
- 6
- 13
0
votes
0 answers
How do I fix the polyline issue and the googlemapcontroller
I am new to working with maps or flutter in general. I was following a tutorial and I have been able to do pretty much actually. However;
I am unable to show the polylines on the map even though everything else is visible including the map itself…
0
votes
0 answers
Flutter elements's of the Grid View not rendering cornerRadius
this is my issue:
I have a GridView.count with a List.generate as children. Basically I have a grid of maps made with google_maps_flutter and I want to give each of them a corner radius but it applies only to the last element of my list , I've tried…

J quali
- 1
- 1
0
votes
2 answers
Flutter Grid View elements's cornerRadius not working
this is my issue:
I have a GridView.count with a List.generate as children.
Basically I have a grid of maps made with google_maps_flutter and I want to give each of them a corner radius but it applies only to the last element of my list , I've tried…

J quali
- 1
- 1
0
votes
0 answers
unexpected crash in google maps flutter package: flutter 3.7.3
I have done everything listed below in the google_maps_flutter package: https://pub.dev/packages/google_maps_flutter. Even added render type in my main file:
import 'package:flutter/material.dart';
import…

Kevinhector
- 25
- 5
0
votes
0 answers
'package:flutter/src/rendering/proxy_box.dart': Failed assertion: line 3406 pos 12: '!debugNeedsPaint': is not true
I would like to express my appreciation to whoever is reading this for taking your time to look at this question.
I am a high school student developer and currently taking an internship for cs. I have found a problem that, according to previous…

bai
- 1
0
votes
0 answers
How do I force single finger map movement in Flutter (web) google_maps_flutter?
My app uses google_maps_flutter (+web) and I am plagued with this message when I try to move the map with one finger:
Which tells me to use TWO fingers to move the map. The users find that counterintuitive, and wants to use one finger.
My code snip…

Roar Grønmo
- 2,926
- 2
- 24
- 37
0
votes
0 answers
Flutter Google Maps - Unknown Map ID Error
Every time this code is run:
await mapController.moveCamera(CameraUpdate.newCameraPosition(CameraPosition(target: currentPos)));
I get the following error:
flutter: Unknown map ID 0
flutter:
#0 …

Speak Development
- 51
- 3
0
votes
0 answers
Update polyline in flutter as google does it in Google Maps App
Current, i'm implement tracking + navigation to specific point by updating polyline on change of current location. this process is very costly because it calling direction Api on every new location. I want to update polyline by calling one time…
0
votes
0 answers
Flutter Google Map Lagging
I have loaded GPX file and using Tracks and its points, I've draw Polylines on the map, but I found very huge performance drop in map, too much of lag while zooming or scrolling the map. I have loaded around 700 points in total of 30 Polylines.
So…