diff --git a/src/android/plugin/google/maps/AsyncLoadImage.java b/src/android/plugin/google/maps/AsyncLoadImage.java index 16e0bb04b..79faead82 100644 --- a/src/android/plugin/google/maps/AsyncLoadImage.java +++ b/src/android/plugin/google/maps/AsyncLoadImage.java @@ -197,10 +197,13 @@ protected AsyncLoadImageResult doInBackground(Void... params) { if (!iconUrl.startsWith("data:image")) { if (iconUrl.startsWith("http://localhost") || - iconUrl.startsWith("http://127.0.0.1")) { + iconUrl.startsWith("https://localhost") || + iconUrl.startsWith("http://127.0.0.1") || + iconUrl.startsWith("https://127.0.0.1") + ) { // Log.d(TAG, String.format("---->(201)iconURL = %s", iconUrl)); if (iconUrl.contains("://")) { - iconUrl = iconUrl.replaceAll("http://.+?/", "file:///android_asset/www/"); + iconUrl = iconUrl.replaceAll("https?://.+?/", "file:///android_asset/www/"); } else { // Avoid WebViewLocalServer (because can not make a connection for some reason) iconUrl = "file:///android_asset/www/".concat(iconUrl);