Questions tagged [google-maps-flutter]

226 questions
3
votes
1 answer

StackOverflowError for Android Pre-Launch Test with Google Maps Flutter

While I have not had any issues with Android Studio and either iOS simulator or Android emulators in debug build. I have now tried to upload the release build app to pre-launch with Google Play Console and I can't figure out why I can't run a test…
3
votes
1 answer

How to set Dynamic Location or User's Location to Circle in Google Maps Flutter And also to show markers which is only inside the circle

import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:location/location.dart'; import…
3
votes
3 answers

How can user add multiple marker on google maps flutter

How can the user add multiple markers when user long press on the map. in this code, I've done single map. when user long press on the map it will automatically add one marker but I don't know how I can add multiple markers on the map. I tried lots…
3
votes
2 answers

Does google_maps_flutter or any other map plugin for flutter supports kml file for google maps?

I want to load kml files on google map in flutter. i can't find it on google _maps_flutter plugin. is there any other plugins which can do it in flutter?
3
votes
1 answer

In Flutter Google Maps how do I add and remove markers based on a realtime database listener?

I've read numerous docs, posts, etc. and cannot seem to get things to work. I have a realtime database listener that provides lat/long coordinates, inside a FirebaseAnimatedList. When coordinates are provided, I want it to place a marker on the map.…
2
votes
1 answer

How to use dart defined variables inside of AppDelegate.swift file

I am using Google Maps for Flutter to access a map in my application. To make it usable for iOS I need to provide the API key inside of AppDelegate.swift as: GMSServices.provideAPIKey(GOOGLE_MAPS_API_KEY) My application will be deployed later, so I…
2
votes
0 answers

google_maps_flutter - Map is using all available memory

I'm currently porting a native iOS to Flutter. I noticed that my widget containing the map is consuming a lot of memory over 500 MB. Compared to my native iOS app, it's using x5 more memory. I don't know what's going on cause for now I just…
Jérôme
  • 403
  • 1
  • 3
  • 13
2
votes
3 answers

Current location on the google maps (Flutter)

I try to get current location my device and use it in initialCameraPosition, The function is executed and I get the coordinates and set it in _currentPosition After starting the screen i have an error: LateError (LateInitializationError: Field…
2
votes
1 answer

How to add kml file into google_maps_flutter?

In GoogleMaps flutter, there isn't any support for KML file integration I found this workaround https://brunozaranza.medium.com/google-maps-flutter-com-kml-e750c8c5b793 But it is only for android Can anyone please tell me how to add KML file into…
Balaji
  • 1,773
  • 1
  • 17
  • 30
2
votes
4 answers

Flutter Google Map Crash on all screen

** Flutter version ** Flutter 3.0.1 Dart 2.17.1 DevTools 2.12.2 ** Packages Used ** google_maps_flutter: ^2.1.6 geolocator: ^8.2.1 geocoding: ^2.0.4 ** Added Permission manifest file **
2
votes
2 answers

google_maps_flutter only works on IOS. I'm having a problem when it comes to Android

Edit : We decided to use OpenStreetMap instead of Google Maps. Actually, we were thinking of returning to OpenStreetMap in the future, but we did not want to spoil what was written. We made this decision because the fix would be too costly. Thanks…
benimbolat
  • 143
  • 2
  • 8
2
votes
1 answer

How to open google maps by clicking on a button in flutter

I am new to flutter and I want to open google maps by clicking on button using flutter. Here is my code and in that code on line no 98 I want to open google maps by clicking on share your location button so please give me a suggestion that which…
2
votes
0 answers

Weird GoogleMap zoom animation on Android - Flutter

I am sorry for the question, but I am new to Flutter. I simply created a Flutter app that shows a map from GoogleMap, and then I added a Marker to it. This is the code: class _GoogleMapExampleState extends State { late…
2
votes
3 answers

How to Set Zoom Level For google_maps_flutter

I am using the google_maps_flutter package and the Zoom level for the myLocationButton, when pressed, is set to my last zoom level. I would like to reset the Zoom level when the myLocationButton is pressed. This is the code for the Google…
2
votes
1 answer

"Null check operator used on a null value" when calling a Provider at dispose()

I have a "Null check operator used on a null value" error after leaving the page with Navigator.pop(context). The stack says the error is here @override void dispose() { final googleMapsNotifier = …
TonyWyomy
  • 570
  • 5
  • 17
1 2
3
14 15