mapbox-gl-controls
Advanced tools
Comparing version 1.6.5 to 1.7.0
{ | ||
"name": "mapbox-gl-controls", | ||
"version": "1.6.5", | ||
"version": "1.7.0", | ||
"main": "./lib/index.js", | ||
@@ -8,30 +8,30 @@ "description": "Controls for mapbox-gl", | ||
"lint": "eslint src", | ||
"watch": "npm run watch:js & npm run watch:css", | ||
"build": "rollup --config && postcss src/theme.scss --output theme.css && cp ./theme.css ./docs", | ||
"watch:js": "rollup --config --watch", | ||
"watch:css": "postcss src/theme.scss --watch --output theme.css", | ||
"build": "rollup --config && postcss src/theme.scss --output theme.css && cp ./theme.css ./docs", | ||
"docs": "documentation readme src/** --section=API --markdown-toc=false" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@rollup/plugin-babel": "^5.1.0", | ||
"@rollup/plugin-commonjs": "^14.0.0", | ||
"@rollup/plugin-node-resolve": "^8.4.0", | ||
"documentation": "^13.0.2", | ||
"eslint": "^7.5.0", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"mapbox-gl": "^1.11.1", | ||
"postcss-cli": "^7.1.1", | ||
"postcss-import": "^12.0.1", | ||
"postcss-nested": "^4.2.3", | ||
"rollup": "^2.22.1", | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"@rollup/plugin-babel": "^5.2.2", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"documentation": "^13.1.0", | ||
"eslint": "^7.17.0", | ||
"eslint-config-xxx": "^1.0.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"mapbox-gl": "^2.0.1", | ||
"postcss": "^8.2.4", | ||
"postcss-cli": "^8.3.1", | ||
"postcss-import": "^14.0.0", | ||
"postcss-nested": "^5.0.3", | ||
"rollup": "^2.36.1", | ||
"rollup-plugin-svg-import": "^1.5.1" | ||
}, | ||
"dependencies": { | ||
"@turf/distance": "6.0.1" | ||
"@turf/distance": "6.2.0" | ||
}, | ||
"peerDependencies": { | ||
"mapbox-gl": ">=1.0.0 <2.0.0" | ||
"mapbox-gl": ">=1.0.0 <3.0.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "homepage": "https://bravecow.github.io/mapbox-gl-controls/", |
@@ -149,3 +149,3 @@ import mapboxgl from 'mapbox-gl'; | ||
this.map.removeSource(SOURCE_SYMBOL); | ||
this.markers.forEach((m) => m.remove()); | ||
this.markers.forEach(m => m.remove()); | ||
this.map.off('click', this.mapClickListener); | ||
@@ -152,0 +152,0 @@ this.map.off('style.load', this.styleLoadListener); |
@@ -56,3 +56,3 @@ const defaultStyles = [ | ||
}); | ||
const styleNames = this.styles.map((style) => style.styleName); | ||
const styleNames = this.styles.map(style => style.styleName); | ||
const currentStyleIndex = styleNames.indexOf(this.map.getStyle().name); | ||
@@ -59,0 +59,0 @@ if (currentStyleIndex !== -1) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79550
16
+ Added@mapbox/mapbox-gl-supported@2.0.1(transitive)
+ Added@mapbox/tiny-sdf@2.0.6(transitive)
+ Added@mapbox/unitbezier@0.0.1(transitive)
+ Added@turf/distance@6.2.0(transitive)
+ Addedkdbush@4.0.2(transitive)
+ Addedmapbox-gl@2.15.0(transitive)
+ Addedpotpack@2.0.0(transitive)
+ Addedsupercluster@8.0.1(transitive)
- Removed@mapbox/geojson-types@1.0.2(transitive)
- Removed@mapbox/mapbox-gl-supported@1.5.0(transitive)
- Removed@mapbox/tiny-sdf@1.2.5(transitive)
- Removed@mapbox/unitbezier@0.0.0(transitive)
- Removed@turf/distance@6.0.1(transitive)
- Removedkdbush@3.0.0(transitive)
- Removedmapbox-gl@1.13.3(transitive)
- Removedpotpack@1.0.2(transitive)
- Removedsupercluster@7.1.5(transitive)
Updated@turf/distance@6.2.0