Skip to content

fix(deps): update dependency ol to v10 #1427

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 27, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ol (source) 8.1.0 -> 10.5.0 age adoption passing confidence

Release Notes

openlayers/openlayers (ol)

v10.5.0

Compare Source

v10.4.0

Compare Source

With more than 40 pull requests, the 10.4 release brings performance improvements, bug fixes, better TypeScript generics and new features. New features include a convenience Image layer loader for debugging MapServer map files using the MapServer CGI API, and an experimental WebGLVectorTile layer.

Upgrade notes

Deprecation of ol/layer/WebGLPoints

Use ol/layer/WebGLVector instead. Besides rendering points it will also render lines and polygons.
In most cases this is a drop-in replacement. To use filtering the style and filter have to be in a nested object.

// Before
new WebGLPointsLayer({
  filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var', 'maxYear']],
  style: {
    'circle-radius': 8,
    'circle-fill-color': 'blue',
  },
  source: vectorSource,
})

// After
new WebGLVectorLayer({
  style: [{
    filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var', 'maxYear']],
    style: {
      'circle-radius': 8,
      'circle-fill-color': 'blue',
    },
  }],
  source: vectorSource,
})
ol/style/webgl module removal

WebGL renderers used to rely on the WebGLStyle type in the ol/style/webgl module. This is not the case anymore, all renderers now rely on FlatStyle from ol/style/flat.

-import type { WebGLStyle } from 'ol/style/webgl';
+import type { FlatStyle } from 'ol/style/flat';
ol-mapbox-style compatibility

This version of OpenLayers is only compatible with [email protected] or higher.

Returning false from a one-time listener added with once

Returning false from the listener function will now stop propagation, when the listener is added with once.
Previously this only worked with the on method.

The filter option for WebGLPointsLayer has changed

The filter option for the WebGLPointsLayer must now be specified alongside other options instead of being part of the style object. Note that the WebGLPointsLayer is not part of the stable API and is subject to breaking changes between major releases.

// Before
new WebGLPointsLayer({
  style: {
    filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var', 'maxYear']],
    'circle-radius': 8,
    'circle-fill-color': 'blue',
  },
  source: vectorSource,
})

// Now
new WebGLPointsLayer({
  filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var', 'maxYear']],
  style: {
    'circle-radius': 8,
    'circle-fill-color': 'blue',
  },
  source: vectorSource,
})

Get ready for future changes

We're planning to stop providing barrel files, which will impact how you import modules from OpenLayers. See #​16461 for details. To get your code ready for that upcoming change, you can already help us test the replace-barrel-imports codemod from the @​openlayers/codemod package.

List of all changes

New Contributors

Full Changelog: openlayers/openlayers@v10.3.1...v10.4.0

v10.3.1

Compare Source

The 10.3.1 patch release contains several fixes and improvements to types, adds a missing class export and fixes a couple of broken WebGL points examples.

List of all changes

See below for a complete list of features and fixes.

Dependency Updates

Full Changelog: openlayers/openlayers@v10.3.0...v10.3.1

v10.3.0

Compare Source

In addition to many important bug fixes, the 10.3 release adds several improvements to the recently introduced ImageTile source, support for model transformations for the GeoTIFF source, a new SentinelHub source, built-in support for UTM coordinate transforms, smart caching of regular shape and icon styles, TypeScript improvements for the VectorImage layer, and a new WebGLVectorLayer.

Upgrade notes
The transform function throws for unknown projections

Previously, the transform() function from the ol/proj module would apply the identity transform if either the source or the destination projections were unrecognized. Now this function will throw an error if it cannot perform the transform. You can check whether a projection is registered by calling the get() function from ol/proj - this function returns null if the projection definition for a provided identifier is not known.

The format of the style for WebGLPointsLayer has changed

Such a layer would previously be created this way:

// Before
new WebGLPointsLayer({
  style: {
    // variables were part of the `style` object
    variables: {
      minYear: 1850,
      maxYear: 2015,
    },
    filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var', 'maxYear']],
  },
  source: vectorSource,
})

From this release on, variables are now set as a separate object at the root of the options object:

// Now
new WebGLPointsLayer({
  style: {
    filter: ['between', ['get', 'year'], ['var', 'minYear'], ['var', 'maxYear']],
  },
  variables: {
    minYear: 1850,
    maxYear: 2015,
  },
  source: vectorSource,
})
List of all changes

See below for a complete list of features and fixes.

Dependency Updates

v10.2.1

Compare Source

The 10.2.1 patch release fixes an issue with missing tiles on reprojected tile layers. See the 10.2.0 release notes for a complete list of changes since the previous release.

What's Changed


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, 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.

Copy link

netlify bot commented Jul 27, 2024

Deploy Preview for elated-brown-7e20ff ready!

Name Link
🔨 Latest commit 9202815
🔍 Latest deploy log https://app.netlify.com/projects/elated-brown-7e20ff/deploys/6829f103399df40008d48639
😎 Deploy Preview https://deploy-preview-1427--elated-brown-7e20ff.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@renovate renovate bot force-pushed the renovate/ol-10.x branch 4 times, most recently from a608f6c to e5a3a20 Compare August 4, 2024 13:07
@renovate renovate bot force-pushed the renovate/ol-10.x branch 3 times, most recently from fec08e3 to 547f397 Compare August 11, 2024 14:35
@renovate renovate bot force-pushed the renovate/ol-10.x branch 3 times, most recently from f6dc282 to 4b42ded Compare August 22, 2024 03:17
@renovate renovate bot force-pushed the renovate/ol-10.x branch 4 times, most recently from 1e13702 to 1340044 Compare August 30, 2024 13:15
@renovate renovate bot force-pushed the renovate/ol-10.x branch 4 times, most recently from e8109e1 to 01f9950 Compare September 8, 2024 18:39
@renovate renovate bot force-pushed the renovate/ol-10.x branch 2 times, most recently from 40b8388 to 5131a0d Compare September 15, 2024 14:01
@renovate renovate bot force-pushed the renovate/ol-10.x branch 5 times, most recently from c9aeeee to 7fefa46 Compare September 27, 2024 15:43
@renovate renovate bot force-pushed the renovate/ol-10.x branch 3 times, most recently from 862d738 to 15b269e Compare October 6, 2024 15:35
@renovate renovate bot force-pushed the renovate/ol-10.x branch from 15b269e to b8a29c3 Compare October 6, 2024 19:18
@renovate renovate bot force-pushed the renovate/ol-10.x branch 4 times, most recently from 7ec9049 to 594e7dd Compare February 23, 2025 14:53
@renovate renovate bot force-pushed the renovate/ol-10.x branch 2 times, most recently from 1852ba4 to d72ced4 Compare March 2, 2025 13:27
@renovate renovate bot force-pushed the renovate/ol-10.x branch 3 times, most recently from 23ab533 to a7f7f14 Compare March 14, 2025 16:09
@renovate renovate bot force-pushed the renovate/ol-10.x branch 3 times, most recently from 8113e17 to 2fe84b6 Compare March 23, 2025 13:31
@renovate renovate bot force-pushed the renovate/ol-10.x branch 5 times, most recently from 5f3dbb5 to 4f5a4dd Compare April 4, 2025 14:41
@renovate renovate bot force-pushed the renovate/ol-10.x branch 2 times, most recently from ce8fa36 to 62c7dc7 Compare April 11, 2025 15:34
@renovate renovate bot force-pushed the renovate/ol-10.x branch 2 times, most recently from e906da7 to 430e3d5 Compare April 20, 2025 13:54
@renovate renovate bot force-pushed the renovate/ol-10.x branch 3 times, most recently from 9b304d5 to f84d225 Compare May 2, 2025 15:24
@renovate renovate bot force-pushed the renovate/ol-10.x branch 3 times, most recently from 13219e7 to e818f60 Compare May 9, 2025 15:53
@renovate renovate bot force-pushed the renovate/ol-10.x branch from e818f60 to 58a4839 Compare May 16, 2025 15:09
@renovate renovate bot force-pushed the renovate/ol-10.x branch from 58a4839 to 9202815 Compare May 18, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants