Earthquake Data from USGS
The United States Geological Survey (USGS) provides several realtime feeds of earthquake occurences. We're using a GeoJSON feed that contains all earthquakes in the past month with a magnitude greater than 2.5. We use this example to demonstrate:
- Consuming a remote GeoJSON data feed that contains data points.
- Custom vector markers that change style based on the data source.
- Styling markers with CSS.
The USGS provide earthquake data in several formats, with varying refresh frequencies. GeoJSON is the easiest to work with, but any of the other formats could be made to work.
Like many government agencies, the USGS has a lot of interesting open datasets. Interested in Wind turbines? High-resolution, public domain satellite data? There is a lot here. This isn't the best organized resource, but it is worth exploring if you are interested in climate and geological data sets.
- The underlying data feed used here updates every five minutes. Can you make the map do the same? If so, can you highlight the earthquakes that are only in the new set?
- We chose just one of the several feeds for this map. Could you use the layer control functionality to let the user choose which one to see?
- Could you use the GeoJSON Detail feed to display more information about the selected event on your map page?