Thanks to you both! @bgchen - I especially appreciate the lengths you take to teach; big for your commented example!
@mbostock – Thanks for the many examples and tutorials. With regard to the examples you linked, and as a general observation on the many map examples on this website-- I have found it easy to play with an manipulate examples where with a global view (like the ones you link), or adding and playing with data on maps that are already made (like ones with US states), but I have a much harder time trying to figure out how to load and render some random map that I find on the Internet (such as the map of Indonesia that I was playing around with).
What I like about the GitHub previewer is that if I find (or make) a geoJSON or topoJSON file and save it to GitHub, that files appears in the viewer. I don’t have to know anything about the file – where it’s located, what view level, etc. I realize there’s a lot of magic behind this, but I am hoping that, at its heart, there’s not much to the process of rendering a JSON file… that there a small, reusable bit of code out there to which I can ‘connect’ a geoJSON or topoJSON file and have it ‘appear’, and then to it I can start adding data. In the examples you linked, unfortunately, I can’t just switch-out the data and have the map automatically adjust. While I can user Tom’s Leaflet notebook pretty easily, I still clumsily have to mess around with the viewing bounds and also have all the overhead of rendering my data on top of the leaflet map (which is exactly what GitHub does for me).
I am inspired by your streaming shapefiles example but here too I’ve struggled with the same sorts of issues: if I can’t figure out the correct projection of my shapefile data, and if I don’t know the coordinates for the viewing bounds, I can’t get it to load or display correctly. I therefore find myself importing a shapefile or json file to Google Earth (or GitHub) to figure out where and how it will look before I even try adding it to Observable.
I am slowly learning (thanks to you!) but it’s been a real challenge for me to try to figure out how to get the building blocks in place for working with maps and data in JavaScript (or anything, for that matter). I keep trying because I feel that I am making progress and because of your tremendous help and encouragement, but the barriers to entry still seem pretty high.
At the end of the day, my goal is to be able to ask things like: where are the weather stations near to this area, and what do they tell us about air quality? Or how far are people’s homes in this city from a hospital, on average? As I research these questions, so much comes back to D3.js and as I think about how to communicate the answers I find in a way that is transparent and reproducible, it seems that JavaScript is the way to go. Just wish there were a few more examples and tutorials out there of how to start from the very basics. You’re doing a lot in that respect - and I can’t thank you enough!