mapbox-gl-sync-move
Sync movement between two Mapbox GL JS maps.
Usage
This module exports a function that receives as arguments two Mapbox GL JS maps whose movements you'd like to sync.
var mapboxgl = ;var syncMove = ; var mapA = ;var mapB = ; ;
Developing
There are unit tests with mocked maps, and there's a page for manual testing.
Run the unit tests with npm test
.
To manually test, ensure you have a MapboxAccessToken
environment variable set. Then start the server with npm run start
.