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

Geojson preview should link to geojson.io #15

Open
timwis opened this issue Mar 8, 2016 · 5 comments
Open

Geojson preview should link to geojson.io #15

timwis opened this issue Mar 8, 2016 · 5 comments

Comments

@timwis
Copy link
Owner

timwis commented Mar 8, 2016

ex. http://geojson.io/#data=data:text/x-url,http%3A%2F%2Fapi.tiles.mapbox.com%2Fv3%2Ftmcw.map-gdv4cswo%2Fmarkers.geojson

I wonder if there's a similar site for CSVs?

@jalbertbowden
Copy link

OKFN's DataPipes is what you seek: http://datapipes.okfnlabs.org/html/
Here's your sample csv from another repo: http://datapipes.okfnlabs.org/csv/html/?url=https://raw.githubusercontent.com/timwis/csv-test/master/sample.csv
I'm interested in the geojson issue, essentially you are saying that .geojson files should preview a geojson.io url of that data? sorry, can't find an example in the demo, so not 100% sure what you mean/need.
BTW: this is really cool. Nicely done!

@timwis timwis mentioned this issue Mar 23, 2016
@timwis
Copy link
Owner Author

timwis commented Mar 23, 2016

Oh cool! I was just thinking about CSVs for #4, that's perfect.

The idea with geojson.io was that their site has a pretty decent "data viewer" for geojson, and rather than reinvent the wheel, link to it or embed it since they allow data to be passed in as a querystring param (a link or even the data itself).

I know recline does this as well, though either implementation runs into issues with (a) huge datasets, (b) links to non-https endpoints, and (c) links to non-CORS endpoints.

I wonder if something like a cartodb embed map could (a) serve as a CORS-enabled proxy for endpoints and (b) stream the data in a way that it can load quickly without crashing the browser?

Maybe I'm overthinking it, but one could argue that these preview tools are the "end of the line" for "layperson" users that don't know what to do with a giant spreadsheet or shapefile, so the better we make them, the broader the audience for the data portal becomes.

And thanks for your kind words. I'd love to hear more of your ideas!

@jalbertbowden
Copy link

not overthinking it all...i concur wholeheartedly with that paragraph. don't make me think baked in by default is the goal.
is trying with geojson.io still on the table, or are you moving onto options listed below it?
i've had issues with geojson.io and large datasets, but pretty sure they're editable in your own version.
can't say for sure about cartodb, i've only used it a few times.
i want to say mapbox maybe an option here too, but my experience using it is also minimal.

i have a few ideas about browser crashing, but could use some feedback first.
how are you hosting jekyll on your server? i thought that was github exclusive.
i think because it precompiles, page weight and asset minimization are even more critical?
i've been thinking about implementing some form of lazy loading json in maps with massive datasets. not functionally, but visually like leaflet's market cluster plugin: user can see an overview of what the map will be immediately.
i want to call it a form of progressive enhancement, but since we are talking about minimal functionality (rendering a map) that's bogus.

@JJediny
Copy link
Contributor

JJediny commented Mar 24, 2016

Other JS options to consider:

  1. https://github.com/JJediny/map
  2. https://github.com/JJediny/geojson-share-maps
  3. https://github.com/JJediny/geojson-dashboard *would have to add code to simplify viewer to handle variety of attributes though

Heavier wieght i.e. more then an single html page and an endpoint:

  1. https://github.com/TerriaJS/map compiled from https://github.com/TerriaJS/terriajs... can handle geojson/geocsv formats by endpoints to static files alone
  2. https://github.com/umap-project/Leaflet.Storage

@iltempe
Copy link

iltempe commented Apr 19, 2016

Why don't create a page with a map and load GeoJSON files that are linked in dataset of JKAN, just in this way? https://www.mapbox.com/mapbox.js/example/v1.0.0/geojson-marker-from-url/

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

4 participants