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
Current behavior:
When you create a first KML overlay, everything is fine. However, once you create an additional KML overlay the following error is triggered:
Error: Uncaught (in promise): TypeError: Cannot redefine property: camera
TypeError: Cannot redefine property: camera
at Function.defineProperty (<anonymous>)
at new KmlOverlay (index.js:1863)
at Map.<anonymous> (index.js:1598)
at KmlLoader.<anonymous> (Map.js:1050)
at BaseArrayClass.<anonymous> (KmlLoader.js:87)
From what I can see it seems like the problem is the following:
Before this, zone.js swallowed the expected error (since the property is being defined as non-configurable). With newer versions of zone.js, this error is being triggered as expected. A temporary fix for this would be to add this in your app before the map.addKmlOverlay() call:
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select 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 you create a first KML overlay, everything is fine. However, once you create an additional KML overlay the following error is triggered:
From what I can see it seems like the problem is the following:
ionic-native-google-maps/src/@ionic-native/plugins/google-maps/index.ts
Line 4918 in c0ff40e
The self variable does not seem to be defined here anywhere?
Expected behavior:
Any concurrent KML overlays should be created without any problem just like the first one.
The text was updated successfully, but these errors were encountered: