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.
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/lib/Converter/Feature2Mesh.js +1 -2
- package/lib/Converter/textureConverter.js +1 -2
- package/lib/Core/Feature.js +1 -2
- package/lib/Core/Geographic/Coordinates.js +1 -1
- package/lib/Core/Geographic/Crs.js +114 -144
- package/lib/Core/Geographic/Extent.js +2 -5
- package/lib/Core/Geographic/GeoidGrid.js +1 -1
- package/lib/Core/Prefab/Globe/GlobeLayer.js +3 -4
- package/lib/Core/Prefab/GlobeView.js +2 -3
- package/lib/Core/Prefab/Planar/PlanarLayer.js +2 -3
- package/lib/Core/Tile/Tile.js +4 -4
- package/lib/Core/Tile/TileGrid.js +7 -10
- package/lib/Core/TileMesh.js +1 -2
- package/lib/Core/View.js +2 -2
- package/lib/Main.js +1 -1
- package/lib/Renderer/OBB.js +2 -2
- package/lib/Renderer/RasterTile.js +1 -2
- package/lib/Source/FileSource.js +1 -2
- package/lib/Source/Source.js +1 -1
- package/lib/Source/TMSSource.js +2 -3
- package/lib/Source/WFSSource.js +1 -2
- package/package.json +3 -3
package/lib/Source/TMSSource.js
CHANGED
|
@@ -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
|
-
|
|
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 =
|
|
90
|
+
this.crs = source.crs;
|
|
92
91
|
this.tileMatrixSetLimits = source.tileMatrixSetLimits;
|
|
93
92
|
this.extentSetlimits = {};
|
|
94
93
|
this.tileMatrixCallback = source.tileMatrixCallback || (zoomLevel => zoomLevel);
|
package/lib/Source/WFSSource.js
CHANGED
|
@@ -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 (
|
|
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.
|
|
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": "
|
|
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",
|