Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg error #1

Open
rawatenator opened this issue Oct 26, 2020 · 1 comment
Open

svg error #1

rawatenator opened this issue Oct 26, 2020 · 1 comment

Comments

@rawatenator
Copy link

thank you for the great resource you've created!!!
I'd appreciate help resolving this error:

in svg-world-map.js

// Wait for asynchronous svg load
svg.addEventListener("load", async () => {
let promise2 = new Promise(resolve2 => {
// Set SVG base node
baseNode = svg.getSVGDocument().children[0];
// Startup SVG path traversing, then country sorting, followed by click handlers, etc.
initMapCountries();

svg-world-map.js:87 Uncaught (in promise) TypeError: Cannot read property 'children' of null
at svg-world-map.js:87
at new Promise ()
at HTMLObjectElement. (svg-world-map.js:85)

@raphaellepuschitz
Copy link
Owner

Hi,
thanks for trying out the map and sorry for the late answer!
There's a new version online (with some changes in the loading logic).
Maybe this fixes the issue - otherwise please let me know the OS and browser (+ version) you were using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants