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.
git clone https://github.com/mapbox/mapbeat.git
npm install
- Start the websocket server -
node index.js
- Point the client to the socket server
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.