class 3 - states
✓ Published0🌍 Public
MMTClass
Last edited Mar 7, 2017
Created on Mar 7, 2017
This example displays a map of US states rendered in gray with an Albers USA projection, overlaid with crimson points marking earthquake locations from the USGS live GeoJSON feed. It uses d3.geoPath for both state boundaries and earthquake points, with topojson to convert US state geometries. As the mouse moves over the map, a text display updates to show the geographic longitude and latitude in degrees, computed via projection.invert and d3.mouse. The visualization layers states and earthquakes in separate SVG groups, with a fixed SVG canvas sized 960 by 500 pixels.
AI-generated description