Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ol-mapbox-style

Package Overview
Dependencies
Maintainers
4
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ol-mapbox-style - npm Package Versions

1
1517

2.3.0

Diff

Changelog

Source

2.3.0

  • Fix a minor point styling issue
  • Fix polygon outline leaks when using line styles on polygons
  • Add optional path argument to applyStyle()
ahocevar
published 2.2.5 •

Changelog

Source

2.2.5

  • Fix build on Windows
ahocevar
published 2.2.4 •

Changelog

Source

2.2.4

  • Performance improvmeents from the mapbox-to-ol-style package
ahocevar
published 2.2.3 •

ahocevar
published 2.2.1 •

Changelog

Source

12.2.1

  • Fall back to default icon-color when drawing SDF
ahocevar
published 2.2.0 •

Changelog

Source

2.2.0

  • Add support for has and !has filters
ahocevar
published 2.1.1 •

Changelog

Source

12.1.1

  • Consider the icon-size layout property also for icons not provided by the stylesheet
  • Handle fractional layer minzoom and maxzoom properly when fetching source data
ahocevar
published 2.1.0 •

Changelog

Source

2.1.0

  • Added new `apply() function, which drastically simplifies the API.
ahocevar
published 2.0.1 •

ahocevar
published 2.0.0 •

Changelog

Source

2.0.0

Switch to the ol package

With version 2.x, ol-mapbox-style switched to the ol npm package for the OpenLayers dependency. Users of dist/olms.js will not notice this change. Applications that have been using the openlayers npm package should be migrated to the ol package too.

If switching to ol is not yet desired, it is still possible to use ol-mapbox-style with the openlayers package, with the help of standalonify. You have to require OpenLayers as global.ol = require('openlayers');. To build the bundle, use a command like the following:

$ node_modules/.bin/browserify -g [ babelify --plugins [ transform-es2015-modules-commonjs ] ]  -p [ standalonify --name null --deps [ null --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 ] ] example/index.js > example/bundle.js

getStyleFunction moved to separate mapbox-to-ol-style package

For applications that do not need sprites and web fonts for their styles, a separate mapbox-to-ol-style package with focus on small build size and minimal dependencies has been created. ol-mapbox-style depends on that package.

If you have previously been using the getStyleFunction function, you now have to import it from mapbox-to-ol-style. If you have not used anything else from ol-mapbox-style, you can uninstall it.

Google fonts no longer need to be included in the html

ol-mapbox-style now automatically loads web fonts from Google. So in most cases, it is no longer necessary to scan the Mapbox Style for fonts and include them manually in the html of the application.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc