# mapbox-gl-sync-move **Repository Path**: mirrors_mapbox/mapbox-gl-sync-move ## Basic Information - **Project Name**: mapbox-gl-sync-move - **Description**: Sync movement between two Mapbox GL maps - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-10-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @mapbox/mapbox-gl-sync-move [![CircleCI](https://circleci.com/gh/mapbox/mapbox-gl-sync-move.svg?style=svg)](https://circleci.com/gh/mapbox/mapbox-gl-sync-move) Sync movement between two or more [Mapbox GL JS](https://www.mapbox.com/mapbox-gl-js) maps. ## Install ``` npm install @mapbox/mapbox-gl-sync-move ``` ## Usage This module exports a function that receives as arguments two or more [Mapbox GL JS](https://www.mapbox.com/mapbox-gl-js) maps whose movements you'd like to sync. ```js var mapboxgl = require('mapbox-gl'); var syncMaps = require('mapbox-gl-sync-move'); var mapA = new mapboxgl.Map(..); var mapB = new mapboxgl.Map(..); syncMaps(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`.