Skip to content

Examples ​

Each example runs on its page and can be opened in the p5.js Web Editor.

  • Basic: Points written in the sketch, on a map. No data files.
  • GeoJSON: world: Country polygons loaded from the web, drawn without a basemap. Hover a country.
  • CSV: earthquakes: A live CSV from the USGS, sized and colored by its columns.
  • GeoJSON: rivers: The world's major rivers as GeoJSON lines, drawn without a basemap. Hover a river.
  • Geolocation: your track: Your location from the browser, and the track you walk. Best on a phone.
  • Animation: trip: A point travels from city to city, and the map follows it.

Released under the MIT License. Map data © OpenStreetMap contributors, basemaps by OpenFreeMap.