Skip to content

Commit 2926966

Browse files
committed
Fixing bug that add ./ and then the url to the icon value when is passed a base64 image
I added also some debug information under (isDebug variable). The key is mainly add (iconUrl.startsWith("data:image") == false) to line 695. If you don't put this, a icon value with "data/image ..." is modified by the adding of "./". I don't know why I am the only one with this problem. (Note: I delete and create again the repository)
1 parent d50f6f6 commit 2926966

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)