Fix: can not load image with ionic
MODIFY
src/android/plugin/google/maps/AsyncLoadImage.java
src/android/plugin/google/maps/AsyncLoadImage.java
@@ -183,6 +183,12 @@ public class AsyncLoadImage extends AsyncTask<Void, Void, AsyncLoadImage.AsyncLo
return result;
}
+ //Log.d(TAG, "--> iconUrl = " + iconUrl);
+ //--------------------------------
+ // Load image from local path
+ //--------------------------------
+ if (!iconUrl.startsWith("data:image")) {
+
if ((currentPageUrl.startsWith("http://localhost") ||
currentPageUrl.startsWith("http://127.0.0.1")) &&
!iconUrl.contains("://")) {
@@ -190,11 +196,6 @@ public class AsyncLoadImage extends AsyncTask<Void, Void, AsyncLoadImage.AsyncLo
iconUrl = "file:///android_asset/www/".concat(iconUrl);
}
- //Log.d(TAG, "--> iconUrl = " + iconUrl);
- //--------------------------------
- // Load image from local path
- //--------------------------------
- if (!iconUrl.startsWith("data:image")) {
if (!iconUrl.contains("://") &&
!iconUrl.startsWith("/") &&
!iconUrl.startsWith("www/") &&
@@ -239,7 +240,6 @@ public class AsyncLoadImage extends AsyncTask<Void, Void, AsyncLoadImage.AsyncLo
if (!isAbsolutePath) {
iconUrl = iconUrl.substring(1);
}
- Log.d(TAG, "iconUrl(232) = " + iconUrl);
} catch (Exception e) {
e.printStackTrace();
}

Fix: can not load image with ionic