ol-mapbox-style
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -181,7 +181,7 @@ /* | ||
element.style.backgroundColor = | ||
glfun['piecewise-constant'](paint['background-color'])(zoom); | ||
glfun(paint['background-color'], 'interval')(zoom); | ||
} | ||
if ('background-opacity' in paint) { | ||
element.style.backgroundOpacity = | ||
glfun.interpolated(paint['background-opacity'])(zoom); | ||
glfun(paint['background-opacity'], 'exponential')(zoom); | ||
} | ||
@@ -188,0 +188,0 @@ if (layout.visibility == 'none') { |
{ | ||
"name": "ol-mapbox-style", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Create OpenLayers maps from Mapbox Style objects", | ||
@@ -39,20 +39,21 @@ "main": "index.js", | ||
"scripts": { | ||
"prepublish": "npm run doc && mkdirp dist && browserify -g [ babelify --plugins [ transform-es2015-modules-commonjs ] ] -p [ standalonify --name olms --deps [ null --ol/observable ol.Observable --ol/proj ol.proj --ol/tilegrid ol.tilegrid --ol/map ol.Map --ol/format/geojson ol.format.GeoJSON --ol/format/mvt ol.format.MVT --ol/layer/tile ol.layer.Tile --ol/layer/vector ol.layer.Vector --ol/layer/vectortile ol.layer.VectorTile --ol/source/tilejson ol.source.TileJSON --ol/source/vector ol.source.Vector --ol/source/xyz ol.source.XYZ --ol/source/vectortile ol.source.VectorTile --ol/style/style ol.style.Style --ol/style/fill ol.style.Fill --ol/style/stroke ol.style.Stroke --ol/style/circle ol.style.Circle --ol/style/icon ol.style.Icon --ol/style/text ol.style.Text ] ] -g [ bubleify ] index.js > dist/olms.js", | ||
"prepublish": "npm run doc && mkdirp dist && browserify -g [ babelify ] -p [ standalonify --name olms --deps [ null --ol/observable ol.Observable --ol/proj ol.proj --ol/tilegrid ol.tilegrid --ol/map ol.Map --ol/format/geojson ol.format.GeoJSON --ol/format/mvt ol.format.MVT --ol/layer/tile ol.layer.Tile --ol/layer/vector ol.layer.Vector --ol/layer/vectortile ol.layer.VectorTile --ol/source/tilejson ol.source.TileJSON --ol/source/vector ol.source.Vector --ol/source/xyz ol.source.XYZ --ol/source/vectortile ol.source.VectorTile --ol/style/style ol.style.Style --ol/style/fill ol.style.Fill --ol/style/stroke ol.style.Stroke --ol/style/circle ol.style.Circle --ol/style/icon ol.style.Icon --ol/style/text ol.style.Text ] ] index.js > dist/olms.js", | ||
"doc": "documentation readme -s API index.js", | ||
"pretest": "eslint src & npm run test-bundle", | ||
"test": "phantomjs --local-to-remote-url-access=true ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html spec '{\"useColors\":true, \"ignoreResourceErrors\": true}'", | ||
"test-bundle": "browserify -g [ babelify --plugins [ transform-es2015-modules-commonjs ] ] -g [ bubleify ] test/test.js > test/bundle.js" | ||
"test-bundle": "browserify -g [ babelify ] test/test.js > test/bundle.js" | ||
}, | ||
"dependencies": { | ||
"@mapbox/mapbox-gl-style-spec": "^8.11.0", | ||
"@mapbox/mapbox-gl-style-spec": "^9.0.0", | ||
"mapbox-to-css-font": "^2.0.3", | ||
"mapbox-to-ol-style": "^2.4.2", | ||
"ol": "^4.1.1", | ||
"webfontloader": "^1.6.27" | ||
"mapbox-to-ol-style": "^2.5.1", | ||
"ol": "^4.2.0", | ||
"webfontloader": "^1.6.28" | ||
}, | ||
"devDependencies": { | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.0", | ||
"browserify": "^14.1.0", | ||
"bubleify": "^0.7.0", | ||
"documentation": "^4.0.0-beta.18", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", | ||
"babel-polyfill": "^6.23.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"browserify": "^14.4.0", | ||
"documentation": "^4.0.0-rc.1", | ||
"eslint": "^3.18.0", | ||
@@ -62,3 +63,3 @@ "eslint-config-openlayers": "^7.0.0", | ||
"mkdirp": "^0.5.1", | ||
"mocha": "^3.2.0", | ||
"mocha": "^3.4.2", | ||
"mocha-phantomjs-core": "^2.1.1", | ||
@@ -65,0 +66,0 @@ "phantomjs-prebuilt": "^2.1.14", |
@@ -44,3 +44,3 @@ # ol-mapbox-style | ||
are provided, they must be from layers that use the same source. | ||
- `path` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** Path of the style file. Only required when | ||
- `path` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Path of the style file. Only required when | ||
a relative path is used with the `"sprite"` property of the style. (optional, default `undefined`) | ||
@@ -47,0 +47,0 @@ |
@@ -0,1 +1,2 @@ | ||
import 'babel-polyfill'; | ||
import should from 'should/as-function'; | ||
@@ -2,0 +3,0 @@ import 'should-approximately-deep'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
2863585
30
63004
15
2
- Removed@mapbox/mapbox-gl-style-spec@8.11.0(transitive)
- Removedfast-stable-stringify@0.1.1(transitive)
Updatedmapbox-to-ol-style@^2.5.1
Updatedol@^4.2.0
Updatedwebfontloader@^1.6.28