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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squadrats integration #265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rafal0p
Copy link

@rafal0p rafal0p commented Jan 6, 2024

What is Squadrats?

Let me pass the mic to the authors: https://squadrats.com/, the pitch is 30 seconds read.

For me, personally it's a lot of fun 馃帀 .

What's in the PR?

POC of displaying these squares on the map, as an overlay layer.

If you'd like to test it and don't have an account just copypaste this to squadrats key in localstorage, it would display a rectangle over Belgium:

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"coordinates":[[[3.960807664215025,51.00447046929696],[3.960807664215025,50.64234162997474],[4.671143042915219,50.64234162997474],[4.671143042915219,51.00447046929696],[3.960807664215025,51.00447046929696]]],"type":"Polygon"}}]}

How it's gonna work?

Squadrats exposes collected squares as a geojson file with a token in the URL (everyone who knows the link can get it, no verification of cookies takes place). POC expects the content to be in local storage, to make it work properly I'll need to add a bit of UI to copypaste the link.

What I expect from you?

General review of the approach.

  • Do you think it should work like that, or rather everything should be added to the app dynamically, and every line of code about this integration should go to something like squadrats.js?
  • Does that have a chance to be included in the main branch, or you don't think such feature is a good idea, and if I'd like to use my only option is a fork?

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

Successfully merging this pull request may close these issues.

None yet

1 participant