247 questions
0
votes
0
answers
38
views
Flutter Google Maps always follows system theme on Android (can’t force light mode)
I’m experiencing an issue with the Google Maps Flutter Navigation SDK on Android.
I want my map to always stay in light mode, regardless of the device’s system theme. My app is forced to light mode ...
1
vote
1
answer
87
views
Flutter Google Maps: setMapStyle deprecated, how to style the map in newer versions?
I'm using the latest version of google_maps_flutter, and I noticed that this code is now showing a deprecation warning:
if (_mapStyle != null) {
mapController.setMapStyle(_mapStyle);
}
I used this ...
1
vote
0
answers
141
views
Drawn line lags behind camera movement
I am trying to draw a line from a given coordinate to screen center. I'm not sure why the starting point of the line is not kept at the same position relative to the map while moving the camera ...
0
votes
0
answers
55
views
PlatformException when calling getVisibleRegion() in google_maps_flutter
I’m facing this issue in my Flutter project while using google_maps_flutter
Exception has occurred.
PlatformException (PlatformException(channel-error,
Unable to establish connection on channel:
&...
0
votes
3
answers
132
views
Using flutter dot env to store an API key
I'm developing an application in Flutter and I'm facing a problem. I would like to use Google Maps in my application and for that I need an API key. For security reasons, I chose to use dot env to &...
1
vote
0
answers
158
views
Google Maps no longer showing map tiles, instead grey screen
My app is no longer showing Google Maps tiles, just a grey screen (with the Google logo at the bottom).
I have so far:
Created a new Google Maps API key
Confirmed the app is using this new key
Ensured ...
0
votes
0
answers
70
views
How to apply opacity on a TileOverlay in Google Maps Flutter?
Goal: I wish to apply opacity to a TileOverlay in Google Maps Flutter.
Expected result: Semi-transparent TileOverlay in Google Maps Flutter
Actual result: The TileOverlay is opaque like so => https:...
0
votes
1
answer
133
views
How to remove the dashed border between Morocco and Western Sahara in Google Maps using google_maps_flutter
I'm using the google_maps_flutter package to display a Google Map in my Flutter project. I want have display the map of Morocco and Western Sahara, now I want to remove the dashed border that appears ...
1
vote
1
answer
128
views
Android build failed after upgrading Flutter
I have an error when I'm trying to build the app on android
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\AlSaFFaR\AppData\Local\Pub\Cache\hosted\pub.dev\...
0
votes
0
answers
42
views
UI Google maps has slight differences between Android and IOS
I'm using google_maps_flutter, I have a small question
Currently, I see that the map on Android seems closer than IOS even though I set them to the same zoomLevel.
Is this due to the OS or the map ...
1
vote
0
answers
67
views
How to add a label next to a Polyline on Google Maps Flutter without using InfoWindows?
I am trying to add a label next to a Polyline on Google Maps using Flutter, but I don’t want to use InfoWindow because I need the label to be visible directly on the screen, next to the line, without ...
5
votes
1
answer
1k
views
Google Maps InfoWindow Not Showing on Marker Tap in Flutter
I'm working on a Flutter app that uses the Google Maps plugin. I have implemented a map with markers, and each marker is supposed to display an InfoWindow when tapped. However, the InfoWindow does not ...
0
votes
0
answers
112
views
how to manage the rendering of custom tile overlays and google map in google map flutter
The current situation :
Whenever someone zoom in or zoom out the map render first and then the tile overlay renders, i want to show the screen only when the tiles have rendered , the tiles cannot be ...
0
votes
1
answer
130
views
Google maps in Flutter - how to center the map NOT at the center of the screen
I have a bottom sheet permanently open in the lower half of the screen and the Google map is shown behind it.
How can I set the map center only inside the upper half of the screen?
The goal is to zoom ...
1
vote
1
answer
132
views
Is there any option in google_maps_cluster_manager to restrict certain markers from not clustering
I actually want to group a particular type of markers that I am showing and not all.
I have been using this package for while but this package doesn't offer any feature like that
I have tried changing ...
-1
votes
1
answer
138
views
Which map type to choose when creating a map ID in Google Maps plaform for a Flutter Project?
I'm currently working on a Flutter project where I want to implement cloud-based map styling using the cloudMapId parameter provided by the google_maps_flutter package.
When I try to create a new Map ...
1
vote
1
answer
80
views
Issue while getting location of device in google maps flutter
I'm having an issue while getting the location of the user, having API call to get the stations and lastly placing markers on the map.
I'm using Getx as controller, so my variables are:
LatLng ...
0
votes
1
answer
266
views
Google Maps Flutter is not working smooth using AndroidMapRenderer.latest
I am using google_maps_flutter and when I am using recommended renderer latest my map is working like it is lagging.
Screen recording
It's release on my personal phone, so I expect this to work ...
1
vote
0
answers
55
views
google_maps_flutter how to display Polyline in its entirety
I want to display my motion on the google_maps_flutter, I know I can use the polylines feature, but how do I set initialCameraPosition so that all the lines are displayed on the current window? Here's ...
0
votes
2
answers
3k
views
Flutter - Google Maps custom marker icon BitmapDescriptor.asset() is not showing
I'm trying to set a custom marker icon for an app that uses google maps. Right now, the marker icons are suck on the default red pin icon even when I've set them to use a custom png asset.
I load the ...
3
votes
2
answers
5k
views
Error: The plugin "google_maps_flutter_ios" requires a higher minimum iOS deployment version than your application is targeting?
After update to google_maps_flutter: ^2.6.1
I got this error:
Error: The plugin "google_maps_flutter_ios" requires a higher minimum
iOS deployment version than your application is targeting....
1
vote
0
answers
145
views
Use icon as google maps marker in flutter
I know how to use a png image as image for a map marker:
static Future<Uint8List> getBytesFromAsset(
{required String path, required int width}) async {
final ByteData data = await rootBundle....
0
votes
1
answer
479
views
How to Dynamically Set Zoom Level to Display Two Markers on Google Maps in Flutter App screen Without Scrolling?
I'm working on a Flutter application that utilizes Google Maps. In my app, I have two markers: one representing the user's location and the other representing the pet's location. I want to set the ...
2
votes
1
answer
2k
views
google maps E/FrameEvents( 8755): updateAcquireFence: Did not find frame
I have implemented google maps (maps SDK for android) in my flutter app to show users on the map which used to work very well without any problems.
However, all of a sudden, the next day I am running ...
3
votes
1
answer
785
views
google_maps_flutter freezes after upgrade to flutter 3.19. on android
After upgrading to Flutter version 3.19.3 and latest version of google_maps_flutter (2.6.0) the google maps widget freezes after returning to it. It happens only on android platform when navigating ...
5
votes
2
answers
1k
views
Lexical or Preprocessor Issue (Xcode): 'GoogleMaps/GoogleMaps.h' file not found
In my Flutter project I can no longer compile the app. Every time I try, in the iOS simulator, I get the error "Lexical or Preprocessor Issue (Xcode): 'GoogleMaps/GoogleMaps.h' file not found&...
-1
votes
1
answer
604
views
Prevent page to rebuild using bottom navigation in flutter
Is there a way to prevent a page from being rebuilt when using bottom navigation bar in Flutter?
I have a bottomNavigationBar with 3 items. There are some riverpod providers running for the different ...
0
votes
0
answers
119
views
custom markers with icon google maps flutter
Is there a way in Flutter like a package to create custom google maps markers with icons in them?
I don't mean using images as markers, but instead put icons inside the default marker as in this ...
0
votes
1
answer
577
views
Google Maps Style for Flutter
I am working on a Flutter app with google maps.
Is there a way to get the map style used in google maps app somewhere?
The standard style has roads with a yellowish color while the roads on google ...
3
votes
2
answers
471
views
ForegroundNotificationConfig not showing notification in flutter
To keep tracking user location in my flutter app, I am using the geolocator package as follows:
LocationSettings getLocationSettings() {
LocationSettings locationSettings;
if (defaultTargetPlatform =...
0
votes
1
answer
338
views
How can I smoothen the line in Google Directions API?
I want to have smoother polylines displayed on the map.
See the screenshot of sharp polyline.
I found that "polylineQuality":"HIGH_QUALITY" is available in Routes Preferred API ...
1
vote
1
answer
1k
views
Flutter Google Maps - How to use Cloud Map ID for Google Maps Flutter if the app always use Legacy Renderer?
I'm trying to use custom style with Cloud Map ID for google maps flutter. As always, I got the default style for maps even if I already define the cloud map id in google maps widget.
When I take a ...
0
votes
1
answer
106
views
Retrieve Markers from Firebase Realtime database and display on Map
I have data stored on Realtime database on Firebase. I want to display those markers on my map. Im using Flutter, google_maps_flutter package. I have to display those latitude and longitude ...
1
vote
0
answers
95
views
google_maps_flutter refresh InfoWindow
google_maps_flutter
Is there a way to programmatically display/hide the InfoWindow? Maybe "selecting" a marker?
When I move the camera to a different marker, the previous marker still is ...
0
votes
1
answer
599
views
Custom map marker icons are pixelated on physical devices
On Android and iOS, my custom map markers (PNG files) are pixelated on the google_maps_flutter map on physical devices. They are fine on simulators. Why is this?
Code:
Client usage:
if (kIsWeb) {
...
1
vote
0
answers
362
views
How to 2-finger touch on the "google_maps_flutter" to only zoom, but keep the center of the screen fixed
I'm building a mobile map app with Flutter, and I want to zoom with two-finger taps, but I don't want the screen to slide.
I want to completely separate the functions, with one-finger touch to move ...
1
vote
2
answers
3k
views
How to correctly initialize latest renderer in android (google_maps_flutter)?
I have a question regarding the correct initialization of the [google_maps_flutter] latest android map renderer
While tracking down some warnings I get during my app initialization:
Warnings:
W/...
0
votes
1
answer
161
views
Flutter how to toggle markers visibility in google maps
How can I toggle the visibility of list of markers in goole maps using a FloatingActionButton?
Alternatively, a switch button should also work.
This is my function to add the markers:
void addAll() ...
0
votes
0
answers
178
views
Flutter: Get User Location and Update on Firebase if user kill the app or terminate
I have done with fetch location and update on the firebase when the app is in foreground or background but i want if user remove the app from recent then it still update the user location on the ...
0
votes
1
answer
260
views
google_maps_flutter - programmatically set rotation to 0 (bearing to north)
When I create the GoogleMap widget I can set:
initialCameraPosition: CameraPosition(
target: _initialCameraPosition,
zoom: 12.0,
bearing: 0....
0
votes
1
answer
957
views
flutter flavors for web in index.html and Android in AndroidManifest.xml
I'm using google_maps_flutter for two flavors (development, qa). I configured AppDelegate.swift for the two flavors with this.
I now need to do those flavors on Android in android/app/src/main/...
0
votes
0
answers
1k
views
Google Maps in Flutter is crashing the App
In my flutter app I have used "google_maps_flutter" package to display map by passing latitude and longitude. Earlier it was working fine but from few days when I open the google map module ...
0
votes
2
answers
161
views
Flutter Grid View elements's cornerRadius not working
this is my issue:
I have a GridView.count with a List.generate as children.
Basically I have a grid of maps made with google_maps_flutter and I want to give each of them a corner radius but it applies ...
2
votes
1
answer
909
views
java.lang.NullPointerException: Attempt to get length of null array in flutter google_maps_flutter
In my flutter application I am using google_maps_flutter for showing location,but I face this again and again when map loads lot of locations also it arise on zoom in/out action.
I already saw this ...
0
votes
0
answers
433
views
unexpected crash in google maps flutter package: flutter 3.7.3
I have done everything listed below in the google_maps_flutter package: https://pub.dev/packages/google_maps_flutter. Even added render type in my main file:
import 'package:flutter/material.dart';
...
1
vote
0
answers
609
views
'package:flutter/src/rendering/proxy_box.dart': Failed assertion: line 3406 pos 12: '!debugNeedsPaint': is not true
I would like to express my appreciation to whoever is reading this for taking your time to look at this question.
I am a high school student developer and currently taking an internship for cs. I have ...
2
votes
1
answer
2k
views
How to use dart defined variables inside of AppDelegate.swift file
I am using Google Maps for Flutter to access a map in my application. To make it usable for iOS I need to provide the API key inside of AppDelegate.swift as:
GMSServices.provideAPIKey(...
0
votes
1
answer
401
views
How to make a "WidgetTest" call the "onCameraMove" method?
I would like the onCameraMove method to be called when moveCamera is called.
I tried to mock platform channel without success.
import 'dart:async';
import 'package:flutter/widgets.dart';
import '...
0
votes
1
answer
2k
views
Sending signal. PID: 22843 SIG: 9 Lost connection to device. i got this error when opening map in flutter
when im opening map using my current location the sigterm is exiting
android.enableDexingArtifactTransform=false
i've added permission in my project
0
votes
1
answer
2k
views
I want to know how to show gas stations in google maps flutter
so here's a picture from google map that I want to show the gas stations on my app like this because I want to make app that show the gas stations locations
will anyone help me?
I need a code or hint ...