Questions tagged [google-maps-flutter]
226 questions
0
votes
1 answer
Google Maps Flutter cannot tap on map toolbar on android device, but I can tap on the map toolbar on an emulator?
I'm using google_maps_flutter from pub.dev for my flutter application.
I'm having an issue where when I click a marker, the map toolbar slides in from the right hand corner of the screen as it should, but I cannot tap on the map toolbar buttons. The…
0
votes
1 answer
Convert and Split Latlong Google Map flutter List
I have Latlong Google Maps Flutter response like this:
I/flutter (21690): [LatLng(-6.435887849941857, 106.85601130127908), LatLng(-6.4333171563046, 106.85805916786194), LatLng(-6.434791741881702, 106.8591035529971), LatLng(-6.436753407158089,…

Afan Ray Maa
- 11
- 2
0
votes
3 answers
google_maps_flutter crashes on ios device with the error "-[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x2808f4380"
I have the google_maps_flutter 2.1.0 and flutter 2.10.3 running. While opening the map, the app crashes and shows the following error log. Could anyone point out where exactly the issue lies.
Permissions for the location access has also been given…

Rojan Shrestha
- 129
- 13
0
votes
1 answer
Get user location with Location package in Flutter
I'm trying to create a mobile app in Flutter.
I need to get the user location when I press a button. Reading on the Internet, I found some useful examples and I wrote some lines of code following some tutorials too.
Future getLocation() async…

Vincenzo
- 1
- 2
0
votes
1 answer
flutter google maps corrupts after return from a screen containing input
I do develop an application which uses google maps on it's home page. As of andoird 12 I have discovered that google maps shows white page or some kind of partially rendrered map, after return from a screen which loads android keyboard. The key…

Testobile Testossimo
- 198
- 1
- 11
0
votes
1 answer
Driving Navigation using google maps in flutter
I am using google maps in my flutter app, I have done drawn paths from one point to another using flutter_polyline_points, Now I want to get turn by turn navigation as mentioned in this attached picture, is this possible in flutter, or how I will…

Mubashir Nawaz
- 15
- 7
0
votes
2 answers
Detect user is outside the GoogleMap route (perpendicular distance to path)
I am creating a simple navigation application using GoogleMap.
When the user set the start location and destination location I am drawing the path using polylines.
If the user deviate from the path, I want to redraw the path based on current user…

Janaka
- 2,505
- 4
- 33
- 57
0
votes
1 answer
google_maps_flutter does not work correctly on Android 11
I am using the google_maps_flutter package and whenever I click the button to launch the google map I encounter this error:
google maps is not installed or is disabled
But such a thing was not true :(((
This error is happened to me in Android…

mahdi salmani
- 3
- 1
0
votes
0 answers
Not a constant expression onMapCreated
new to flutter and dart here. I've been experimenting with dart/flutter and google maps. I have tried to follow the example described here to use google maps widget. My code is the following:
class _ParkingMapState extends State {
…

Apostolos
- 7,763
- 17
- 80
- 150
0
votes
1 answer
what is the meaning of "var placeId = json['candidates'][0]['place_id'] as String;" in flutter google maps?
I m sorry for asking like those simple questions. because I m noob to json and flutter.
I just need to understand this code segment. Please help.
var placeId = json['candidates'][0]['place_id'] as String;
I just found this code part when I need to…

Jack Y
- 75
- 7
0
votes
1 answer
how to draw a straight line between two point on google maps in flutter
I am using code below to draw but its not working
polyline = Polyline(
polylineId: polylineId,
color: Colors.red,
width: 5,
jointType: JointType.round,
points: latLongList,
);
_mapPolylines[polylineId] = polyline;
Output is red line…

LOVKUSH SINGH
- 13
- 1
- 2
0
votes
1 answer
google_maps_flutter sdk probvlem
this error is showing when I want to use googl_maps_flutter
Hello flutter community I'm new to flutter and facing this error:-
I used every thing including flutter upgrade, flutter upgrade --force then also I'm facing this error please help me out
0
votes
1 answer
The method 'addMarker' isn't defined for the type 'GoogleMapController'
I'm adding removeMarker and addMarker but it showing- "The method 'addMarker' isn't defined for the type 'GoogleMapController'.Try correcting the name to the name of an existing method, or defining a method named 'addMarker'."
import…

M.Jehan
- 1
- 2
- 2
0
votes
1 answer
Flutter - How to control google map markers opacity
I need to make some markers semi-transparent depending on position. Is there any way to control the marker opacity?

Aziz Boufath
- 1
- 1
0
votes
0 answers
Flutter's Google Maps plugin onTap not working
I'm creating simple app, and I need that when the map is tapped a marker should be added. I'm using the onTap property of the google_maps_flutter plugin:
var markers = Set();
...
body: Stack(
children: [
Positioned.fill(
child:…

cubanGuy
- 1,226
- 3
- 26
- 48