@mapbox/mapbox-gl-sync-move
Advanced tools
Comparing version
@@ -66,5 +66,5 @@ function moveToMapPosition (master, clones) { | ||
on(); | ||
return function(){ off(); fns = []; }; | ||
return function(){ off(); fns = []; maps = []; }; | ||
} | ||
module.exports = syncMaps; |
{ | ||
"name": "@mapbox/mapbox-gl-sync-move", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Sync movement around two Mapbox GL JS maps", | ||
@@ -25,12 +25,9 @@ "main": "index.js", | ||
"devDependencies": { | ||
"budo": "^8.3.0", | ||
"envify": "^3.4.0", | ||
"eventemitter3": "^1.2.0", | ||
"mapbox-gl": "^0.19.1", | ||
"sinon": "^1.17.4", | ||
"tape": "^4.5.1" | ||
}, | ||
"peerDependencies": { | ||
"mapbox-gl": ">=0.32.1 <2.0.0" | ||
"budo": "^11.7.0", | ||
"envify": "^4.1.0", | ||
"eventemitter3": "^4.0.7", | ||
"mapbox-gl": "^2.10.0", | ||
"sinon": "^14.0.0", | ||
"tape": "^5.6.0" | ||
} | ||
} |
@@ -17,3 +17,3 @@ # @mapbox/mapbox-gl-sync-move [](https://circleci.com/gh/mapbox/mapbox-gl-sync-move) | ||
var mapboxgl = require('mapbox-gl'); | ||
var syncMove = require('mapbox-gl-sync-move'); | ||
var syncMaps = require('mapbox-gl-sync-move'); | ||
@@ -23,3 +23,3 @@ var mapA = new mapboxgl.Map(..); | ||
syncMove(mapA, mapB); | ||
syncMaps(mapA, mapB); | ||
``` | ||
@@ -26,0 +26,0 @@ |
@@ -7,3 +7,3 @@ var mapboxgl = require('mapbox-gl'); | ||
css.rel = 'stylesheet'; | ||
css.href = 'https://api.mapbox.com/mapbox-gl-js/v0.19.1/mapbox-gl.css' | ||
css.href = 'https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.css' | ||
document.head.appendChild(css); | ||
@@ -42,5 +42,5 @@ | ||
mapA.addControl(new mapboxgl.Navigation()); | ||
mapB.addControl(new mapboxgl.Navigation()); | ||
mapC.addControl(new mapboxgl.Navigation()); | ||
mapA.addControl(new mapboxgl.NavigationControl()); | ||
mapB.addControl(new mapboxgl.NavigationControl()); | ||
mapC.addControl(new mapboxgl.NavigationControl()); | ||
@@ -47,0 +47,0 @@ document.getElementById('fly-tucson').addEventListener('click', function() { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
-100%8
14.29%12488
-0.16%