Update dependency ol-mapbox-style to v12 (master) #9428
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.7.0
->12.3.5
Release Notes
openlayers/ol-mapbox-style (ol-mapbox-style)
v12.3.5
Compare Source
MapboxVectorLayer
type generics for OpenLayers v10v12.3.4
Compare Source
v12.3.3
Compare Source
v12.3.2
Compare Source
v12.3.1
Compare Source
document.createElement()
for more web worker friendlinessv12.3.0
Compare Source
v12.2.2
Compare Source
v12.2.1
Compare Source
v12.2.0
Compare Source
line-color
andbackground-color
defaultscircle-translate
icon-offset
text-tranform
text-ignore-placement
andtext-allow-overlap
v12.1.1
Compare Source
icon-size
layout property also for icons not provided by the stylesheetminzoom
andmaxzoom
properly when fetching source datav12.1.0
Compare Source
Promise
as return type fortransformRequest()
v12.0.0
Compare Source
Backwards incompatible changes
transformRequest
hook is now called for every singleTiles
request with the final url, instead of just once with the url template.source.getUrl()
orsource.getUrls()
. Now they use atileLoadFunction
configured by ol-mapbox-style instead.loader
by ol-mapbox-style. ThegetUrl()
method will return the url without thetransformRequest
transform. When the url is templated ({bbox-...}
),getUrl()
will returnundefined
.Other changes
transformRequest
hook now also accepts a url string as return value. When aRequest
is returned, it will be fully respected - not just the request'surl
.v11.0.3
Compare Source
v11.0.2
Compare Source
ol
a peer dependencyv11.0.1
Compare Source
v11.0.0
Compare Source
Backwards incompatible changes
Other changes
MapboxVectorLayer
export, which replacesol/layer/MapboxVector
from OpenLayers.v10.7.0
Compare Source
applyStyle
v10.6.0
Compare Source
addMapboxLayer()
can now also add a layer as first layer in the layer stack.addMapboxLayer()
is no longer restricted go layers with the same source.v10.5.0
Compare Source
recordStyleLayer(true)
v10.4.0
Compare Source
Changes that require attention
Font handling and loading
ol-mapbox-style no longer defaults to loading Google fonts when a required font is not available. Instead, it respects the new
metadata.ol:webfonts
field in the Mapbox Style document. Example:The supported template placeholders are
-
, e.g.noto-sans
+
, e.g.Noto+Sans
400
,700
normal
,italic
-italic
or empty string for normalIn addition to providing fonts along with the style, this can be used to retrieve fonts from a CDN (e.g.
@fontsource
) or Google fonts. If this metadata field is not set to the style, the following default template will be used:To retain the current behavior (i.e. use Google Fonts), the template URL will have to be
Other changes
getUid
function missing in the full buildupdateMapboxStyle()
work with objects that are not a reference to the original onetms
tile scheme forraster
andvector
layersterrarium
encoding forraster-dem
sourcesicon-offset
layout property modifies the underlying Mapbox Style objectgeojson
sources when theprojection
option is usedv10.3.4
Compare Source
v10.3.3
Compare Source
updateMapboxLayer()
and function/filter cache handlingv10.3.2
Compare Source
removeMapboxLayer
v10.3.1
Compare Source
vector
andgeojson
source layersv10.3.0
Compare Source
symbol-placement: "line-center"
v10.2.0
Compare Source
"id"
expressionv10.1.0
Compare Source
removeMapboxLayer()
functionaddMapboxLayer()
functionv10.0.0
Compare Source
Breaking changes
BBOX templates for
geojson
sourcesPreviously, the
{bbox-epsg-3857}
and{bbox-epsg-[custom projection srs code]}
template replacement included the projection's SRS identifier, e.g.1234,4567,4321,7654,EPSG:9876
. Now, the template replacement just includes the bounding box. This means that e.g. WFS source URLs need to be changed in the Mapbox style.If you previously had a source definition like
you have to change it to
The reason for this breaking change is compatibility with OCG API Features and other services that do not accept the SRS identifier as additional BBOX parameter.
Configuration
📅 Schedule: Branch creation - "after 5pm on the first day of the month" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.