Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency ol-mapbox-style to v12 (master) #9428

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 26, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ol-mapbox-style 9.7.0 -> 12.3.5 age adoption passing confidence

Release Notes

openlayers/ol-mapbox-style (ol-mapbox-style)

v12.3.5

Compare Source

  • Adjust MapboxVectorLayer type generics for OpenLayers v10

v12.3.4

Compare Source

  • Remove polyfill.io from examples, no code changes

v12.3.3

Compare Source

  • Type updates for OpenLayers 9.2.x

v12.3.2

Compare Source

  • Make minZoom inclusive by zoom instead of resolution internally

v12.3.1

Compare Source

  • Improved docs and examples
  • Avoid document.createElement() for more web worker friendliness

v12.3.0

Compare Source

  • Use point resolution for hillshade calculation
  • Fix layer minzoom
  • Add webfonts option to override ol:webfonts
  • Properly handle fractional layer minzoom and maxzoom

v12.2.2

Compare Source

  • Generous peer dependency range for ol

v12.2.1

Compare Source

  • Fall back to default icon-color when drawing SDF

v12.2.0

Compare Source

  • Fix zIndex of background layer when applying style to an existing map
  • Use correct line-color and background-color defaults
  • Add support for circle-translate
  • Do not throw when style contains an unsupported layer type
  • Fix rendering for zero text halo
  • Fix scaling of icon-offset
  • Allow computed values for text-tranform
  • Add support for text-ignore-placement and text-allow-overlap

v12.1.1

Compare Source

  • 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

v12.1.0

Compare Source

  • New 'updateMapboxSource()' utility function.
  • Accept Promise as return type for transformRequest()
  • Do not overwrite existing search param with access token

v12.0.0

Compare Source

Backwards incompatible changes
  • The transformRequest hook is now called for every single Tiles request with the final url, instead of just once with the url template.
  • Generated OpenLayers Tile and VectorTile sources previously used the template urls obtained by source.getUrl() or source.getUrls(). Now they use a tileLoadFunction configured by ol-mapbox-style instead.
  • Generated OpenLayers Vector sources are now always configured with a loader by ol-mapbox-style. The getUrl() method will return the url without the transformRequest transform. When the url is templated ({bbox-...}), getUrl() will return undefined.
Other changes
  • The transformRequest hook now also accepts a url string as return value. When a Request is returned, it will be fully respected - not just the request's url.

v11.0.3

Compare Source

  • More ol versions included in peer dependency version range

v11.0.2

Compare Source

  • Make ol a peer dependency

v11.0.1

Compare Source

  • Use ol >= 7.x || v8.0.0-dev to allow deduping

v11.0.0

Compare Source

Backwards incompatible changes
  • The ol-mapbox-style package now contains untranspiled modern JavaScript code. When targeting older browsers, make sure to configure your build tools to transpile the code accordingly.
Other changes
  • New MapboxVectorLayer export, which replaces ol/layer/MapboxVector from OpenLayers.

v10.7.0

Compare Source

  • Small fixes for add/update/removeMapboxLayer
  • Support for SDF sprites
  • Improved documentation for 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

  • Add terrarium hillshade example
  • Add getStyleForLayer() function for more efficient legend creation without 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:

{
  "version": 8,
  "metadata": {
    "ol:webfonts": "https://mytileservergl.com/fonts/{font-family}/{fontweight}{-fontstyle}.css"
  }
  // ...
}

The supported template placeholders are

  • {font-family}: CSS font family converted to lowercase, blanks replaced with -, e.g. noto-sans
  • {Font+Family}: CSS font family in original case, blanks replaced with +, e.g. Noto+Sans
  • {fontweight}: CSS font weight (numeric), e.g. 400, 700
  • {fontstyle}: CSS font style, e.g. normal, italic
  • {-fontstyle}: CSS font style other than normal, e.g. -italic or empty string for normal

In 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:

https://cdn.jsdelivr.net/npm/@​fontsource/{font-family}/{fontweight}{-fontstyle}.css

To retain the current behavior (i.e. use Google Fonts), the template URL will have to be

https://fonts.googleapis.com/css?family={Font+Family}:{fontweight}{fontstyle}
Other changes
  • Fix a potential tile cache issue
  • Fix problem caused by getUid function missing in the full build
  • Make updateMapboxStyle() work with objects that are not a reference to the original one
  • Add support for the tms tile scheme for raster and vector layers
  • Add support for the terrarium encoding for raster-dem sources
  • Fix an issue where the icon-offset layout property modifies the underlying Mapbox Style object
  • Set the correct input projection for geojson sources when the projection option is used

v10.3.4

Compare Source

  • Fix addMapboxLayer - updateMapboxLayer - removeMapboxLayer sequence

v10.3.3

Compare Source

  • Fix updateMapboxLayer() and function/filter cache handling

v10.3.2

Compare Source

  • Export removeMapboxLayer

v10.3.1

Compare Source

  • Fix initial visibility of vector and geojson source layers

v10.3.0

Compare Source

  • Add support for symbol-placement: "line-center"

v10.2.0

Compare Source

  • Add support for the "id" expression

v10.1.0

Compare Source

  • New removeMapboxLayer() function
  • Substantial fixes to the addMapboxLayer() function
  • Manage OpenLayers layer visibility based on the visibility of its Mapbox layers

v10.0.0

Compare Source

Breaking changes
BBOX templates for geojson sources

Previously, 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

{
  "type": "geojson",
  "data": "https://ahocevar.com/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=osm:water_areas&outputFormat=application/json&srsname=EPSG:4326&bbox={bbox-epsg-3857}"
}

you have to change it to

{
  "type": "geojson",
  "data": "https://ahocevar.com/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=osm:water_areas&outputFormat=application/json&srsname=EPSG:4326&bbox={bbox-epsg-3857},EPSG:3857"
}

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Update the dependencies label Aug 26, 2024
@renovate renovate bot enabled auto-merge (rebase) August 26, 2024 07:16
@renovate renovate bot merged commit 32e2aee into master Aug 26, 2024
16 of 18 checks passed
@renovate renovate bot deleted the renovate/master-ol-mapbox-style-12.x branch August 26, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Update the dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants