-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/plugins
#1737Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Related to #34183, #27393, #1208
Use case
I have an image that I want to use as a marker icon on Google Maps with scaling ratio 3.5.
There is no way to achieve this currently unless I provide mipmaps for it (didn't try playing with fractional ratios though so it might not work at all)
Proposal
- Make use of ImageConfiguration.devicePixelRatio in BitmapDescriptor.fromAssetImage
- Preferably also offer a sync version of this function as there's nothing async required for this and async marker load will require a consecutive setState and widget rebuild.
kjeremy, rafaelferreirapt and stevenspiel
Metadata
Metadata
Assignees
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version