JS issue with monnaie-libre.fr website map backend

Hi, i profit this thread to stop having so many posts…

The bottom maps at our websites monnaie-libre.fr and moneda-libre.org are not working bcs this
https://g1-stats.axiom-team.fr/data/geoloc-members.json?v=2

is failing to load (or to be parsed correctly as json), therefore the membre’s coordinates can’t be loaded and map icons don’t show up…

Thanks for looking at it.

It’s working for me. What’s your problem?

it seems that the JSON is not correct

and in the console when clicking ‘Aficher membres’ from monnaie-libre.fr

I think we’re reaching the limits of this architecture. If it works for me and not for you, it’s because your PC can’t load the JSON because it’s too big. This system needs to be completely overhauled.

1 Like

Strange that it works for u, most online tools that i’m using can’t also load the JSON, maybe as you say there is a size limit and maybe just a coordinates JSON should be filtered… (TODO)

I understand :wink:
Moved to an other post, since it’s not related.

2 Likes

It would be nice to fix this map. I gave a try on websites / carte-g1 · GitLab, but it is too messy, I can not find my way. If I were able to edit the map code, I would change the format and build an other script that precomputes data in smaller chunks so that it is easy to fetch by the map.

And I’ll also add good error handling to display a message to the user if some data can not be fetched. @ManUtopiK please have a look on the map and at least make it easy to start in dev mode from scratch (see #4).

2 Likes