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

ol-mapbox-style

Package Overview
Dependencies
Maintainers
3
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
17

8.0.3

Diff

Changelog

Source

8.0.3

  • Fix applyStyle() regression that broke the function when no sourceOrLayer was provided
ahocevar
published 8.0.2 •

Changelog

Source

8.0.2

  • Fix display of optional arguments in API docs
  • Fix layer stack regression when layers from one source are spread across multiple OpenLayers layers
ahocevar
published 8.0.1 •

Changelog

Source

8.0.1

  • Display API docs correctly on npmjs.com
ahocevar
published 8.0.0 •

Changelog

Source

8.0.0

Breaking changes

  • The package now provides two separate bundles for umd and ejs. dist/olms.js is the umd bundle, dist/index.js the ejs bundle. No other JavaScript files are provided in the dist/ folder any more.
  • Imports from the dist/ folder are no longer supported. They need to be replaced with imports from the package, e.g. import {stylefunction} from "ol-mapbox-style" instead of import stylefunction from "ol-mapbox-style/dist/stylefunction".
  • The apply() function has been replaced with an alias of the default export. This means that apply() now returns a Promise<Map> instead of a Map.
  • The auto-generated types are now stricter, because they reference OpenLayers types correctly, instead of using any.

Other changes

  • apply(), applyStyle() and applyBackground() now take an options argument, which can contain a transformRequest option. With that function, urls and requests for styles, sprites, tiles and data can be modified. This can be useful e.g. to fix relative urls or to add credentials.
  • Another available option is accessToken. In combination with the new support for mapbox:// urls, it has become much easier to use maps and styles from Mapbox.
  • Finally, a set of resolutions can be configured in the options. This makes it much easier to work with layers or maps in projections other than Web Mercator.
  • The applyStyle() function has become more powerful and can now create and populate the source of the provided layer.
  • feature-state is now supported. The new functions setFeatureState() and getFeatureState() can be used to set and get the feature state.
  • The build size is now at least 80 kB smaller because of pre-processing of the style specification from the @mapbox/mapbox-gl-style-spec package. The umd bundle no longer contains the OpenLayers code that has been there by accident for a few releases, which had unnecessarily increased the build size by almost 400 kB.
  • The API docs are now generated with typedoc instead of documentation.js
ahocevar
published 7.1.1 •

Changelog

Source

7.1.1

  • Do not use overflow for line labels
ahocevar
published 7.1.0 •

Changelog

Source

7.1.0

  • Declutter also vector layers
  • Allow text to overflow polygons
ahocevar
published 7.0.0 •

Changelog

Source

7.0.0

Breaking changes

ol-mapbox-style now requires OpenLayers >= 6.13.

All changes

  • Add support for rich text labels (with OpenLayers v6.13+)
  • Require ol >= 6.13
ahocevar
published 7.0.0-beta.0 •

ahocevar
published 6.9.0 •

Changelog

Source

6.9.0

  • Add support for the icon-offset layout property
  • Fix circle layers with default radius
ahocevar
published 6.8.3 •

Changelog

Source

6.8.3

  • Fix handling of fonts with two-word weights (e.g. "Semi Bold")
  • Fix rendering of fill-outline when fill is fully transparent
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