Skip to content

Commit 71c14e8

Browse files
committed
Merge pull request #866 from developez/master
Fixing bug that add ./ and then the url to the icon value when is passed a base64 image
2 parents d50f6f6 + 2926966 commit 71c14e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/android/plugin/google/maps/PluginMarker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,8 @@ private void setIcon_(final Marker marker, final Bundle iconProperty, final Plug
678678
String iconUrl = iconProperty.getString("url");
679679
if (iconUrl.indexOf("://") == -1 &&
680680
iconUrl.startsWith("/") == false &&
681-
iconUrl.startsWith("www/") == false) {
681+
iconUrl.startsWith("www/") == false &&
682+
iconUrl.startsWith("data:image") == false) {
682683
iconUrl = "./" + iconUrl;
683684
}
684685
if (iconUrl.indexOf("./") == 0) {

0 commit comments

Comments
 (0)