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

Feature request: Shareable maps #15

Open
jbuckner opened this issue Apr 13, 2018 · 4 comments
Open

Feature request: Shareable maps #15

jbuckner opened this issue Apr 13, 2018 · 4 comments
Assignees

Comments

@jbuckner
Copy link
Contributor

I think it'd be great to be able to send someone a URL with a reference to a JSON object that lets them see your map.

@c-harding
Copy link
Collaborator

c-harding commented Apr 13, 2018 via email

@jbuckner
Copy link
Contributor Author

jbuckner commented Apr 13, 2018

Yeah I figured this would be tricky data-wise while still being (mostly) client-side, I just wanted to start the conversation to see if some creative solutions like yours came up 😄

I'm going to put some more thought in to it.

@jbuckner
Copy link
Contributor Author

What about building an option to export the derive configuration and tracks as a JSON file. The user could upload that file to a server configured with the proper CORS configuration (this would be up to them). They then share a link like this: https://erik.github.io/derive/?mapdata=http://my.server.com/data.json and derive loads the data file.

@erik erik self-assigned this Apr 18, 2018
@erik
Copy link
Owner

erik commented Apr 21, 2018

So I did a quick implementation of this (https://github.com/erik/derive/tree/erik/geojson), and exporting about 2 years of data as GeoJSON for me comes out to roughly 45MB, which is large enough to be inconvenient to share. We could definitely save a bunch of space by going with a binary encoding instead, but that might be harder to host on public pastebin type sites, and wouldn't be compatible with existing programs.

Hrm.

Maybe it's worth having the GeoJSON output anyway?


Could also try something like geobuf, which would save us from reinventing the wheel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants