Questions tagged [google-maps-flutter]
226 questions
2
votes
2 answers
How to await or rebuild Consumer when data is loaded
How do I reload Consumer when data is loaded or await for data to load. I am using Future Provider and everything is rebuilding itself when data is loaded (currentPosition Fetched) and using circularProgress() while waiting. But consumer is not…

Dveloper
- 75
- 1
- 5
2
votes
1 answer
Flutter Google Map increase marker icon size when being selected
Is there any way to increase the icon size of the marker in the map when being selected?
I've tried putting List where it composes of two bitmapDescriptor so I can easily call the bitmap if I need to show the small/big version of…

AgentRed
- 62
- 5
- 36
2
votes
0 answers
google_maps_flutter - Resize of custom icons doesn't work
I use custom icons in my google_maps_flutter widget. No matter what size I choose in the creation process, the icons are way too big.
pubspec.yaml
google_maps_flutter: ^1.0.6
widget
void _createBitMaps() async {
for (String cat in categories) {
…

Chris
- 41
- 5
2
votes
0 answers
How onLocationChanged.listen() works in Flutter Google map with user's current longitude and latitude?
I am accessing/showing the current location of the user on flutter google map. But a getting a little confused in onLocationChanged.listen() callback event.
Can you make me understand the flow of execution of that particular callback?
Here is my…

sushree soma mohanty
- 89
- 2
- 11
2
votes
1 answer
Google Maps Flutter not displaying polygons correctly on iOS
I am using google_maps_flutter to display polygons on google maps.
Every time the user taps on the map, a point is added to a list of points, that is fed to my method that creates a polygon.
I also have a delete button that clears my points list and…

Dan Crisan
- 137
- 7
2
votes
1 answer
snap markers to nearest polyline point Google Maps flutter
I am writing a simple bus tracking app for my university shuttles. I have plotted out the bus GPS as navigation arrows along with the route on the map. Now as the actual GPS coordinate is a little of from the real location of bus than the plotted…

Akash Deodhar
- 58
- 7
2
votes
2 answers
in Flutter Provider How to check when data received in consumer is updated
How can we check if data receiving in consumer via provider is updated or changed, I want to add a buffer to check the Lat Lang value before passing to google_maps_flutter, I want to check the value 5 times before passing to the google_maps_flutter…

Javeed Ishaq
- 6,024
- 6
- 41
- 60
2
votes
0 answers
How to cancel the drag event of Google map marker and take it back to its initial position in Flutter?
I am using google_maps_flutter for creating a Google map with two types of markers. When one type of marker is dragged over the other, I want to remove the dragged marker and then perform a function. I am able to do this.
But, in case the dragged…

Bhawna Saroha
- 603
- 1
- 11
- 28
2
votes
0 answers
Google_maps_flutter exception when calling showMarkerInfoWindow
I'm getting the following error when trying to display a marker's info window:
E/flutter ( 1712): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(Invalid markerId, showInfoWindow called with invalid markerId,…

Ernesto
- 103
- 1
- 8
2
votes
2 answers
How do I draw a marker ? like a marker in google map using canvas
I need to DRAW a custom marker using canvas, so far I DREW a inverse Triangle shape. Do you have any idea to about how to DRAW a marker shape?
class DrawTriangle extends CustomPainter {
Paint _paint;
DrawTriangle() {
_paint =…

Balaji
- 1,773
- 1
- 17
- 30
2
votes
0 answers
how to handle app close unexpectedly in flutter
I have flutter apps that contain location package and google-maps-flutter package inside my screen.. but whenever I install my app in debug version... my app always close unexpectedly... is there a reason why my app that contain google maps and…

wahyu
- 1,679
- 5
- 35
- 73
2
votes
3 answers
What is the unit of radius in google maps flutter
I have some markers and circles in my app but I cannot configure... what is the unit of radius inside google_maps_flutter package.. here is part of my code
Circle circleA = Circle(
circleId: CircleId("A"),
center: LatLng(..., ...),
radius:…

wahyu
- 1,679
- 5
- 35
- 73
2
votes
2 answers
Updating marker position with change in Lat-Lng position of marker in Google-Maps Flutter Plugin?
I am making a vehicle tracking administration app using flutter. The part that I am stuck is only updating the marker position on the map when the location of the vehicle changes. For getting the location we are relying on the hardware and the data…

Adithya Shetty
- 1,247
- 16
- 30
2
votes
0 answers
Flutter - Displaying Admob Adverts and Google Maps on the same screen
I have a flutter app utilising firebase_admob and google_maps_flutter.
These two packages do not seem to be able to coexist on the same screen.
My app displays an application wide Advert that sits underneath the Bottom Navigation bar and persists…

Int3rceptor
- 21
- 1
2
votes
1 answer
Unable to drag marker on google map in flutter
I'm using google_maps_flutter: ^0.5.24+1 plugin. I can't drag the marker inside map even though draggable property is set true. Whats wrong here? My code :
return GoogleMap(
initialCameraPosition: CameraPosition(
…

Newaj
- 3,992
- 4
- 32
- 50