Skip to content

Uncaught (in promise) Error: resolutions must be sorted in descending order #418

@jeancaffou

Description

@jeancaffou

Describe the bug
WMTS layers not working on latest versions of vue3-openlayers, Vite, crashes with:

vue3-openlayers.js?v=51cfb193:959 Uncaught (in promise) Error: `resolutions` must be sorted in descending order
    at assert (vue3-openlayers.js?v=51cfb193:959:11)
    at new TileGrid (vue3-openlayers.js?v=51cfb193:19924:5)
    at new WMTSTileGrid (vue3-openlayers.js?v=51cfb193:20414:5)
    at ComputedRefImpl.fn (vue3-openlayers.js?v=51cfb193:85726:14)
    at refreshComputed (chunk-EPASFQWC.js?v=51cfb193:636:29)
    at get value (chunk-EPASFQWC.js?v=51cfb193:1828:5)
    at setup (vue3-openlayers.js?v=51cfb193:85735:26)
    at callWithErrorHandling (chunk-EPASFQWC.js?v=51cfb193:2263:19)
    at setupStatefulComponent (chunk-EPASFQWC.js?v=51cfb193:9983:25)
    at setupComponent (chunk-EPASFQWC.js?v=51cfb193:9944:36)

Affected version(s)

To Reproduce
Steps to reproduce the behavior:

  1. install latest Quasar
  2. install latest vue3-openlayers, ol
  3. add WMTS tile layer
<ol-tile-layer :opacity="1" :z-index="0"><ol-source-wmts url="https://karstdb.zrc-sazu.si/gis/" matrixSet="EPSG:3857" format="image/png" layer="lidar-tif" styles="default" /></ol-tile-layer>

Additional context
On previous versions it was working

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions