itowns 2.36.2 → 2.38.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/CONTRIBUTING.md +30 -17
- package/README.md +12 -1
- package/changelog.md +138 -0
- package/dist/debug.js +1 -1
- package/dist/debug.js.LICENSE.txt +2 -2
- package/dist/debug.js.map +1 -1
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.LICENSE.txt +2 -2
- package/dist/itowns.js.map +1 -1
- package/dist/itowns_widgets.js +2 -0
- package/dist/itowns_widgets.js.map +1 -0
- package/examples/config.json +28 -6
- package/examples/css/example.css +21 -1
- package/examples/css/widgets.css +360 -0
- package/examples/geoid_geoidLayer.html +102 -0
- package/examples/images/code-logo.svg +43 -0
- package/examples/index.html +5 -5
- package/examples/itowns-potree.html +252 -0
- package/examples/js/GUI/GuiTools.js +17 -0
- package/examples/mars.html +0 -1
- package/examples/misc_orthographic_camera.html +7 -19
- package/examples/source_file_from_fetched_data.html +90 -0
- package/examples/source_file_from_format.html +85 -0
- package/examples/source_file_from_methods.html +87 -0
- package/examples/source_file_from_parsed_data.html +104 -0
- package/examples/source_file_geojson_raster.html +21 -45
- package/examples/source_file_gpx_raster.html +28 -36
- package/examples/source_file_kml_raster.html +1 -4
- package/examples/source_file_shapefile.html +39 -34
- package/examples/source_stream_wfs_25d.html +21 -13
- package/examples/source_stream_wfs_3d.html +21 -12
- package/examples/source_stream_wfs_raster.html +20 -20
- package/examples/vector_tile_3d_mesh.html +155 -0
- package/examples/vector_tile_raster_3d.html +0 -5
- package/examples/view_25d_map.html +6 -19
- package/examples/view_2d_map.html +6 -19
- package/examples/view_3d_map.html +106 -81
- package/examples/view_immersive.html +13 -14
- package/examples/widgets_minimap.html +124 -0
- package/examples/widgets_navigation.html +124 -0
- package/examples/widgets_scale.html +96 -0
- package/examples/widgets_searchbar.html +124 -0
- package/lib/Controls/GlobeControls.js +13 -0
- package/lib/Controls/PlanarControls.js +11 -43
- package/lib/Converter/Feature2Mesh.js +203 -45
- package/lib/Converter/convertToTile.js +13 -4
- package/lib/Core/3DTiles/C3DTBoundingVolume.js +4 -1
- package/lib/Core/Deprecated/Undeprecator.js +1 -1
- package/lib/Core/Feature.js +60 -34
- package/lib/Core/Geographic/Extent.js +1 -1
- package/lib/Core/Geographic/GeoidGrid.js +143 -0
- package/lib/Core/MainLoop.js +137 -63
- package/lib/Core/Math/Ellipsoid.js +1 -1
- package/lib/Core/Prefab/Globe/SkyShader.js +3 -1
- package/lib/Core/Prefab/Planar/PlanarLayer.js +3 -1
- package/lib/Core/Style.js +1 -1
- package/lib/Core/TileGeometry.js +3 -1
- package/lib/Core/TileMesh.js +32 -22
- package/lib/Core/View.js +81 -15
- package/lib/Layer/ElevationLayer.js +6 -2
- package/lib/Layer/FeatureGeometryLayer.js +36 -7
- package/lib/Layer/GeoidLayer.js +142 -0
- package/lib/Layer/GeometryLayer.js +6 -54
- package/lib/Layer/InfoLayer.js +1 -1
- package/lib/Layer/Layer.js +1 -1
- package/lib/Layer/LayerUpdateStrategy.js +1 -1
- package/lib/Layer/OrientedImageLayer.js +1 -0
- package/lib/Layer/PotreeLayer.js +3 -1
- package/lib/Layer/RasterLayer.js +3 -1
- package/lib/Layer/ReferencingLayerProperties.js +50 -0
- package/lib/Layer/TiledGeometryLayer.js +3 -1
- package/lib/Main.js +214 -174
- package/lib/MainBundle.js +1 -1
- package/lib/Parser/B3dmParser.js +5 -3
- package/lib/Parser/GDFParser.js +118 -0
- package/lib/Parser/GTXParser.js +92 -0
- package/lib/Parser/GeoJsonParser.js +29 -7
- package/lib/Parser/ISGParser.js +121 -0
- package/lib/Parser/LASParser.js +3 -1
- package/lib/Parser/VectorTileParser.js +4 -3
- package/lib/Parser/XbilParser.js +1 -1
- package/lib/Parser/deprecated/LegacyGLTFLoader.js +1 -1
- package/lib/Process/3dTilesProcessing.js +2 -2
- package/lib/Process/FeatureProcessing.js +38 -86
- package/lib/Process/LayeredMaterialNodeProcessing.js +16 -7
- package/lib/Process/ObjectRemovalHelper.js +4 -0
- package/lib/Provider/3dTilesProvider.js +2 -7
- package/lib/Provider/Fetcher.js +4 -1
- package/lib/Provider/TileProvider.js +18 -2
- package/lib/Provider/URLBuilder.js +1 -1
- package/lib/Renderer/Camera.js +33 -12
- package/lib/Renderer/ColorLayersOrdering.js +3 -1
- package/lib/Renderer/LayeredMaterial.js +34 -9
- package/lib/Renderer/OBB.js +22 -25
- package/lib/Renderer/OrientedImageMaterial.js +8 -5
- package/lib/Renderer/PointsMaterial.js +6 -6
- package/lib/Renderer/RasterTile.js +1 -1
- package/lib/Renderer/RenderMode.js +3 -1
- package/lib/Renderer/Shader/ShaderChunk.js +5 -1
- package/lib/Renderer/Shader/ShaderUtils.js +4 -2
- package/lib/Renderer/c3DEngine.js +9 -6
- package/lib/Source/C3DTilesSource.js +3 -1
- package/lib/Source/EntwinePointTileSource.js +3 -1
- package/lib/Source/FileSource.js +8 -1
- package/lib/Source/PotreeSource.js +3 -1
- package/lib/Source/Source.js +15 -10
- package/lib/Source/VectorTilesSource.js +5 -0
- package/lib/Source/WFSSource.js +9 -3
- package/lib/Source/WMTSSource.js +3 -1
- package/lib/ThreeExtended/{WebGL.js → capabilities/WebGL.js} +8 -7
- package/lib/ThreeExtended/loaders/GLTFLoader.js +88 -39
- package/lib/Utils/CameraUtils.js +11 -1
- package/lib/Utils/DEMUtils.js +4 -2
- package/lib/Utils/FeaturesUtils.js +8 -4
- package/lib/Utils/gui/Main.js +39 -0
- package/lib/Utils/gui/Minimap.js +197 -0
- package/lib/Utils/gui/Navigation.js +322 -0
- package/lib/Utils/gui/Scale.js +154 -0
- package/lib/Utils/gui/Searchbar.js +299 -0
- package/lib/Utils/gui/Widget.js +119 -0
- package/package.json +32 -27
- package/examples/js/Scale.js +0 -40
package/CONTRIBUTING.md
CHANGED
|
@@ -27,23 +27,6 @@ If you don't know what to do but still want to contribute, check:
|
|
|
27
27
|
|
|
28
28
|
## Submitting an Issue
|
|
29
29
|
|
|
30
|
-
If you have a question, do not submit an issue; instead, use the iTowns mailing
|
|
31
|
-
lists. There is a user mailing list and a developer mailing list.
|
|
32
|
-
|
|
33
|
-
You can subscribe to the mailing lists here:
|
|
34
|
-
|
|
35
|
-
* Developer: https://lists.osgeo.org/mailman/listinfo/itowns-dev
|
|
36
|
-
* User: https://lists.osgeo.org/mailman/listinfo/itowns-user
|
|
37
|
-
|
|
38
|
-
The mailing list archives are here:
|
|
39
|
-
|
|
40
|
-
* Developer: https://lists.osgeo.org/pipermail/itowns-dev/
|
|
41
|
-
* User: https://lists.osgeo.org/pipermail/itowns-user/
|
|
42
|
-
|
|
43
|
-
If you cannot find any information on your problem in the archive, you can start
|
|
44
|
-
a new thread by sending an email to the list, and someone will probably answer
|
|
45
|
-
with a solution.
|
|
46
|
-
|
|
47
30
|
If you think you've found a bug in iTowns, first search the [iTowns
|
|
48
31
|
issues](https://github.com/iTowns/itowns/issues). If an issue already exists,
|
|
49
32
|
you can add a comment with any additional information. Use reactions (not
|
|
@@ -66,6 +49,36 @@ the following information as is relevant:
|
|
|
66
49
|
to help fix it. If so, the iTowns team can often provide guidance and the
|
|
67
50
|
issue may get fixed more quickly with your help.
|
|
68
51
|
|
|
52
|
+
|
|
53
|
+
## Ask a question, suggest an improvement
|
|
54
|
+
|
|
55
|
+
If you have a question or a suggestion not related to a bug iTowns, you can search the
|
|
56
|
+
[iTowns discussions](https://github.com/iTowns/itowns/discussions). If a discussion about
|
|
57
|
+
your question or suggestion already exists, you can add a comment or upvote the original
|
|
58
|
+
comment in the discussion. Otherwise, you can create a new discussion, detailing your
|
|
59
|
+
question or suggestion.
|
|
60
|
+
|
|
61
|
+
We recommend the use of [iTowns discussions](https://github.com/iTowns/itowns/discussions)
|
|
62
|
+
for suggestions and questions.
|
|
63
|
+
However, there is another way of suggesting imrpovements or asking questions, which is
|
|
64
|
+
through iTowns mailing lists. There is a user mailing list and a developer mailing list.
|
|
65
|
+
|
|
66
|
+
You can subscribe to the mailing lists here:
|
|
67
|
+
|
|
68
|
+
* Developer: https://lists.osgeo.org/mailman/listinfo/itowns-dev
|
|
69
|
+
* User: https://lists.osgeo.org/mailman/listinfo/itowns-user
|
|
70
|
+
|
|
71
|
+
The mailing list archives are here:
|
|
72
|
+
|
|
73
|
+
* Developer: https://lists.osgeo.org/pipermail/itowns-dev/
|
|
74
|
+
* User: https://lists.osgeo.org/pipermail/itowns-user/
|
|
75
|
+
|
|
76
|
+
If you cannot find any information on your problem in the archive, you can start
|
|
77
|
+
a new thread by sending an email to the list, and someone will probably answer
|
|
78
|
+
with a solution.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
69
82
|
## Fixing a bug, developing a feature or coding something
|
|
70
83
|
|
|
71
84
|
You are more than welcome to develop to iTowns, may it be a fix, a new feature,
|
package/README.md
CHANGED
|
@@ -34,7 +34,18 @@ here](http://www.itowns-project.org/itowns/examples/). Some examples available:
|
|
|
34
34
|
|
|
35
35
|
[](http://www.itowns-project.org/itowns/examples/)
|
|
36
36
|
|
|
37
|
-
## How to
|
|
37
|
+
## How to run it locally?
|
|
38
|
+
|
|
39
|
+
Clone the repo and then run:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
npm install
|
|
43
|
+
npm start
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Try out the examples at http://localhost:8080/examples
|
|
47
|
+
|
|
48
|
+
## How to use it in your project?
|
|
38
49
|
|
|
39
50
|
You can use it through npm (the preferred way) or download a bundle from our
|
|
40
51
|
github release page.
|
package/changelog.md
CHANGED
|
@@ -1,3 +1,141 @@
|
|
|
1
|
+
<a name="2.38.1"></a>
|
|
2
|
+
## [2.38.1](https://github.com/iTowns/itowns/compare/v2.38.0...v2.38.1) (2022-04-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Examples
|
|
6
|
+
|
|
7
|
+
* **Navigation:** fix addButton method call ([c53ae71](https://github.com/iTowns/itowns/commit/c53ae71))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Workflow and chores
|
|
11
|
+
|
|
12
|
+
* release v2.38.1 ([2ea8b0a](https://github.com/iTowns/itowns/commit/2ea8b0a))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<a name="2.38.0"></a>
|
|
17
|
+
# [2.38.0](https://github.com/iTowns/itowns/compare/v2.37.0...v2.38.0) (2022-04-13)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **FeatureGeometryLayer:** introduce FeatureMesh, they are added to layer.object3d. ([0d777ce](https://github.com/iTowns/itowns/commit/0d777ce))
|
|
23
|
+
* **Widgets:** add a searchbar widget ([164b6ee](https://github.com/iTowns/itowns/commit/164b6ee))
|
|
24
|
+
* **Widgets:** add a widget to display a scale ([d3a0154](https://github.com/iTowns/itowns/commit/d3a0154))
|
|
25
|
+
* **Widgets:** add show and hide methods ([59ac32c](https://github.com/iTowns/itowns/commit/59ac32c))
|
|
26
|
+
* **widgets:** Navigation tooltips can be parametrized ([094803f](https://github.com/iTowns/itowns/commit/094803f))
|
|
27
|
+
* **Widgets:** placeholder for searchbar can be modified ([9bd81ce](https://github.com/iTowns/itowns/commit/9bd81ce))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **Feature2Mesh:** fix wrong computing of clockwise polygon. ([bad5e34](https://github.com/iTowns/itowns/commit/bad5e34))
|
|
33
|
+
* **GeoidLayer:** transformation error on tileMesh. ([472e39c](https://github.com/iTowns/itowns/commit/472e39c))
|
|
34
|
+
* **parser:** GeoJsonParser add legacy identifier to fct readCRS() ([a0195c6](https://github.com/iTowns/itowns/commit/a0195c6))
|
|
35
|
+
* **VectorTileParser:** clock wise polygon wasn't calculated. ([135ee7a](https://github.com/iTowns/itowns/commit/135ee7a))
|
|
36
|
+
* **View:** fix pickCoordinates undefined parameter ([0ec49f4](https://github.com/iTowns/itowns/commit/0ec49f4))
|
|
37
|
+
* **Widgets:** fix focus policy and event propagation on widgets ([7775a04](https://github.com/iTowns/itowns/commit/7775a04))
|
|
38
|
+
* **Widgets:** fix in Navigation css ([a85f8b4](https://github.com/iTowns/itowns/commit/a85f8b4))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Examples
|
|
42
|
+
|
|
43
|
+
* change view source button style ([e593237](https://github.com/iTowns/itowns/commit/e593237))
|
|
44
|
+
* **FeatureGeometryLayer:** add vector tile to 3d object. ([53a42a6](https://github.com/iTowns/itowns/commit/53a42a6))
|
|
45
|
+
* **view 3d:** updates on widgets ([30bee5f](https://github.com/iTowns/itowns/commit/30bee5f))
|
|
46
|
+
* **Widgets:** use minimap widget in view 3D example ([5042ba7](https://github.com/iTowns/itowns/commit/5042ba7))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Code Refactoring
|
|
50
|
+
|
|
51
|
+
* **Feature:** move properties to private fields. ([02604b9](https://github.com/iTowns/itowns/commit/02604b9))
|
|
52
|
+
* **Feature:** simplify normals data. ([0914834](https://github.com/iTowns/itowns/commit/0914834))
|
|
53
|
+
* **GeometryLayer:** reference to material properties from Layer properties. ([23a0269](https://github.com/iTowns/itowns/commit/23a0269))
|
|
54
|
+
* **label:** render only object with labels. ([c317a8a](https://github.com/iTowns/itowns/commit/c317a8a))
|
|
55
|
+
* **MainLoop:** use class for MainLoop. ([25a48fd](https://github.com/iTowns/itowns/commit/25a48fd))
|
|
56
|
+
* **PlanarControls:** change focus policy ([99fadc0](https://github.com/iTowns/itowns/commit/99fadc0))
|
|
57
|
+
* **view_3d_map:** simplify example ([3786dcf](https://github.com/iTowns/itowns/commit/3786dcf))
|
|
58
|
+
* **View:** move View properties to private fields. ([51f5508](https://github.com/iTowns/itowns/commit/51f5508))
|
|
59
|
+
* **Widgets:** add onClick property in Navigation ([8d9f69e](https://github.com/iTowns/itowns/commit/8d9f69e))
|
|
60
|
+
* **Widgets:** simplify Navigation usage ([7c2bc89](https://github.com/iTowns/itowns/commit/7c2bc89))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Workflow and chores
|
|
64
|
+
|
|
65
|
+
* release v2.38.0 ([34ae0f3](https://github.com/iTowns/itowns/commit/34ae0f3))
|
|
66
|
+
* add support ecma 2022 ([25080d9](https://github.com/iTowns/itowns/commit/25080d9))
|
|
67
|
+
* **deps:** bump deps to fix security vulnerability. ([1db1ae7](https://github.com/iTowns/itowns/commit/1db1ae7))
|
|
68
|
+
* **deps:** bump minimist from 1.2.5 to 1.2.6 ([09e047a](https://github.com/iTowns/itowns/commit/09e047a))
|
|
69
|
+
* **deps:** bump node-forge from 1.2.1 to 1.3.0 ([e536532](https://github.com/iTowns/itowns/commit/e536532))
|
|
70
|
+
* **submodule:** use submodule for widgets. ([44cc7d0](https://github.com/iTowns/itowns/commit/44cc7d0))
|
|
71
|
+
* update packages. ([e19809f](https://github.com/iTowns/itowns/commit/e19809f))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Documentation
|
|
75
|
+
|
|
76
|
+
* **core:** Add doc for local execution ([faf58be](https://github.com/iTowns/itowns/commit/faf58be))
|
|
77
|
+
* **Widgets:** specify GlobeView support for navigation ([c209fdc](https://github.com/iTowns/itowns/commit/c209fdc))
|
|
78
|
+
* **Widgets:** specify resources needed to use widgets ([b65c081](https://github.com/iTowns/itowns/commit/b65c081))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Tests
|
|
82
|
+
|
|
83
|
+
* **Feature2Mesh:** add test to calculate the difference with and without proj4. ([1527c64](https://github.com/iTowns/itowns/commit/1527c64))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<a name="2.37.0"></a>
|
|
88
|
+
# [2.37.0](https://github.com/iTowns/itowns/compare/v2.36.2...v2.37.0) (2022-01-31)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Features
|
|
92
|
+
|
|
93
|
+
* **Geoid:** add support for geoid heights ([38569f6](https://github.com/iTowns/itowns/commit/38569f6))
|
|
94
|
+
* **Parser:** add parsers for GTX, ISG and GDF file formats ([a55b154](https://github.com/iTowns/itowns/commit/a55b154))
|
|
95
|
+
* **View:** add a method to pick world coordinates ([91ccfe3](https://github.com/iTowns/itowns/commit/91ccfe3))
|
|
96
|
+
* **View:** add support for ortho camera in getScale method ([06eb805](https://github.com/iTowns/itowns/commit/06eb805))
|
|
97
|
+
* **View:** dispatch an event when camera is moved ([37cfb90](https://github.com/iTowns/itowns/commit/37cfb90))
|
|
98
|
+
* **Widget:** add a minimap widget ([6d82c74](https://github.com/iTowns/itowns/commit/6d82c74))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
* **GlobeControl:** stop damping when launching new animation ([dad7641](https://github.com/iTowns/itowns/commit/dad7641))
|
|
104
|
+
* **test:** fetch local laz files behind proxy. ([b732c0a](https://github.com/iTowns/itowns/commit/b732c0a))
|
|
105
|
+
* **View:** fix picking radius with polygons ([b7be8e9](https://github.com/iTowns/itowns/commit/b7be8e9))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Examples
|
|
109
|
+
|
|
110
|
+
* **Compass:** add an example of a compass in a GlobeView ([3290820](https://github.com/iTowns/itowns/commit/3290820))
|
|
111
|
+
* **FileSource:** add exemples of FileSource instantiation ([7db9bcb](https://github.com/iTowns/itowns/commit/7db9bcb))
|
|
112
|
+
* **Potree:** add an example of Potree intgration within iTowns ([4bbc772](https://github.com/iTowns/itowns/commit/4bbc772))
|
|
113
|
+
* **Potree:** fix minor issues on the example ([1ee50c8](https://github.com/iTowns/itowns/commit/1ee50c8))
|
|
114
|
+
* **source / file:** simplify FileSource usage ([21317b4](https://github.com/iTowns/itowns/commit/21317b4))
|
|
115
|
+
* **Widget:** add an example of minimap widget ([2b89f83](https://github.com/iTowns/itowns/commit/2b89f83))
|
|
116
|
+
* **Widgets:** add a plugin to display widgets ([ec56fa9](https://github.com/iTowns/itowns/commit/ec56fa9))
|
|
117
|
+
* add GeoidLayer implementation example ([5df8cc5](https://github.com/iTowns/itowns/commit/5df8cc5))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Code Refactoring
|
|
121
|
+
|
|
122
|
+
* **TileMesh:** refactorize bbox update method ([18196b6](https://github.com/iTowns/itowns/commit/18196b6))
|
|
123
|
+
* **Widgets:** rename widgets to navigation ([509a042](https://github.com/iTowns/itowns/commit/509a042))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Workflow and chores
|
|
127
|
+
|
|
128
|
+
* release v2.37.0 ([97e59b6](https://github.com/iTowns/itowns/commit/97e59b6))
|
|
129
|
+
* **deps-dev:** bump marked from 4.0.8 to 4.0.10 ([cfc9100](https://github.com/iTowns/itowns/commit/cfc9100))
|
|
130
|
+
* add potree repo and symbolic link to gitignore ([d7bb92c](https://github.com/iTowns/itowns/commit/d7bb92c))
|
|
131
|
+
* change itowns.github.io deploying ([870299f](https://github.com/iTowns/itowns/commit/870299f))
|
|
132
|
+
* deploy itowns and potree bundle. ([b104fd5](https://github.com/iTowns/itowns/commit/b104fd5))
|
|
133
|
+
* fix eslint rules. ([6fff078](https://github.com/iTowns/itowns/commit/6fff078))
|
|
134
|
+
* update CONTRIBUTING.md ([96cfb21](https://github.com/iTowns/itowns/commit/96cfb21))
|
|
135
|
+
* update packages. ([eb7c8d5](https://github.com/iTowns/itowns/commit/eb7c8d5))
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
1
139
|
<a name="2.36.2"></a>
|
|
2
140
|
## [2.36.2](https://github.com/iTowns/itowns/compare/v2.36.1...v2.36.2) (2021-11-29)
|
|
3
141
|
|