If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)
@ionic-native/core :
@ionic-native/google-maps :
Current behavior:
When I try to use custom markers from my server, I get the default red icon instead of the marker. For the first 2-3s after adding the marker, the marker doesn't show. Then the default red icon shows.
Expected behavior:
The image from my server should show instead of the default red icon
Screen capture or video record:
It's just the red marker showing, nothing unusual to demonstrate with the screenshot.
--->
Related code, data or error log (please format your code or data):
10-28 15:03:29.594 27327 32067 W System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap
.isRecycled()' on a null object reference
10-28 15:03:29.595 27327 32067 W System.err: at android.graphics.BaseCanvas.throwIfCannotDraw(BaseCanvas.java:54)
10-28 15:03:29.595 27327 32067 W System.err: at android.graphics.BaseCanvas.drawBitmap(BaseCanvas.java:102)
10-28 15:03:29.595 27327 32067 W System.err: at android.graphics.Canvas.drawBitmap(Canvas.java:1386)
10-28 15:03:29.596 27327 32067 W System.err: at plugin.google.maps.AsyncLoadImage.doInBackground(AsyncLoadImage.java:393)
10-28 15:03:29.596 27327 32067 W System.err: at plugin.google.maps.AsyncLoadImage.doInBackground(AsyncLoadImage.java:27)
10-28 15:03:29.596 27327 32067 W System.err: at android.os.AsyncTask$2.call(AsyncTask.java:335) 10-28 15:03:29.597 27327 32067 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
10-28 15:03:29.597 27327 32067 W System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:247) 10-28 15:03:29.597 27327 32067 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
10-28 15:03:29.598 27327 32067 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 10-28 15:03:29.598 27327 32067 W System.err: at java.lang.Thread.run(Thread.java:764)
Update
I debugged further and found that this error happens when I use an image that is base64 encoded twice on the server. This plugin only decodes once, so it seems the solution would involve decoding twice. I posted about such a feature request in #2890
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior:
When I try to use custom markers from my server, I get the default red icon instead of the marker. For the first 2-3s after adding the marker, the marker doesn't show. Then the default red icon shows.
Expected behavior:
The image from my server should show instead of the default red icon
Screen capture or video record: It's just the red marker showing, nothing unusual to demonstrate with the screenshot. --->
Related code, data or error log (please format your code or data):
Update
I debugged further and found that this error happens when I use an image that is base64 encoded twice on the server. This plugin only decodes once, so it seems the solution would involve decoding twice. I posted about such a feature request in #2890