-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use ReactJS framework #6
Conversation
I just tried to run
Do you know what that is? Regarding the legend: it should show up exactly as in the current deployment at https://leonard.io/cycling-norway/ In your screenshot I don't see any icons or lines from the map. Did you wrap the original library or re-implement it? |
Sorry, I probably missed adding those files to the commit... Now it should be working! |
The screenshot looks great but I cannot run the app. I get the following error:
|
Hm, weird. I deleted the |
37a448c
to
6fd83f3
Compare
6fd83f3
to
039e163
Compare
I had to do this a8cbc82 to make it work on my computer. 🤷♂️ This looks quite good. Is there a way to convert this app into fully static HTML and CSS? |
Yes, run |
Ok, the lines look really nice now, thanks! If you could re-add the coordinates in the URL I think we can merge this. In regular maplibre the property is called |
It is a known problem in the mapbox-gl v2 (react-map-gl#1266), they came up with a few official ways to solve it: https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling I tried the first one, updated the browserlist in |
That's fine. |
Tasks
I created a new React app based on the previous files and processes. I came up with a list of things, I should have copied from the old version. Please let me know, if there is any other requirements I forgot about.
bikely
layerAlso added an AttributionControl (bottom right corner) as #4 requested.
Also added a GeolocateControl to the top left corner (as #2 mentioned) so you can see and test whether that's what we want here.
Versions
Screenshots
Closes #5