ol 10.1.1-dev.1726748222806 → 10.1.1-dev.1726748362724

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/View.js CHANGED
@@ -1310,9 +1310,9 @@ class View extends BaseObject {
1310
1310
  * @api
1311
1311
  */
1312
1312
  getResolutionForZoom(zoom) {
1313
- if (this.resolutions_) {
1314
- if (this.resolutions_.length <= 1) {
1315
- return 0;
1313
+ if (this.resolutions_?.length) {
1314
+ if (this.resolutions_.length === 1) {
1315
+ return this.resolutions_[0];
1316
1316
  }
1317
1317
  const baseLevel = clamp(
1318
1318
  Math.floor(zoom),