GithubHelp home page GithubHelp logo

Comments (5)

jalbertbowden avatar jalbertbowden commented on June 5, 2024

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!

from jkan.

timwis avatar timwis commented on June 5, 2024

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!

from jkan.

jalbertbowden avatar jalbertbowden commented on June 5, 2024

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.

from jkan.

JJediny avatar JJediny commented on June 5, 2024

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

from jkan.

iltempe avatar iltempe commented on June 5, 2024

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/

from jkan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.