Closed leandroz closed 6 years ago
@wf9a5m75 PR created: https://github.com/mapsplugin/cordova-plugin-googlemaps/pull/2118
In order to reproduce your issue, please share your project files on github. I don't want to add all SVG tags to ignore list.
@wf9a5m75 I have already reproduced it and already sent a PR, but I am thinking maybe doing this is better:
if(document.getElementById("el") instanceof SVGElement) {
console.log("It's an SVG element");
}
from https://stackoverflow.com/questions/20748836/how-do-i-tell-if-a-dom-element-is-html-or-svg
That way we fix it once and for all the tags.
Thank you for telling the tip. I inserted the code onto the multiple_maps branch. Please reinstall the plugin from the multiple_maps branch.
@wf9a5m75 great, are there big differences between master and multiple_maps branch? so I install the plugin from that one instead.
The multiple_maps
branch is for the next version, which includes other fixes.
Ok great, do you have an idea of the planned release date? just so I know what to do. Thanks again!
No ETA.
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)"@ionic-native/core": "4.4.0"
"@ionic-native/google-maps": "^4.5.3"
Current behavior:
Expected behavior: No errors while tracing DOM tree.
Related code, data or error log (please format your code or data):
I have an SVG chart, the SVG chart has inside
g
andpath
tags. The problem is that the output ofpath.className
is not a string, it isSVGAnimatedString
, which lacks the split method. The same is true for the g tag.Solution: Update Common.js to include path and g in the
ignoreTags
.Is there something else to change maybe in googlemaps-cdv-plugins.js ? Maybe
doNotTraceTags
? @wf9a5m75 let me know and I can send a PR.