itowns 2.35.0 → 2.37.0

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.
Files changed (110) hide show
  1. package/CONTRIBUTING.md +30 -17
  2. package/CONTRIBUTORS.md +1 -0
  3. package/changelog.md +146 -0
  4. package/dist/debug.js +1 -1
  5. package/dist/debug.js.LICENSE.txt +1 -1
  6. package/dist/debug.js.map +1 -1
  7. package/dist/itowns.js +1 -1
  8. package/dist/itowns.js.map +1 -1
  9. package/dist/itowns_widgets.js +2 -0
  10. package/dist/itowns_widgets.js.map +1 -0
  11. package/examples/3dtiles_basic.html +2 -2
  12. package/examples/config.json +25 -6
  13. package/examples/css/widgets.css +248 -0
  14. package/examples/geoid_geoidLayer.html +102 -0
  15. package/examples/images/compass.svg +60 -0
  16. package/examples/images/widget-logo.svg +66 -0
  17. package/examples/itowns-potree.html +252 -0
  18. package/examples/js/GUI/GuiTools.js +17 -0
  19. package/examples/js/Scale.js +1 -0
  20. package/examples/js/plugins/CSVnVRTParser.js +0 -1
  21. package/examples/layers/JSONLayers/Administrative.json +1 -1
  22. package/examples/layers/JSONLayers/Cada.json +1 -1
  23. package/examples/layers/JSONLayers/EtatMajor.json +1 -1
  24. package/examples/layers/JSONLayers/IGN_MNT.json +1 -1
  25. package/examples/layers/JSONLayers/IGN_MNT_HIGHRES.json +1 -1
  26. package/examples/layers/JSONLayers/WORLD_DTM.json +1 -1
  27. package/examples/misc_custom_label.html +0 -2
  28. package/examples/plugins_vrt.html +0 -1
  29. package/examples/source_file_from_fetched_data.html +90 -0
  30. package/examples/source_file_from_format.html +85 -0
  31. package/examples/source_file_from_methods.html +87 -0
  32. package/examples/source_file_from_parsed_data.html +104 -0
  33. package/examples/source_file_geojson_raster.html +21 -48
  34. package/examples/source_file_gpx_raster.html +28 -36
  35. package/examples/source_file_kml_raster.html +1 -4
  36. package/examples/source_file_shapefile.html +39 -35
  37. package/examples/source_stream_wfs_25d.html +29 -29
  38. package/examples/source_stream_wfs_3d.html +21 -12
  39. package/examples/source_stream_wfs_raster.html +20 -20
  40. package/examples/view_25d_map.html +28 -0
  41. package/examples/view_immersive.html +13 -14
  42. package/examples/view_multi_25d.html +1 -1
  43. package/examples/widgets_minimap.html +122 -0
  44. package/examples/widgets_navigation.html +119 -0
  45. package/lib/Controls/FirstPersonControls.js +10 -1
  46. package/lib/Controls/GlobeControls.js +26 -11
  47. package/lib/Controls/PlanarControls.js +1 -1
  48. package/lib/Converter/Feature2Mesh.js +1 -0
  49. package/lib/Converter/Feature2Texture.js +2 -2
  50. package/lib/Converter/convertToTile.js +6 -2
  51. package/lib/Core/3DTiles/C3DTBoundingVolume.js +4 -1
  52. package/lib/Core/Deprecated/Undeprecator.js +1 -1
  53. package/lib/Core/Feature.js +42 -42
  54. package/lib/Core/Geographic/Coordinates.js +56 -0
  55. package/lib/Core/Geographic/Crs.js +15 -0
  56. package/lib/Core/Geographic/Extent.js +100 -12
  57. package/lib/Core/Geographic/GeoidGrid.js +143 -0
  58. package/lib/Core/MainLoop.js +1 -1
  59. package/lib/Core/Math/Ellipsoid.js +27 -9
  60. package/lib/Core/Prefab/Globe/BuilderEllipsoidTile.js +1 -1
  61. package/lib/Core/Prefab/Globe/SkyShader.js +3 -1
  62. package/lib/Core/Prefab/Planar/PlanarLayer.js +3 -1
  63. package/lib/Core/Prefab/PlanarView.js +1 -1
  64. package/lib/Core/Style.js +2 -1
  65. package/lib/Core/TileGeometry.js +3 -1
  66. package/lib/Core/TileMesh.js +11 -16
  67. package/lib/Core/View.js +43 -5
  68. package/lib/Layer/ElevationLayer.js +15 -18
  69. package/lib/Layer/FeatureGeometryLayer.js +3 -1
  70. package/lib/Layer/GeoidLayer.js +131 -0
  71. package/lib/Layer/InfoLayer.js +1 -1
  72. package/lib/Layer/LabelLayer.js +7 -1
  73. package/lib/Layer/Layer.js +1 -1
  74. package/lib/Layer/LayerUpdateStrategy.js +1 -1
  75. package/lib/Layer/PotreeLayer.js +3 -1
  76. package/lib/Layer/TiledGeometryLayer.js +3 -1
  77. package/lib/Main.js +214 -174
  78. package/lib/MainBundle.js +1 -1
  79. package/lib/Parser/B3dmParser.js +2 -1
  80. package/lib/Parser/GDFParser.js +118 -0
  81. package/lib/Parser/GTXParser.js +92 -0
  82. package/lib/Parser/ISGParser.js +121 -0
  83. package/lib/Parser/LASParser.js +3 -1
  84. package/lib/Parser/ShapefileParser.js +0 -1
  85. package/lib/Parser/VectorTileParser.js +1 -1
  86. package/lib/Parser/XbilParser.js +1 -1
  87. package/lib/Process/3dTilesProcessing.js +10 -10
  88. package/lib/Process/FeatureProcessing.js +3 -1
  89. package/lib/Process/LayeredMaterialNodeProcessing.js +7 -4
  90. package/lib/Process/ObjectRemovalHelper.js +5 -2
  91. package/lib/Provider/URLBuilder.js +1 -1
  92. package/lib/Renderer/Label2DRenderer.js +14 -11
  93. package/lib/Renderer/LayeredMaterial.js +4 -3
  94. package/lib/Renderer/OBB.js +20 -27
  95. package/lib/Renderer/PointsMaterial.js +5 -6
  96. package/lib/Renderer/RasterTile.js +23 -5
  97. package/lib/Renderer/Shader/ShaderChunk.js +3 -3
  98. package/lib/Renderer/Shader/ShaderUtils.js +4 -2
  99. package/lib/Source/C3DTilesSource.js +3 -1
  100. package/lib/Source/EntwinePointTileSource.js +3 -1
  101. package/lib/Source/FileSource.js +2 -7
  102. package/lib/Source/PotreeSource.js +3 -1
  103. package/lib/Source/Source.js +15 -10
  104. package/lib/Source/VectorTilesSource.js +19 -0
  105. package/lib/Source/WMTSSource.js +3 -1
  106. package/lib/ThreeExtended/loaders/GLTFLoader.js +239 -98
  107. package/lib/Utils/CameraUtils.js +12 -2
  108. package/lib/Utils/DEMUtils.js +3 -3
  109. package/lib/Utils/FeaturesUtils.js +8 -4
  110. package/package.json +25 -25
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/CONTRIBUTORS.md CHANGED
@@ -10,6 +10,7 @@ The following people have contributed to iTowns 2.
10
10
  * [Grégoire Maillet](https://github.com/gmaillet)
11
11
  * [Guillaume Liégard](https://github.com/gliegard)
12
12
  * [Adrien Berthet](https://github.com/zarov)
13
+ * [Madec Germerie-Guizouarn](https://github.com/mgermerie)
13
14
 
14
15
  * [Oslandia](http://www.oslandia.com)
15
16
  * [Vincent Picavet](https://github.com/vpicavet)
package/changelog.md CHANGED
@@ -1,3 +1,149 @@
1
+ <a name="2.37.0"></a>
2
+ # [2.37.0](https://github.com/iTowns/itowns/compare/v2.36.2...v2.37.0) (2022-01-31)
3
+
4
+
5
+ ### Features
6
+
7
+ * **Geoid:** add support for geoid heights ([38569f6](https://github.com/iTowns/itowns/commit/38569f6))
8
+ * **Parser:** add parsers for GTX, ISG and GDF file formats ([a55b154](https://github.com/iTowns/itowns/commit/a55b154))
9
+ * **View:** add a method to pick world coordinates ([91ccfe3](https://github.com/iTowns/itowns/commit/91ccfe3))
10
+ * **View:** add support for ortho camera in getScale method ([06eb805](https://github.com/iTowns/itowns/commit/06eb805))
11
+ * **View:** dispatch an event when camera is moved ([37cfb90](https://github.com/iTowns/itowns/commit/37cfb90))
12
+ * **Widget:** add a minimap widget ([6d82c74](https://github.com/iTowns/itowns/commit/6d82c74))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **GlobeControl:** stop damping when launching new animation ([dad7641](https://github.com/iTowns/itowns/commit/dad7641))
18
+ * **test:** fetch local laz files behind proxy. ([b732c0a](https://github.com/iTowns/itowns/commit/b732c0a))
19
+ * **View:** fix picking radius with polygons ([b7be8e9](https://github.com/iTowns/itowns/commit/b7be8e9))
20
+
21
+
22
+ ### Examples
23
+
24
+ * **Compass:** add an example of a compass in a GlobeView ([3290820](https://github.com/iTowns/itowns/commit/3290820))
25
+ * **FileSource:** add exemples of FileSource instantiation ([7db9bcb](https://github.com/iTowns/itowns/commit/7db9bcb))
26
+ * **Potree:** add an example of Potree intgration within iTowns ([4bbc772](https://github.com/iTowns/itowns/commit/4bbc772))
27
+ * **Potree:** fix minor issues on the example ([1ee50c8](https://github.com/iTowns/itowns/commit/1ee50c8))
28
+ * **source / file:** simplify FileSource usage ([21317b4](https://github.com/iTowns/itowns/commit/21317b4))
29
+ * **Widget:** add an example of minimap widget ([2b89f83](https://github.com/iTowns/itowns/commit/2b89f83))
30
+ * **Widgets:** add a plugin to display widgets ([ec56fa9](https://github.com/iTowns/itowns/commit/ec56fa9))
31
+ * add GeoidLayer implementation example ([5df8cc5](https://github.com/iTowns/itowns/commit/5df8cc5))
32
+
33
+
34
+ ### Code Refactoring
35
+
36
+ * **TileMesh:** refactorize bbox update method ([18196b6](https://github.com/iTowns/itowns/commit/18196b6))
37
+ * **Widgets:** rename widgets to navigation ([509a042](https://github.com/iTowns/itowns/commit/509a042))
38
+
39
+
40
+ ### Workflow and chores
41
+
42
+ * release v2.37.0 ([97e59b6](https://github.com/iTowns/itowns/commit/97e59b6))
43
+ * **deps-dev:** bump marked from 4.0.8 to 4.0.10 ([cfc9100](https://github.com/iTowns/itowns/commit/cfc9100))
44
+ * add potree repo and symbolic link to gitignore ([d7bb92c](https://github.com/iTowns/itowns/commit/d7bb92c))
45
+ * change itowns.github.io deploying ([870299f](https://github.com/iTowns/itowns/commit/870299f))
46
+ * deploy itowns and potree bundle. ([b104fd5](https://github.com/iTowns/itowns/commit/b104fd5))
47
+ * fix eslint rules. ([6fff078](https://github.com/iTowns/itowns/commit/6fff078))
48
+ * update CONTRIBUTING.md ([96cfb21](https://github.com/iTowns/itowns/commit/96cfb21))
49
+ * update packages. ([eb7c8d5](https://github.com/iTowns/itowns/commit/eb7c8d5))
50
+
51
+
52
+
53
+ <a name="2.36.2"></a>
54
+ ## [2.36.2](https://github.com/iTowns/itowns/compare/v2.36.1...v2.36.2) (2021-11-29)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * **VectorTileSource:** error if vector tile layer style is undefined. ([b535583](https://github.com/iTowns/itowns/commit/b535583))
60
+
61
+
62
+ ### Code Refactoring
63
+
64
+ * **Coordinates/Extent:** rename dimension and distance methods. ([6a436ac](https://github.com/iTowns/itowns/commit/6a436ac))
65
+ * **examples:** replace geoservice keys. ([b81738c](https://github.com/iTowns/itowns/commit/b81738c))
66
+ * **Feature:** defaults buildExtent parameter to true for 2d structure ([3182075](https://github.com/iTowns/itowns/commit/3182075))
67
+
68
+
69
+ ### Workflow and chores
70
+
71
+ * release v2.36.2 ([54c2128](https://github.com/iTowns/itowns/commit/54c2128))
72
+
73
+
74
+
75
+ <a name="2.36.1"></a>
76
+ ## [2.36.1](https://github.com/iTowns/itowns/compare/v2.36.0...v2.36.1) (2021-11-22)
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * **View:** wrong calculate pick radius with distance/zoom. ([d5efa03](https://github.com/iTowns/itowns/commit/d5efa03))
82
+
83
+
84
+ ### Workflow and chores
85
+
86
+ * release v2.36.1 ([b0cf534](https://github.com/iTowns/itowns/commit/b0cf534))
87
+
88
+
89
+
90
+ <a name="2.36.0"></a>
91
+ # [2.36.0](https://github.com/iTowns/itowns/compare/v2.35.0...v2.36.0) (2021-11-18)
92
+
93
+
94
+ ### Features
95
+
96
+ * **Coordinates:** add methods to calculate distance between coordinates. ([acdf643](https://github.com/iTowns/itowns/commit/acdf643))
97
+ * **Crs:** add isGeocentric method. ([1ab76c8](https://github.com/iTowns/itowns/commit/1ab76c8))
98
+ * **Extent:** add methods to calculate extent dimensions. ([ed583d9](https://github.com/iTowns/itowns/commit/ed583d9))
99
+ * **Label:** add parameter to change labels padding property ([33f8680](https://github.com/iTowns/itowns/commit/33f8680))
100
+
101
+
102
+ ### Bug Fixes
103
+
104
+ * **ColorLayer:** fix shader when transparent is true ([1a4f44d](https://github.com/iTowns/itowns/commit/1a4f44d))
105
+ * **ElevationLayer:** scale elevation isn't updated ([26d72da](https://github.com/iTowns/itowns/commit/26d72da))
106
+ * **Ellipsoid:** wrong geodesic distance. ([4d462f2](https://github.com/iTowns/itowns/commit/4d462f2))
107
+ * **Extent:** fix wrong calculating when apply matrix. ([04abdd2](https://github.com/iTowns/itowns/commit/04abdd2))
108
+ * **Feature:** wrong altitude and altitude limits. ([4746e86](https://github.com/iTowns/itowns/commit/4746e86))
109
+ * **Feature2Mesh:** set scale transformation from FeatureCollection. ([0f5cd07](https://github.com/iTowns/itowns/commit/0f5cd07))
110
+ * **FirstPersonControls:** prevent context menu from poping ([94bfd57](https://github.com/iTowns/itowns/commit/94bfd57))
111
+ * **GlobeControls:** fix black screen when zooming outside globe ([3e0f23f](https://github.com/iTowns/itowns/commit/3e0f23f))
112
+ * **label2DRenderer:** add frustum culling in global labels culling. ([5ba4e9d](https://github.com/iTowns/itowns/commit/5ba4e9d))
113
+ * **Point/3Dtiles:** wrong geographical extent property for points cloud and 3Dtiles. ([c663ce4](https://github.com/iTowns/itowns/commit/c663ce4))
114
+ * **Style:** copy order property when copying style ([cab78ba](https://github.com/iTowns/itowns/commit/cab78ba))
115
+ * **VectorTileSource:** set style parent with style Layer ([aba0743](https://github.com/iTowns/itowns/commit/aba0743))
116
+
117
+
118
+ ### Examples
119
+
120
+ * **3dtiles_basic:** update 3dtiles sources url ([50d6733](https://github.com/iTowns/itowns/commit/50d6733))
121
+
122
+
123
+ ### Code Refactoring
124
+
125
+ * **debug:** remove id text in OBB helper. ([d033279](https://github.com/iTowns/itowns/commit/d033279))
126
+ * **examples:** add wfs labels in 2.5d examples. ([944e412](https://github.com/iTowns/itowns/commit/944e412))
127
+ * **Extent:** throw error if the projection is geocentric. ([e0048f7](https://github.com/iTowns/itowns/commit/e0048f7))
128
+ * **Extent:** use Extent.planarDimensions instead of Extent.dimensions ([023d5fa](https://github.com/iTowns/itowns/commit/023d5fa))
129
+ * **OBBHelper:** remove OBBHelper text. ([1e2fc31](https://github.com/iTowns/itowns/commit/1e2fc31))
130
+ * **TerrainMaterial:** rename fogDepth -> vFogDepth ([7d162ec](https://github.com/iTowns/itowns/commit/7d162ec))
131
+ * **View:** change label margin default. ([8c6edf5](https://github.com/iTowns/itowns/commit/8c6edf5))
132
+
133
+
134
+ ### Workflow and chores
135
+
136
+ * release v2.36.0 ([091c59b](https://github.com/iTowns/itowns/commit/091c59b))
137
+ * add contributor. ([323b046](https://github.com/iTowns/itowns/commit/323b046))
138
+ * update packages. ([ef204f9](https://github.com/iTowns/itowns/commit/ef204f9))
139
+
140
+
141
+ ### Documentation
142
+
143
+ * **Ellipsoid:** minor fix on geodesicDistance doc ([a0cd2a3](https://github.com/iTowns/itowns/commit/a0cd2a3))
144
+
145
+
146
+
1
147
  <a name="2.35.0"></a>
2
148
  # [2.35.0](https://github.com/iTowns/itowns/compare/v2.34.0...v2.35.0) (2021-09-16)
3
149