Skip to content

Map plugin should not initizialize invalid maps #10448

@allyoucanmap

Description

@allyoucanmap

Description

The Map plugin initializes all map configurations that are truthy and this includes also configuration like this one:

{
    "eventListeners": {
        "click": []
    },
    "mousePointer": "pointer"
}

For example the eventListeners property is persisted when we reset a map configuration.
It would be better to improve the if statement in the Map.jsx plugin to ensure only valid map configurations are initializing the component.
We could also remove the canRender state not used anymore

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features

Other useful information

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions