Skip to content

svg error #1

@rawatenator

Description

@rawatenator

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions