fetch(url).then(resp => resp.json()).then(geojson => { dostuff })
-
-
I don't understand the syntax here, sorry,
2 replies 0 retweets 0 likes -
Replying to @o_guest
more verbose usage of the fetch API - https://developers.google.com/web/updates/2015/03/introduction-to-fetch … I was trying to respond about opening a geojson file, using only the browser
1 reply 0 retweets 1 like -
totally butted in, solely because I love javascript and geojson (thanks to
@MaptimeATX
)1 reply 0 retweets 2 likes -
apologies for the unsolicited js, please reach out if you want pointers to resources -- I'm happy to get more scientists involved with js ;)
1 reply 0 retweets 4 likes -
Kyle's example is equivalent to the one in the leaflet example here: https://gist.github.com/blahah/167a363844326c2192d7ab0ff32ad8d0 …. Kyle feel free to fork/comment on the gist!
2 replies 0 retweets 1 like -
-
Replying to @rgbkrk @blahah404
Thank you so much for that. So I had already got the hang of some of leaflet and that helped even more. I have discovered (as others have
1 reply 0 retweets 0 likes -
warned
@IanHawke) that GeoJSON is huge, so I have converted to topoJSON and it's indeed smaller but still huge. Any ideas? I used geo2topo.2 replies 0 retweets 0 likes -
I tried to look into how to make geo2topo smooth over/drop more points but not sure how to do it without losing everything/making the map
2 replies 0 retweets 0 likes
look like little squares. Anyway will keep digging. I used this to load topoJSON files into leaflet: https://gist.github.com/brendanvinson/0e3c3c86d96863f1c33f55454705bca7 …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.