Skip to content

Commit 70f3bf1

Browse files
duzenkoiskakaushik
authored andcommitted
[google_maps_flutter] Allow BitmapDescriptor scaling override (flutter#1737)
* Allow BitmapDescriptor scaling override * Updated the pubspec.yml and changelog files
1 parent 400bc41 commit 70f3bf1

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

packages/google_maps_flutter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.19
2+
3+
* Allow BitmapDescriptor scaling override
4+
15
## 0.5.18
26

37
* Fixed build issue on iOS.

packages/google_maps_flutter/lib/src/bitmap.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ class BitmapDescriptor {
5959
AssetBundle bundle,
6060
String package,
6161
}) async {
62+
if (configuration.devicePixelRatio != null) {
63+
return BitmapDescriptor._(<dynamic>[
64+
'fromAssetImage',
65+
assetName,
66+
configuration.devicePixelRatio,
67+
]);
68+
}
6269
final AssetImage assetImage =
6370
AssetImage(assetName, package: package, bundle: bundle);
6471
final AssetBundleImageKey assetBundleImageKey =

packages/google_maps_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: google_maps_flutter
22
description: A Flutter plugin for integrating Google Maps in iOS and Android applications.
33
author: Flutter Team <flutter-dev@googlegroups.com>
44
homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter
5-
version: 0.5.18
5+
version: 0.5.19
66

77
dependencies:
88
flutter:

0 commit comments

Comments
 (0)