You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[google_maps_flutter] Expose an "onTilesLoaded" to notify when all tiles have been fully rendered. #99610
The flutter plugin exposes an onMapCreated() function that states when the map is ready.
However, until all tiles are fully loaded it shows a grid with grey lines, and any effect or any interaction with the map seems useless until tiles are rendered.
These are the use cases I wish to accomplish:
Ensure all tiles are rendered before taking a snapshot.
Running the method takeSnapshot() after onMapCreated() leads to an image with either, partial tiles rendered or none at all.
Zoom-in to a position once the map is first loaded.
The zoom effect is kind of weird if done after onMapCreated() is fired, since it will zoom a grid of grey lines.
Proposal
Each platform already contains a functionality to determine when tiles are fully rendered:
Hi @FranRiadigos, Thanks for filing the issue. Google maps plugin currently doesn't have such a feature to notify when the tiles are loaded that looks like a valid proposal.
changed the title [-][google_maps_flutter] Expose an "onTilesLoaded" to signal when all tiles have been fully rendered.[/-][+][google_maps_flutter] Expose an "onTilesLoaded" to notify when all tiles have been fully rendered.[/+]on Mar 7, 2022
com.google.maps.api.android.lib6.common.apiexception.c: Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions. at com.google.maps.api.android.lib6.common.m.i(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (100400-0):0) ...
The GoogleMap widget is rendered using hybrid composition.
Activity
maheshj01 commentedon Mar 7, 2022
Hi @FranRiadigos, Thanks for filing the issue. Google maps plugin currently doesn't have such a feature to notify when the tiles are loaded that looks like a valid proposal.
[-][google_maps_flutter] Expose an "onTilesLoaded" to signal when all tiles have been fully rendered.[/-][+][google_maps_flutter] Expose an "onTilesLoaded" to notify when all tiles have been fully rendered.[/+]FranRiadigos commentedon May 14, 2022
Hi,
I recently got an issue on
Crashlyticsthat might be related to my request.Please, let me know whether I should open a bug issue about it.
When
onMapCreatedis fired, I callWhich produces the following error:
The
GoogleMapwidget is rendered using hybrid composition.Thanks.
maheshj01 commentedon May 16, 2022
@FranRiadigos, Please file that as a separate issue with all the requested details in the issue template and we will take a look at it.
jhonatan-3a commentedon Feb 22, 2023
oelburk commentedon Mar 17, 2023
singh3abhi commentedon Jun 25, 2023
Firdavs-coder commentedon Feb 23, 2024
mariomurrent-softwaresolutions commentedon Oct 18, 2024
Add `/go/onmaploaded` design doc redirect (#13200)