Questions tagged [google-maps-flutter]

226 questions
5
votes
1 answer

GoogleMaps Flutter Exceeded sample count in FrameTime Log

Hey when adding GoogleMaps to my project, it seems that anytime the map is dragged or the camera is moved there is a spam of logs for I/Counters( 4961): exceeded sample count in FrameTime This seems to be a common issue with GoogleMaps in flutter…
Ash Brindle
  • 65
  • 2
  • 8
5
votes
0 answers

My location button not showing after accept location permission when using google_maps_flutter?

i have a problem when using google maps with Flutter, https://pub.dev/packages/google_maps_flutter My code is as below: GoogleMap( mapType: MapType.normal, myLocationEnabled: true, myLocationButtonEnabled: true, …
Manh Pham
  • 51
  • 1
  • 3
5
votes
1 answer

Google map takes a lot of time to load with current location in Flutter

I am trying to open google map with current location. For this, I am using a stateful widget. But map takes a lot of time to load, sometimes cant even load at all. Is this becuase of a Future function(for getting current location) or my…
Newaj
  • 3,992
  • 4
  • 32
  • 50
5
votes
1 answer

Flutter: How to clear polylines from Google Maps

I have created a Google Maps widget with markers and polylines with the code below. Everything works fine, except that when I draw a polyline between two coordinates, and later try to remove it, the polyline doesn't get removed (at least not…
Norbert
  • 6,874
  • 14
  • 40
  • 65
5
votes
3 answers

Problems with returning to App using two Screens with Google Maps

Seems to be a more severe bug with flutte google maps. Is a duplicate of #25653 Update 8th August: Current Progress: Tried to fix the bug with Sukhi, but he wasn't able to reproduce the bug. My colleagues all were able to reproduce it, but wheren't…
Markus Hein
  • 604
  • 7
  • 14
4
votes
0 answers

Flutter Google Maps Info Window Text Color

I implemented google maps on flutter for all platforms: google_maps_flutter: ^1.0.6 google_maps_flutter_web: ^0.1.0+8 Everything works nice. I also added an InfoWindow, but unfortunately the text color is always red on the Web version and I'm…
4
votes
0 answers

flutter google map animation flickering problem

I have google map in my flutter mobile application using google_maps_fultter plugin combine with a simple custom bottom navigation bar using built in bottomNavigationBar prop in Scaffold. When I try to animate it (or even just show hide the bottom…
Adidi
  • 5,097
  • 4
  • 23
  • 30
4
votes
1 answer

Can we show some dynamic text along with the marker on Google maps in Flutter?

Is it possible to achieve sth like this image in Flutter? I'm using google_maps_flutter plugin to display the GoogleMap on screen, and I've used BitmapDescriptor to change icon of the map marker. Now I'm just looking for some way to display the…
4
votes
0 answers

Is it possible to add arrows heads on polyline in flutter?

I have implement a polyline in flutter Map _mapPolylines = {}; int _polylineIdCounter = 1; void _add() { final String polylineIdVal = 'polyline_id_$_polylineIdCounter'; _polylineIdCounter++; final PolylineId…
4
votes
1 answer

Check if a coordinate is inside a polygon in flutter using google_maps_flutter

I using google_maps_flutter library on my flutter project, I created a polygon but i wanted to check if a coordinate is within a polygon... how can i do this? That is google widget GoogleMap( myLocationButtonEnabled: false, …
4
votes
1 answer

Add navigation button at bottomRight on marker tap Flutter Google Maps on ios

I already have created a flutter android application and works fine. I am using google_maps_flutter plugin to display the map with markers. After when trying to run my app to ios, i encountered a strange problem. It runs as i expected but the bottom…
Michail Geek
  • 81
  • 1
  • 5
4
votes
1 answer

How to dispose Flutter google map's controller

I was using google_maps_flutter library in my project. While i hot reload the map or back to map from another view then it crashes with message : Exception has occurred. PlatformException (PlatformException(error, java.lang.IllegalStateException:…
4
votes
4 answers

How do I restrict the bounds of a Google Map in Flutter?

I am using google_maps_flutter package and I need to restrict the scrollable area of a map to a specific area. I have both the SW and NE corners, but I can't figure out how to do it. I have tried the code below, but it's not working. uniCampusSW and…
Andrew Stevenson
  • 578
  • 1
  • 9
  • 23
3
votes
1 answer

How to rotate google map markers to road direction

[ Flutter / Dart ] I need to create a map where dozens of cars will move and for each of them I need to rotate the icon in the direction of travel. Any ideas how to do this? Example
Nort
  • 117
  • 9
3
votes
0 answers

Calling a function on GetX update in Flutter

I have a flutter map screen with dynamic polylines that are set using the GetBuilder. They are rendering but I want to fit them to the screen using cameraTargetBounds but this doesn't work. See my code below: GetBuilder( …
Tim Kariuki
  • 633
  • 8
  • 17
1
2
3
14 15