Questions tagged [google-maps-flutter]
226 questions
0
votes
1 answer
adding polyline "sub destinations" google maps flutter, optimize for a single API call
The application that I'm trying to create required the creation of a route that has destinations between the starting and ending point, between the beginning and end provided in the getRouteBetweenCoordinates, I need a way to add a custom Latlong…

Marko
- 535
- 2
- 6
- 26
0
votes
1 answer
How to define self-intersection of polygon in google maps (flutter)
I am making an application in which the user can draw a polygon on a map by points.
I need to somehow make sure that the polygon does not have self-intersections.
I know it is possible to manually check each line.
There are various methods for…

Sucper
- 21
- 5
0
votes
1 answer
Google map shows blank in flutter
can anyone help me please, I'm trying to implement google map in my flutter app, the problem I'm facing is the google map shows bland with google logo only. I have generated the key, inserted plugins but nothing seems to be working out.
I really…

Precious
- 1
0
votes
2 answers
Flutter Google Maps won't Load
I have been trying to get Flutter Google maps to load for a couple of weeks. google_maps_flutter.dart. I've tried just about everything I can think of. I am new to Flutter so I'm sure it's some rookie mistake but I can't figure it out. I have the…

SherriB
- 23
- 7
0
votes
2 answers
google_maps_flutter - Custom Marker Icons: Cannot enable MyLocation layer as location permissions are not granted
I am using google_maps_flutter and want to use custom marker icons (based on a category, I want to use different icons).
CODE
AndroidManifest.xml

Chris
- 41
- 5
0
votes
0 answers
How to solve the unstable polyline in map flutter
I want to draw the location distance on the map. Then when the user moves the location pin will also move it. I have refer this page. The problem I face is the polyline some time have come out some time did not come out. The packages that I use is…

dipgirl
- 648
- 3
- 17
- 28
0
votes
1 answer
Flutter polyline distance with google_maps_flutter plugin
Hi I am using the google_maps_flutter plug in and have gotten a polyline to show up on my map. What I would like to do is calculate the distance of the polyline length. My code is linked here and there is a snippet below. I do not want to use the…

giroprotagonist
- 138
- 1
- 3
- 15
0
votes
2 answers
How to solve "Failed assertion: line 22 pos 16: 'target != null' : is not true" in flutter
I am implementing google map in my flutter project and I am getting this error Failed assertion: line 22 pos 16: 'target != null': is not true as a red error screen for 2 seconds on my mobile device, and then the map got implemented.
How to solve…

sushree soma mohanty
- 89
- 2
- 11
0
votes
1 answer
How to access the user's current location's longitude and latitude outside of the _onMapCreated() method while using flutter Google Map?
Blockquote
I have a block of code in my flutter google map implementation like this:
Location _location = Location();
void _onMapCreated(GoogleMapController _cntrl) {
_controller = _cntrl;
_location.onLocationChanged.listen((l) {
…

sushree soma mohanty
- 89
- 2
- 11
0
votes
0 answers
How to make flutter google map prompt "Allow all the time" when asking permission the first time?
When google maps loads, location permission only asks to "Allow only while using the app". I want it to ask permission to allow all the time so that the location can be queried in the background by workmanger. How do I make it prompt as "Allow all…

giroprotagonist
- 138
- 1
- 3
- 15
0
votes
1 answer
Why Google Distance Matrix Api returning invalid request status? (using Flutter)
I am trying to call Distance Matrix API and every time I call it, it returns an invalid request, this is my code for calling request and parsing it
output:
{destination_addresses: [], origin_addresses: [], rows: [], status: INVALID_REQUEST}
the…

badercode
- 3
- 1
0
votes
0 answers
Unable to get the package dependencies for google_maps_flutter 1.1.1
I am integrating Google Map in my flutter project and after adding the package google_maps_flutter 1.1.1 inside my pubspec.yaml and clicking pub get , I am getting such error:
The plugin `flutter_plugin_android_lifecycle` doesn't have a main class…

sushree soma mohanty
- 89
- 2
- 11
0
votes
1 answer
"TargetPlatform.fuchsia is not yet supported by the maps plugin" this text is displayed instead of google map using google_maps_flutter
I'm trying to use google_maps_flutter package but TargetPlatform.fuchsia is not yet supported by the maps plugin is displayed instead of the map, I'm not receiving any error in the console. I have added the meta-data entry containing the API key to…

AliGanjei
- 1
- 4
0
votes
1 answer
Change map language in GoogleMaps instance
When I create instance of GoogleMaps from google_maps_flutter package, the Google Maps widget language of English (all the cities and street names are presented in English).
How do I change this language to Hebrew or any other language?

Asaf HorVitz
- 61
- 6
0
votes
1 answer
Catch the event when the user selected a permission in google_maps_flutter
When the map is built for the first time
GoogleMap(
initialCameraPosition: _startPosition,
myLocationEnabled: true,
);
the system asks for permission
How can I catch the moment when the user has made a choice?

Alex
- 1,457
- 1
- 13
- 26