Questions tagged [google-maps-flutter]
226 questions
0
votes
1 answer
Why is Flutter's GoogleMap's onTap function not being triggered?
I have a simple widget:
class TestGoogleMap extends StatelessWidget {
const TestGoogleMap({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Test Google…

Joel Castro
- 485
- 6
- 20
0
votes
0 answers
Google Map Marker Clickable Area in Flutter
Currently, I am working on a taxi application using Flutter. It has a feature to see road conditions and open road cameras. And, I am using polylines for road conditions and markers for opening camera. It's working fine.
The only the problem, I have…

UGandhi
- 518
- 1
- 8
- 28
0
votes
1 answer
How to find when the google map is rendered?
It seems the onMapCreated() method says in document
Callback method for when the map is ready to be used.
I want to take snapshot when the map is rendered. the problem is when I take screenshot the map is not even rendered. I just get the blank…

Balaji
- 1,773
- 1
- 17
- 30
0
votes
1 answer
How to show a map with a radius aon a city from coordinates - Flutter
In my app, posts include a location. Currently, I am able to get coordinates (latitude and longitude), but for obvious reasons, I don't want to display users' coordinates publicly. My goal is to get the city, state, and country from those…

Globe
- 514
- 3
- 17
0
votes
1 answer
Flutter - Trigger Visibility of Google Map Marker via CheckboxListTile
I've built simple application in Flutter. I have simple 2 containers. 1st one has 4 CheckboxListTiles and 2nd one has Google Map plugin with markers.
All CheckboxListTile keys and all marker ids are matching. You can see in my code below.
What I…

Wicaledon
- 710
- 1
- 11
- 26
0
votes
1 answer
How to trigger a function when user taps on google map markers - Flutter
How can we execute a function for example _markerPressed() in google map when user taps on a marker?
I dont want to show a popup I know its possible using infoWindow.
I want to, for example open a card on screen.
I've tried the onTap: and…

Taba
- 3,850
- 4
- 36
- 51
0
votes
0 answers
Flutter When I add google maps it doesn't load as on the screen
I add google maps, it looks like this on ios and android, I did the necessary actions in the necessary API and manifest files
package used : flutter_google_maps

kubilaydrk
- 1
- 1
0
votes
2 answers
[[google_maps_flutter]] How to define that a specific marker will be displayed above all other markers
My App displays map and markers and it's working OK.
But, I would like that a specific marker (I choose programmatically) will be displayed above the others and it will be easy to find.
Is it the drawing order defined by the order in the markers Set…

Kobi
- 127
- 1
- 11
0
votes
0 answers
Flutter & Google Maps - Show Markers Which is Only Inside the Circle
I wanted to add a circle and some markers with Google Maps via Flutter. I found some resource . And I simplified it to:
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
class CircleScreen…

Wicaledon
- 710
- 1
- 11
- 26
0
votes
1 answer
In Scrollable Widget Google Map Widget Shifting Its Camera At Screen Edges (In case of fragment view)
In scrollable widget, when google map come to screen edges, its camera position slightly shifting. And it produces lagging
Is there an any way to prevent this behavior. Its like google_map trying to reposition its camera. I think this is like an…

erdnj
- 1
- 1
0
votes
0 answers
sessiontoken - google map api not working as expected
As per the Google documentation if we use a sessiontoken in the autocomplete API followed by placeDetails api then subsequent all the calls will be grouped together and it will be billed as a single request. But while using, it is actually not…

Tapas Pal
- 7,073
- 8
- 39
- 86
0
votes
1 answer
How to use MapQuest Directions API To Draw Rout From One Location To Another in Flutter
I'm currently developing a flutter a taxi application and I want to use MapQuest API for the applications to get the locations names and to draw route from one point to another.
The problem is that calling the API and getting the locations works…

moaad cole
- 1
- 2
0
votes
1 answer
Flutter: Map Camera position not update to new LatLong
I am using Stream Builder that sends api request after some seconds and fetch coordinates (lat, lng).
I want to update the map location (camera position & marker) on newly fetch coordinates.
But Camera position is updating and not focusing on new…
0
votes
1 answer
A value of type 'Object?' can't be assigned to a variable of type 'MapType'
in line 91 of the code which is attached below i am getting an error like this:
Error: A value of type 'Object?' can't be assigned to a variable of type 'MapType'.
'Object' is from 'dart:core'.
'MapType' is from…

VRAJ PATEL
- 25
- 7
0
votes
0 answers
Is there a way to show a single instance of the flutter google maps widget on multiple screen?
I am working on a flutter project that requires me to show a maps widget on separate screens. Currently, on every single screen, a separate maps widget is loaded and this is costly as google pricing is based on map loads.

Josh Cipher
- 43
- 2
- 6