Skip to content

mapbox/mapbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deprecated

mapbeat - OpenStreetMap changes, as they happen.

A websocket server that listens to GeoJSON stream of changes in OpenStreetMap and broadcasts to clients. The clients render this on a Mapbox GL map.

Socket server setup

  • git clone https://github.com/mapbox/mapbeat.git
  • npm install
  • Start the websocket server - node index.js

Front-end setup

Tiles

If you go to index.html, the map will show the world divided into zoom 7 tiles, the tiles will light up when a feature in that tile is changed. The code is in js/tiles.js and is built using browserify into dist/bundle.js. You can see the map in light or dark variants. Just pass a style query parameter, like https://mapbox.com/mapbeat?style=light. The default is dark.

If you pass beat=true query parameter in the URL, each change will make a beat based on the coordinates.

mapbeat

About

OpenStreetMap changes, as they happen.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published