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] Add support for custom marker size #34657
Currently we ignore the marker size in the ImageConfiguration and only use it to resolve the asset image dpi. This is to scale the image after picking the right resolution per the size parameter passed.
final icon =awaitgetBitmapDescriptorFromAssetBytes("asset/image.png", 35);
Reacted by Erli Soares, Bryan Pei, Nazanin Nasab, inossan, Sarang Kartikey, Jack Wittmayer, Akshay Galande, Fernando Pinedo, Niraj Joshi, Morita Naoki and 43 more
Reacted by Niraj Joshi, harlekintiger, DarkMikey, Marko Filipović, Koen Van Looveren, Lays Dragon, Sun Lee , Dominik Mrugalski, Igor Kulishov and GiovanniBCEC
Reacted by Gastón Giménez, Hussain Mustafa, Christian Garcerant, LuchoAGN, Daniel Firebanks-Quevedo and Igor Kulishov
It's been over a year now and Size and devicePixelRatio are still ignored. @giancarlopro I wish your workaround worked but the icon is still the same size no matter if I put 100 or 1 for the width.
it should work if you're using .png format. have you tested with other images?
Reacted by Alexey Lepskii, Radu Zubascu, Hudson Afonso, Jason Wong, Heorhii Teriaiev, harlekintiger, Muhemmad Asbah Riyas, Juan D. Diaz, Tom Nijs, Ali Furkan Budak and 5 more
Reacted by Bilal Bşş, Edy Tama Kusumajaya, DarkMikey and Lays Dragon
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
tzvc commentedon Mar 10, 2020
Any updates on this? Happy to help if needed ;)
dranoer commentedon Apr 17, 2020
I've issue on this, do you any way so I could change it with customSize?
giancarlopro commentedon Apr 17, 2020
I use this as a workaround, may be useful for you. It creates a redimensioned version of the asset image on the fly.
Usage:
enricobenedos commentedon May 5, 2020
I tried today to apply a custom marker using
google_maps_flutterand alsodevicePixelRatioandSizeoptions are ignoredJackWittmayer commentedon Jun 29, 2020
It's been over a year now and Size and devicePixelRatio are still ignored.
giancarlopro commentedon Jun 30, 2020
it should work if you're using
.pngformat. have you tested with other images?JackWittmayer commentedon Jun 30, 2020
Sorry, I actually just did a poor job implementing the code. It works great!
matijamatija commentedon Sep 22, 2020
Any progress on this?
fernando-s97 commentedon Sep 2, 2021
@TahaTesser @darshankawar any updates on that?
16 remaining items
[google_maps_flutter_platform_interface] Add improvements to BitmapDe…
[google_maps_flutter] Custom marker size improvements - platform impls (
[google_maps_flutter] Custom marker size improvements (#4055)
github-actions commentedon Jun 19, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[google_maps_flutter] Custom marker size improvements (#4055)
[google_maps_flutter] Custom marker size improvements (flutter#4055)
[google_maps_flutter] Custom marker size improvements (flutter#4055)