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 data in Kommunalwahlen 2020 don't load on page load #28

Closed
FloEdelmann opened this issue Feb 23, 2022 · 1 comment
Closed

Map data in Kommunalwahlen 2020 don't load on page load #28

FloEdelmann opened this issue Feb 23, 2022 · 1 comment

Comments

@FloEdelmann
Copy link
Contributor

Steps to reproduce:

  1. Go to https://vaterstetten-in-zahlen.de/?tab=kommunalwahl2020 (directly or via an in-app link)
  2. See this result:
    image
  3. See these console errors:
    image

Changing any dropdown loads the map data as expected, also changing it back to the default value works.

@fxedel fxedel closed this as completed in 0291b5c Apr 16, 2022
@fxedel
Copy link
Owner

fxedel commented Apr 16, 2022

Finally had some time to fix this. It seemed to be a kind of timing problem / race condition, since the map is not initialized with render() when the print function tries to find the map by its id and update its layers.

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