Bug fix: Custom dimensions of markers data uri icon should work.
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170805-2349" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170807-1015" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
src/android/plugin/google/maps/AsyncLoadImage.java
src/android/plugin/google/maps/AsyncLoadImage.java
@@ -402,9 +402,10 @@ public class AsyncLoadImage extends AsyncTask<Void, Void, AsyncLoadImage.AsyncLo
mWidth = Math.round(mWidth * density);
mHeight = Math.round(mHeight * density);
image = PluginUtil.resizeBitmap(image, mWidth, mHeight);
+ } else {
+ image = PluginUtil.scaleBitmapForDevice(image);
}
- image = PluginUtil.scaleBitmapForDevice(image);
AsyncLoadImageResult result = new AsyncLoadImageResult();
result.image = image;
result.cacheHit = false;

Bug fix: Custom dimensions of markers data uri icon should work. #1622