ol-mapbox-style
Advanced tools
Changelog
8.0.3
applyStyle()
regression that broke the function when no sourceOrLayer
was providedChangelog
8.0.2
Changelog
8.0.0
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.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"
.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
.any
.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.accessToken
. In combination with the new support for mapbox://
urls, it has become much easier to use maps and styles from Mapbox.options
. This makes it much easier to work with layers or maps in projections other than Web Mercator.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.@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.Changelog
7.0.0
ol-mapbox-style now requires OpenLayers >= 6.13.
Changelog
6.9.0
icon-offset
layout propertycircle
layers with default radius