Questions tagged [google-maps-flutter]

226 questions
0
votes
0 answers

google_maps_flutter: ^2.2.6 is not picking current location and it’s not changing the map type also

MaterialPageRoute( builder: (context) { return MapLocationPicker( // liteModeEnabled: true, compassEnabled: true, mapType: MapType.terrain, apiKey:…
0
votes
1 answer

How to make a "WidgetTest" call the "onCameraMove" method?

I would like the onCameraMove method to be called when moveCamera is called. I tried to mock platform channel without success. import 'dart:async'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import…
lsaudon
  • 1,263
  • 11
  • 24
0
votes
1 answer

I want to know how to show gas stations in google maps flutter

so here's a picture from google map that I want to show the gas stations on my app like this because I want to make app that show the gas stations locations will anyone help me? I need a code or hint about how to do it.
AXP
  • 3
  • 3
0
votes
0 answers

How to display the direction of a car on a Google Map in Flutter using the google_maps_flutter plugin?

I'm building a Flutter app that uses the google_maps_flutter plugin to display a map with a car that moves based on the user's location. I have an API that provides the car's latitude and longitude every minute, which I use to update the car's…
wahab sohail
  • 161
  • 1
  • 12
0
votes
1 answer

How to get current location from GPS and set it into FlutterGoogleMap?

I want to load my google maps on flutter app to my current location. the code i used is.. late LatLng _center; late Position currentLocation; @override void initState() { super.initState(); getUserLocation(); } Future
0
votes
1 answer

App crashes while re-opening map in flutter

while opening map screen from any different screen time it crashes with the null array error, and also gets preferred renderer null. Here are the logs of the crash. D/MapsInitializer( 3326): preferredRenderer: null D/zzcb ( 3326):…
0
votes
1 answer

Update Google Map center after ChangeNotifier update

I have a map that displays some markers based on a given location. The location is set using a ChangeNotifier in a separate widget. I have no problem updating the location for the markers however, I would also like to set a new center of the map…
Schleis
  • 41,516
  • 7
  • 68
  • 87
0
votes
0 answers

Does google_maps_flutter or any other map plugin for flutter supports kml file for 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?
0
votes
2 answers

Can't receive tap events on google maps widget flutter

Here's the code that I have so far import 'dart:async'; import 'package:flutter/material.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; class TempView extends StatefulWidget { const TempView({Key? key}) : super(key:…
Pranav Manoj
  • 69
  • 1
  • 6
0
votes
0 answers

How to add a marker where user tapps on map in Flutter?

I am making a community surveillance app in Flutter. My app uses the google_maps_flutter package to display maps and mongo_dart for providing database services. Users should be able to report events/incidents that happen on a map, similar to how one…
Ramin
  • 1
  • 1
0
votes
1 answer

Flutter google map web marker on click

I am using this library in my app to load the Google map on the web using this answer as a reference, I am able to add the marker on it but wondering how I can do the marker on tap action Adding marker: final _icon = jsMap.Icon() ..scaledSize…
Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138
0
votes
0 answers

Blank screen is loaded while presenting google maps for android as PlatformViews in Flutter

I am working on a Flutter application that requires me to add groundOverlays in google maps. I used google_maps_flutter, but method to add groundOverlay is not supported. Hence I tried to present google maps as PlatformViews. I was able to see the…
0
votes
0 answers

How to refer to marker itself in google maps onTap?

Issue: I can't refer to the marker itself. Scenario: Retrieving data from firebase and setting it on variables. What I want is that when I tap any marker on GoogleMaps it should update the variable Marker currentMarker to this marker; Problem: onTap…
Anas Yousuf
  • 423
  • 1
  • 6
  • 17
0
votes
1 answer

Google maps markers not updating in google_maps_flutter

I am trying to show the list of locations in my google map, using GetX Obx widget.I am able to show the list of all markers but when I clear the list and call update even then the previously added markers are not removed from the map. I have tried…
AkashK
  • 201
  • 1
  • 4
  • 13
0
votes
1 answer

App Crashes when i am clicking back button in Flutter

I am using GetX State-management. Not for all but on some screens when i am navigating to another screen - In Debug Mode or In Emulator - It gives some message given below ====================== E/Surface ( 6136): freeAllBuffers: 1 buffers were…