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

Make the map more usable during the event #10

Open
lyret opened this issue May 7, 2024 · 7 comments
Open

Make the map more usable during the event #10

lyret opened this issue May 7, 2024 · 7 comments

Comments

@lyret
Copy link
Collaborator

lyret commented May 7, 2024

Right now the map is very slow to load and difficult to use from a phone to lookup information. This is by far the most requested improvement for 2024.

It should be possible use the map to lookup information without the intent to change the placement of camps and dreams.

Discussed ideas so far:

  • Enable an offline version
  • Cache the map in localstorage / indexeddb

Se #7 for some ideas from 2023.

@lyret lyret added the Before event start This should be done before the event starts label May 7, 2024
@sigurdcarlsen
Copy link
Contributor

Hi,
Could this not be solved just by disabling all the rules/checks for the layers when the event starts? They are currently disabled and the map is fast.
Or do people need to edit the map during the event?

I have also looked at the isBufferOverlappingRecursive and tried to make it just a little bit faster by caching the area and overlapping calculations. It is in my fork https://github.com/sigurdcarlsen/map if you want to check it out (I dont have the rights to create pull requests)

@lyret
Copy link
Collaborator Author

lyret commented May 9, 2024

Possibly yes if its fast enough! I think its good to be able to edit the map during the event - there is no hard deadline on when placement ends and its nice to be able to keep it up to date

@lyret
Copy link
Collaborator Author

lyret commented May 9, 2024

Personally I believe that having a different URL or having to enter a "editing" mode would be a good solution

@lyret
Copy link
Collaborator Author

lyret commented Jun 25, 2024

In the survival guide the address theborderland.se/map?guide=true is given, the search param guide=true should be check ed to speed up the rendering by disabling validation/editing etc...

@lyret
Copy link
Collaborator Author

lyret commented Jul 16, 2024

The latest update to the map includes a save icon 💾 to export most layers as both geojson and KML files. I have also uploaded the map to https://www.google.com/maps/d/u/0/edit?mid=1TPGTOtH-MuA2ViyPJ7yGZBN7AI_y6Mc&usp=sharing

@lyret
Copy link
Collaborator Author

lyret commented Jul 16, 2024

I been experimenting with using https://github.com/MazeMap/Leaflet.TileLayer.PouchDBCached to cache the tile layers, also the leaflet.offline might be a better idea.

Also packages like https://github.com/Igor-Vladyka/leaflet.browser.print exists that can be an additional offer

@lyret
Copy link
Collaborator Author

lyret commented Jul 16, 2024

Unfortunately time has run out to work on this before the event

@lyret lyret removed the Before event start This should be done before the event starts label Jul 16, 2024
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