Public
HTTP
Readme

Earthquake map 🌏

This val loads earthquake data from USGS, a topojson file for the land shape, and supporting libraries. It then creates a map and save it as a SVG string. The result is cached for a day. Note that we must strive to keep it under val.town’s limit of 100kB, hence the heavy simplification of the land shape. (For a simpler example, see becker barley.)

Web pagehttps://fil-earthquakes.web.val.run/
Observable Plot https://observablehq.com/plot/
linkedomhttps://github.com/WebReflection/linkedom
topojsonhttps://github.com/topojson/topojson
earthquakeshttps://earthquake.usgs.gov
worldhttps://observablehq.com/@visionscarto/world-atlas-topojson
csshttps://milligram.io/
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
3
stevekrouse avatar

@TFayyaz was asking for observable plot examples on twitter and I wanted to link here, but this val is now returning an error:

{"error":"The requested module '/v135/@observablehq/plot@0.6.10/denonext/src/scales.js' does not provide an export named 'length' at https://esm.sh/v135/@observablehq/plot@0.6.10/denonext/src/scales/quantitative.js:2:717"}
fil avatar

Weird; thanks for flagging! I moved from esm.sh to jsdelivr.net and that fixed it.

stevekrouse avatar
fil-earthquakes.web.val.run
April 22, 2024