@masterportal/masterportalapi 2.5.0 → 2.5.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
 
4
4
  The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
5
5
 
6
+ ## 2.5.1 - 2022-08-05
7
+ ### Fixed
8
+ - Remove import of `defaultResolutions` for the vectorStyle layer
9
+
10
+ ---
11
+
6
12
  ## 2.5.0 - 2022-08-05
7
13
  ### Added
8
14
  - The following packages have been installed:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@masterportal/masterportalapi",
3
3
  "author": "Implementierungspartnerschaft Masterportal <info@masterportal.org> (https://www.masterportal.org)",
4
- "version": "2.5.0",
4
+ "version": "2.5.1",
5
5
  "license": "MIT",
6
6
  "description": "Basic functions of the Masterportal as api",
7
7
  "repository": {
@@ -5,7 +5,6 @@ import OpenLayersTileGrid from "ol/tilegrid/TileGrid";
5
5
  import {extentFromProjection} from "ol/tilegrid";
6
6
 
7
7
  import {stylefunction} from "ol-mapbox-style";
8
- import {defaultResolutions} from "ol-mapbox-style";
9
8
 
10
9
  import defaults from "../defaults";
11
10
 
@@ -167,7 +166,7 @@ export function createLayer (rawLayer = {}, {layerParams = {}, options = {}} = {
167
166
  export function setStyle (layer, glStyle, {options = {}} = {}) {
168
167
  stylefunction(layer, glStyle,
169
168
  options.sourceId ? options.sourceId : Object.keys(glStyle.sources)[0],
170
- options.resolutions ? options.resolutions : defaultResolutions,
169
+ options.resolutions,
171
170
  options.spriteData,
172
171
  options.spriteImageUrl,
173
172
  options.getFonts);