You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap marker setIcon execute in try/catch to avoid crash in host app
Markers may be invalidated and bitmaps disposed after the initial marker has been created, this can result in a fatal IllegalArgumentException. The exception can cause the host cordova app to crash therefore catching it (and warning via Log) is necessary.
Log.e("GoogleMapsPlugin","PluginMarker: Warning - marker method called when marker has been disposed, wait for addMarker callback before calling more methods on the marker (setIcon etc).");
796
+
//e.printStackTrace();
780
797
781
-
// The `anchor` property for the infoWindow
782
-
if (iconProperty.containsKey("infoWindowAnchor") == true) {
0 commit comments