This package has been deprecated

Author message:

Please use @mapbox/mapbox-gl-sync-move

mapbox-gl-sync-move

0.1.0 • Public • Published

mapbox-gl-sync-move CircleCI

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 = require('mapbox-gl');
var syncMove = require('mapbox-gl-sync-move');
 
var mapA = new mapboxgl.Map(..);
var mapB = new mapboxgl.Map(..);
 
syncMove(mapA, 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.

Readme

Keywords

Package Sidebar

Install

npm i mapbox-gl-sync-move

Weekly Downloads

84

Version

0.1.0

License

ISC

Last publish

Collaborators

  • davidtheclark