itowns 2.44.3-next.21 → 2.44.3-next.22

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.
@@ -3,8 +3,7 @@ import URLBuilder from "../Provider/URLBuilder.js";
3
3
  import Extent from "../Core/Geographic/Extent.js";
4
4
  import Tile from "../Core/Tile/Tile.js";
5
5
  import { globalExtentTMS } from "../Core/Tile/TileGrid.js";
6
- import CRS from "../Core/Geographic/Crs.js";
7
- const _tile = new Tile(CRS.tms_4326, 0, 0, 0);
6
+ const _tile = new Tile('EPSG:4326', 0, 0, 0);
8
7
 
9
8
  /**
10
9
  * An object defining the source of resources to get from a
@@ -88,7 +87,7 @@ class TMSSource extends Source {
88
87
  }
89
88
  this.zoom = source.zoom;
90
89
  this.isInverted = source.isInverted || false;
91
- this.crs = CRS.formatToTms(source.crs);
90
+ this.crs = source.crs;
92
91
  this.tileMatrixSetLimits = source.tileMatrixSetLimits;
93
92
  this.extentSetlimits = {};
94
93
  this.tileMatrixCallback = source.tileMatrixCallback || (zoomLevel => zoomLevel);
@@ -1,6 +1,5 @@
1
1
  import Source from "./Source.js";
2
2
  import URLBuilder from "../Provider/URLBuilder.js";
3
- import CRS from "../Core/Geographic/Crs.js";
4
3
  import Extent from "../Core/Geographic/Extent.js";
5
4
  const _extent = new Extent('EPSG:4326', [0, 0, 0, 0]);
6
5
 
@@ -154,7 +153,7 @@ class WFSSource extends Source {
154
153
  return super.handlingError(err);
155
154
  }
156
155
  requestToKey(extent) {
157
- if (CRS.isTms(extent.crs)) {
156
+ if (extent.isTile) {
158
157
  return super.requestToKey(extent);
159
158
  } else {
160
159
  return [extent.zoom, extent.south, extent.west];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.44.3-next.21",
3
+ "version": "2.44.3-next.22",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",
@@ -21,13 +21,13 @@
21
21
  "base-test-unit": "cross-env BABEL_DISABLE_CACHE=1 mocha --file test/unit/bootstrap.js --import=./config/babel-register/register.mjs",
22
22
  "build": "cross-env NODE_ENV=production webpack",
23
23
  "build-dev": "cross-env NODE_ENV=development webpack",
24
- "transpile": "cross-env BABEL_DISABLE_CACHE=1 babel src --out-dir lib",
24
+ "transpile": "cross-env BABEL_DISABLE_CACHE=1 babel src --out-dir lib --extensions .js,.ts",
25
25
  "start": "cross-env NODE_ENV=development webpack serve",
26
26
  "start-https": "cross-env NODE_ENV=development webpack serve --https",
27
27
  "debug": "cross-env noInline=true npm start",
28
28
  "prepublishOnly": "npm run build && npm run transpile",
29
29
  "prepare": "cross-env NO_UPDATE_NOTIFIER=true node ./config/prepare.mjs && node ./config/replace.config.mjs",
30
- "watch": "cross-env BABEL_DISABLE_CACHE=1 babel --watch src --out-dir lib",
30
+ "watch": "npm run transpile -- --watch",
31
31
  "changelog": "conventional-changelog -n ./config/conventionalChangelog/config.cjs -i changelog.md -s",
32
32
  "bump": "if [ -z $npm_config_level ]; then grunt bump:minor; else grunt bump:$npm_config_level; fi && npm run changelog && npm install && git add -A && git commit --amend --no-edit",
33
33
  "publish-next": "npm version prerelease --preid next && npm publish --access public --tag=next --provenance",