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

Map plugin should not initizialize invalid maps #10448

Open
1 task done
allyoucanmap opened this issue Jul 2, 2024 · 0 comments · May be fixed by #10449
Open
1 task done

Map plugin should not initizialize invalid maps #10448

allyoucanmap opened this issue Jul 2, 2024 · 0 comments · May be fixed by #10449

Comments

@allyoucanmap
Copy link
Contributor

allyoucanmap commented Jul 2, 2024

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

@allyoucanmap allyoucanmap self-assigned this Jul 2, 2024
allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this issue Jul 2, 2024
@allyoucanmap allyoucanmap linked a pull request Jul 2, 2024 that will close this issue
5 tasks
@allyoucanmap allyoucanmap linked a pull request Jul 2, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants