itowns 2.45.1-next.1 → 2.45.2-next.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.
- package/dist/455.js +1 -1
- package/dist/455.js.map +1 -1
- package/dist/debug.js +1 -1
- package/dist/debug.js.LICENSE.txt +8 -2
- package/dist/debug.js.map +1 -1
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.LICENSE.txt +1 -1
- package/dist/itowns.js.map +1 -1
- package/dist/itowns_lasparser.js +1 -1
- package/dist/itowns_lasparser.js.map +1 -1
- package/dist/itowns_lasworker.js +1 -1
- package/dist/itowns_lasworker.js.map +1 -1
- package/dist/itowns_potree2worker.js +1 -1
- package/dist/itowns_potree2worker.js.map +1 -1
- package/dist/itowns_widgets.js +1 -1
- package/dist/itowns_widgets.js.map +1 -1
- package/examples/copc_simple_loader.html +3 -3
- package/examples/entwine_3d_loader.html +2 -2
- package/examples/entwine_simple_loader.html +10 -6
- package/examples/view_3d_map_webxr.html +2 -5
- package/lib/Controls/FirstPersonControls.d.ts +90 -0
- package/lib/Controls/FlyControls.d.ts +36 -0
- package/lib/Controls/GlobeControls.d.ts +274 -0
- package/lib/Controls/PlanarControls.d.ts +339 -0
- package/lib/Controls/StateControl.d.ts +140 -0
- package/lib/Controls/StreetControls.d.ts +134 -0
- package/lib/Controls/VRControls.d.ts +56 -0
- package/lib/Controls/VRControls.js +409 -0
- package/lib/Converter/Feature2Mesh.d.ts +42 -0
- package/lib/Converter/Feature2Texture.d.ts +5 -0
- package/lib/Converter/convertToTile.d.ts +5 -0
- package/lib/Converter/convertToTile.js +2 -2
- package/lib/Converter/textureConverter.d.ts +4 -0
- package/lib/Core/3DTiles/C3DTBatchTable.d.ts +49 -0
- package/lib/Core/3DTiles/C3DTBatchTableHierarchyExtension.d.ts +37 -0
- package/lib/Core/3DTiles/C3DTBoundingVolume.d.ts +39 -0
- package/lib/Core/3DTiles/C3DTExtensions.d.ts +75 -0
- package/lib/Core/3DTiles/C3DTFeature.d.ts +47 -0
- package/lib/Core/3DTiles/C3DTilesEnums.d.ts +14 -0
- package/lib/Core/3DTiles/C3DTileset.d.ts +46 -0
- package/lib/Core/3DTiles/utils/BinaryPropertyAccessor.d.ts +14 -0
- package/lib/Core/AnimationPlayer.d.ts +53 -0
- package/lib/Core/CopcNode.d.ts +67 -0
- package/lib/Core/CopcNode.js +50 -69
- package/lib/Core/Deprecated/Undeprecator.d.ts +6 -0
- package/lib/Core/EntwinePointTileNode.d.ts +58 -0
- package/lib/Core/EntwinePointTileNode.js +6 -34
- package/lib/Core/Feature.d.ts +323 -0
- package/lib/Core/Geographic/GeoidGrid.d.ts +86 -0
- package/lib/Core/Label.d.ts +86 -0
- package/lib/Core/MainLoop.d.ts +23 -0
- package/lib/Core/Picking.d.ts +6 -0
- package/lib/Core/Picking.js +4 -0
- package/lib/Core/PointCloudNode.d.ts +14 -0
- package/lib/Core/PointCloudNode.js +28 -0
- package/lib/Core/Potree2Node.d.ts +11 -0
- package/lib/Core/Potree2Node.js +3 -57
- package/lib/Core/Potree2PointAttributes.d.ts +97 -0
- package/lib/Core/PotreeNode.d.ts +13 -0
- package/lib/Core/PotreeNode.js +17 -17
- package/lib/Core/Prefab/Globe/Atmosphere.d.ts +66 -0
- package/lib/Core/Prefab/Globe/Atmosphere.js +10 -5
- package/lib/Core/Prefab/Globe/GlobeLayer.d.ts +48 -0
- package/lib/Core/Prefab/Globe/GlobeTileBuilder.d.ts +38 -0
- package/lib/Core/Prefab/Globe/SkyShader.d.ts +5 -0
- package/lib/Core/Prefab/Globe/SkyShader.js +3 -3
- package/lib/Core/Prefab/GlobeView.d.ts +65 -0
- package/lib/Core/Prefab/GlobeView.js +9 -0
- package/lib/Core/Prefab/Planar/PlanarLayer.d.ts +38 -0
- package/lib/Core/Prefab/Planar/PlanarTileBuilder.d.ts +32 -0
- package/lib/Core/Prefab/PlanarView.d.ts +33 -0
- package/lib/Core/Prefab/TileBuilder.d.ts +63 -0
- package/lib/Core/Prefab/computeBufferTileGeometry.d.ts +17 -0
- package/lib/Core/Scheduler/Cache.d.ts +25 -0
- package/lib/Core/Scheduler/CancelledCommandException.d.ts +12 -0
- package/lib/Core/Scheduler/Scheduler.d.ts +106 -0
- package/lib/Core/Style.d.ts +248 -0
- package/lib/Core/StyleOptions.d.ts +455 -0
- package/lib/Core/System/Capabilities.d.ts +9 -0
- package/lib/Core/Tile/Tile.d.ts +70 -0
- package/lib/Core/Tile/TileGrid.d.ts +12 -0
- package/lib/Core/TileGeometry.d.ts +46 -0
- package/lib/Core/TileMesh.d.ts +50 -0
- package/lib/Core/TileMesh.js +2 -4
- package/lib/Core/View.d.ts +403 -0
- package/lib/Core/View.js +1 -7
- package/lib/Layer/C3DTilesLayer.d.ts +140 -0
- package/lib/Layer/ColorLayer.d.ts +128 -0
- package/lib/Layer/ColorLayer.js +4 -4
- package/lib/Layer/CopcLayer.d.ts +42 -0
- package/lib/Layer/CopcLayer.js +3 -6
- package/lib/Layer/ElevationLayer.d.ts +96 -0
- package/lib/Layer/ElevationLayer.js +3 -3
- package/lib/Layer/EntwinePointTileLayer.d.ts +56 -0
- package/lib/Layer/EntwinePointTileLayer.js +4 -3
- package/lib/Layer/FeatureGeometryLayer.d.ts +62 -0
- package/lib/Layer/GeoidLayer.d.ts +41 -0
- package/lib/Layer/GeometryLayer.d.ts +120 -0
- package/lib/Layer/InfoLayer.d.ts +24 -0
- package/lib/Layer/InfoLayer.js +1 -1
- package/lib/Layer/LabelLayer.d.ts +93 -0
- package/lib/Layer/LabelLayer.js +2 -2
- package/lib/Layer/Layer.d.ts +185 -0
- package/lib/Layer/LayerUpdateState.d.ts +24 -0
- package/lib/Layer/LayerUpdateStrategy.d.ts +11 -0
- package/lib/Layer/LayerUpdateStrategy.js +2 -7
- package/lib/Layer/OGC3DTilesLayer.d.ts +277 -0
- package/lib/Layer/OGC3DTilesLayer.js +21 -0
- package/lib/Layer/OrientedImageLayer.d.ts +53 -0
- package/lib/Layer/PointCloudLayer.d.ts +103 -0
- package/lib/Layer/PointCloudLayer.js +1 -1
- package/lib/Layer/Potree2Layer.d.ts +56 -0
- package/lib/Layer/PotreeLayer.d.ts +55 -0
- package/lib/Layer/RasterLayer.d.ts +8 -0
- package/lib/Layer/RasterLayer.js +2 -2
- package/lib/Layer/ReferencingLayerProperties.d.ts +2 -0
- package/lib/Layer/ReferencingLayerProperties.js +0 -12
- package/lib/Layer/TiledGeometryLayer.d.ts +192 -0
- package/lib/Layer/TiledGeometryLayer.js +4 -3
- package/lib/Main.d.ts +89 -0
- package/lib/Main.js +3 -1
- package/lib/Parser/B3dmParser.d.ts +26 -0
- package/lib/Parser/CameraCalibrationParser.d.ts +32 -0
- package/lib/Parser/GDFParser.d.ts +24 -0
- package/lib/Parser/GTXParser.d.ts +28 -0
- package/lib/Parser/GeoJsonParser.d.ts +12 -0
- package/lib/Parser/GpxParser.d.ts +12 -0
- package/lib/Parser/ISGParser.d.ts +23 -0
- package/lib/Parser/KMLParser.d.ts +12 -0
- package/lib/Parser/LASParser.d.ts +61 -0
- package/lib/Parser/MapBoxUrlParser.d.ts +9 -0
- package/lib/Parser/PntsParser.d.ts +4 -0
- package/lib/Parser/Potree2BinParser.d.ts +8 -0
- package/lib/Parser/PotreeBinParser.d.ts +4 -0
- package/lib/Parser/PotreeCinParser.d.ts +4 -0
- package/lib/Parser/ShapefileParser.d.ts +25 -0
- package/lib/Parser/VectorTileParser.d.ts +34 -0
- package/lib/Parser/XbilParser.d.ts +18 -0
- package/lib/Parser/deprecated/LegacyGLTFLoader.d.ts +32 -0
- package/lib/Parser/iGLTFLoader.d.ts +104 -0
- package/lib/Process/3dTilesProcessing.d.ts +43 -0
- package/lib/Process/FeatureProcessing.d.ts +4 -0
- package/lib/Process/LayeredMaterialNodeProcessing.d.ts +3 -0
- package/lib/Process/LayeredMaterialNodeProcessing.js +12 -12
- package/lib/Process/ObjectRemovalHelper.d.ts +32 -0
- package/lib/Process/handlerNodeError.d.ts +1 -0
- package/lib/Provider/3dTilesProvider.d.ts +7 -0
- package/lib/Provider/DataSourceProvider.d.ts +4 -0
- package/lib/Provider/Fetcher.d.ts +101 -0
- package/lib/Provider/PointCloudProvider.d.ts +4 -0
- package/lib/Provider/TileProvider.d.ts +4 -0
- package/lib/Provider/URLBuilder.d.ts +28 -0
- package/lib/Renderer/Camera.d.ts +95 -0
- package/lib/Renderer/Color.d.ts +3 -0
- package/lib/Renderer/ColorLayersOrdering.d.ts +38 -0
- package/lib/Renderer/ColorLayersOrdering.js +2 -2
- package/lib/Renderer/CommonMaterial.d.ts +6 -0
- package/lib/Renderer/Label2DRenderer.d.ts +31 -0
- package/lib/Renderer/LayeredMaterial.d.ts +121 -0
- package/lib/Renderer/LayeredMaterial.js +221 -141
- package/lib/Renderer/OBB.d.ts +65 -0
- package/lib/Renderer/OrientedImageCamera.d.ts +36 -0
- package/lib/Renderer/OrientedImageMaterial.d.ts +68 -0
- package/lib/Renderer/PointsMaterial.d.ts +226 -0
- package/lib/Renderer/PointsMaterial.js +60 -22
- package/lib/Renderer/RasterTile.d.ts +53 -0
- package/lib/Renderer/RasterTile.js +8 -9
- package/lib/Renderer/RenderMode.d.ts +11 -0
- package/lib/Renderer/RenderMode.js +1 -0
- package/lib/Renderer/Shader/ShaderChunk.d.ts +78 -0
- package/lib/Renderer/Shader/ShaderUtils.d.ts +5 -0
- package/lib/Renderer/WebXR.d.ts +33 -0
- package/lib/Renderer/WebXR.js +128 -47
- package/lib/Renderer/c3DEngine.d.ts +55 -0
- package/lib/Renderer/c3DEngine.js +5 -1
- package/lib/Source/C3DTilesGoogleSource.d.ts +38 -0
- package/lib/Source/C3DTilesIonSource.d.ts +31 -0
- package/lib/Source/C3DTilesSource.d.ts +17 -0
- package/lib/Source/CopcSource.d.ts +79 -0
- package/lib/Source/EntwinePointTileSource.d.ts +40 -0
- package/lib/Source/EntwinePointTileSource.js +0 -5
- package/lib/Source/FileSource.d.ts +118 -0
- package/lib/Source/OGC3DTilesGoogleSource.d.ts +24 -0
- package/lib/Source/OGC3DTilesIonSource.d.ts +26 -0
- package/lib/Source/OGC3DTilesSource.d.ts +21 -0
- package/lib/Source/OrientedImageSource.d.ts +48 -0
- package/lib/Source/Potree2Source.d.ts +157 -0
- package/lib/Source/PotreeSource.d.ts +69 -0
- package/lib/Source/Source.d.ts +122 -0
- package/lib/Source/TMSSource.d.ts +77 -0
- package/lib/Source/VectorTilesSource.d.ts +56 -0
- package/lib/Source/WFSSource.d.ts +110 -0
- package/lib/Source/WMSSource.d.ts +85 -0
- package/lib/Source/WMTSSource.d.ts +65 -0
- package/lib/ThreeExtended/capabilities/WebGL.d.ts +9 -0
- package/lib/ThreeExtended/libs/ktx-parse.module.d.ts +274 -0
- package/lib/ThreeExtended/libs/motion-controllers.module.d.ts +64 -0
- package/lib/ThreeExtended/libs/motion-controllers.module.js +375 -0
- package/lib/ThreeExtended/libs/zstddec.module.d.ts +6 -0
- package/lib/ThreeExtended/loaders/DDSLoader.js +40 -1
- package/lib/ThreeExtended/loaders/DRACOLoader.d.ts +41 -0
- package/lib/ThreeExtended/loaders/GLTFLoader.d.ts +16 -0
- package/lib/ThreeExtended/loaders/GLTFLoader.js +22 -3
- package/lib/ThreeExtended/loaders/KTX2Loader.d.ts +116 -0
- package/lib/ThreeExtended/loaders/KTX2Loader.js +9 -2
- package/lib/ThreeExtended/math/ColorSpaces.d.ts +56 -0
- package/lib/ThreeExtended/utils/BufferGeometryUtils.d.ts +62 -0
- package/lib/ThreeExtended/utils/BufferGeometryUtils.js +2 -2
- package/lib/ThreeExtended/utils/WorkerPool.d.ts +19 -0
- package/lib/ThreeExtended/webxr/XRControllerModelFactory.d.ts +25 -0
- package/lib/ThreeExtended/webxr/XRControllerModelFactory.js +209 -0
- package/lib/Utils/CameraUtils.d.ts +132 -0
- package/lib/Utils/DEMUtils.d.ts +84 -0
- package/lib/Utils/DEMUtils.js +2 -2
- package/lib/Utils/FeaturesUtils.d.ts +17 -0
- package/lib/Utils/Gradients.d.ts +13 -0
- package/lib/Utils/ThreeUtils.d.ts +14 -0
- package/lib/Utils/placeObjectOnGround.d.ts +28 -0
- package/lib/global.d.js +0 -0
- package/package.json +18 -15
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export default OrientedImageSource;
|
|
2
|
+
/**
|
|
3
|
+
* OrientedImageSource is a specific source used to load oriented images.
|
|
4
|
+
* @extends Source
|
|
5
|
+
*/
|
|
6
|
+
declare class OrientedImageSource extends Source {
|
|
7
|
+
/**
|
|
8
|
+
* @param { Object } source - Configuration object
|
|
9
|
+
* @param { string } source.url - Url for all the textures.
|
|
10
|
+
* @param { string } source.orientationsUrl - Json Url, using GeoJSon format to represent points,
|
|
11
|
+
* it's a set of panoramic position and orientation.
|
|
12
|
+
* @param { string } source.calibrationUrl - Json url, representing a set of camera.
|
|
13
|
+
* see {@link CameraCalibrationParser}
|
|
14
|
+
* This Url must contains {sensorId} and {cameraId}, and these pattern will be replaced to build the Url,
|
|
15
|
+
* to find the good texture for each camera for each panoramic.
|
|
16
|
+
*/
|
|
17
|
+
constructor(source: {
|
|
18
|
+
url: string;
|
|
19
|
+
orientationsUrl: string;
|
|
20
|
+
calibrationUrl: string;
|
|
21
|
+
});
|
|
22
|
+
isOrientedImageSource: boolean;
|
|
23
|
+
whenReady: Promise<{
|
|
24
|
+
orientation: void | Object;
|
|
25
|
+
calibration: void | Object;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Build the url of the texture, but not from extent.
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} imageInfo - Information about the texture
|
|
31
|
+
* @param {string} imageInfo.camera - Id of the camera
|
|
32
|
+
* @param {string} imageInfo.pano - Id of the panoramic
|
|
33
|
+
* @return {string} Url of the image
|
|
34
|
+
*/
|
|
35
|
+
urlFromExtent(imageInfo: {
|
|
36
|
+
camera: string;
|
|
37
|
+
pano: string;
|
|
38
|
+
}): string;
|
|
39
|
+
/**
|
|
40
|
+
* Build the url of the image, for a given panoramic id, and a given camera id.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} cameraId Id of the camera
|
|
43
|
+
* @param {string} panoId Id of the panoramic
|
|
44
|
+
* @return {string} Url of the image
|
|
45
|
+
*/
|
|
46
|
+
imageUrl(cameraId: string, panoId: string): string;
|
|
47
|
+
}
|
|
48
|
+
import Source from '../Source/Source';
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export default Potree2Source;
|
|
2
|
+
/**
|
|
3
|
+
* Potree2Source are object containing informations on how to fetch potree 2.0 points cloud resources.
|
|
4
|
+
*/
|
|
5
|
+
declare class Potree2Source extends Source {
|
|
6
|
+
/**
|
|
7
|
+
* @param {Object} source - An object that can contain all properties of a
|
|
8
|
+
* Potree2Source
|
|
9
|
+
* @param {string} source.url - folder url.
|
|
10
|
+
* @param {string} source.file - metadata file name.
|
|
11
|
+
*
|
|
12
|
+
* This `metadata` file stores information about the potree cloud 2.0 in JSON format. the structure is :
|
|
13
|
+
*
|
|
14
|
+
* * __`version`__ - The metadata.json format may change over time. The version number is
|
|
15
|
+
* necessary so that parsers know how to interpret the data.
|
|
16
|
+
* * __`name`__ - Point cloud name.
|
|
17
|
+
* * __`description`__ - Point cloud description.
|
|
18
|
+
* * __`points`__ - Total number of points.
|
|
19
|
+
* * __`projection`__ - Point cloud geographic projection system.
|
|
20
|
+
* * __`hierarchy`__ - Information about point cloud hierarchy (first chunk size, step size, octree depth).
|
|
21
|
+
* * __`offset`__ - Position offset used to determine the global point position.
|
|
22
|
+
* * __`scale`__ - Point cloud scale.
|
|
23
|
+
* * __`spacing`__ - The minimum distance between points at root level.
|
|
24
|
+
* * __`boundingBox`__ - Contains the minimum and maximum of the axis aligned bounding box. This bounding box is cubic and aligned to fit to the octree root.
|
|
25
|
+
* * __`encoding`__ - Encoding type: BROTLI or DEFAULT (uncompressed).
|
|
26
|
+
* * __`attributes`__ - Array of attributes (position, intensity, return number, number of returns, classification, scan angle rank, user data, point source id, gps-time, rgb).
|
|
27
|
+
* ```
|
|
28
|
+
* {
|
|
29
|
+
* version: '2.0',
|
|
30
|
+
* name: "sample",
|
|
31
|
+
* description: "",
|
|
32
|
+
* points: 534909153,
|
|
33
|
+
* projection: "",
|
|
34
|
+
* hierarchy: {
|
|
35
|
+
* firstChunkSize: 1276,
|
|
36
|
+
* stepSize: 4,
|
|
37
|
+
* depth: 16
|
|
38
|
+
* },
|
|
39
|
+
* offset: [1339072.07, 7238866.339, 85.281],
|
|
40
|
+
* scale: [0.001, 0.001, 0.002],
|
|
41
|
+
* spacing: 24.476062500005355,
|
|
42
|
+
* boundingBox: {
|
|
43
|
+
* min: [1339072.07, 7238866.339, 85.281],
|
|
44
|
+
* max: [1342205.0060000008, 7241999.275, 3218.2170000006854]
|
|
45
|
+
* },
|
|
46
|
+
* encoding: "BROTLI",
|
|
47
|
+
* attributes: [
|
|
48
|
+
* {
|
|
49
|
+
* name: "position",
|
|
50
|
+
* description: "",
|
|
51
|
+
* size: 12,
|
|
52
|
+
* numElements: 3,
|
|
53
|
+
* elementSize: 4,
|
|
54
|
+
* type: "int32",
|
|
55
|
+
* min: [-0.74821299314498901, -2.7804059982299805, 2.5478212833404541],
|
|
56
|
+
* max: [2.4514148223438199, 1.4893437627414672, 7.1957106576508663]
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* name: "intensity",
|
|
60
|
+
* description: "",
|
|
61
|
+
* size: 2,
|
|
62
|
+
* numElements: 1,
|
|
63
|
+
* elementSize: 2,
|
|
64
|
+
* type: "uint16",
|
|
65
|
+
* min: [0],
|
|
66
|
+
* max: [0]
|
|
67
|
+
* },{
|
|
68
|
+
* name: "return number",
|
|
69
|
+
* description: "",
|
|
70
|
+
* size: 1,
|
|
71
|
+
* numElements: 1,
|
|
72
|
+
* elementSize: 1,
|
|
73
|
+
* type: "uint8",
|
|
74
|
+
* min: [0],
|
|
75
|
+
* max: [0]
|
|
76
|
+
* },{
|
|
77
|
+
* name: "number of returns",
|
|
78
|
+
* description: "",
|
|
79
|
+
* size: 1,
|
|
80
|
+
* numElements: 1,
|
|
81
|
+
* elementSize: 1,
|
|
82
|
+
* type: "uint8",
|
|
83
|
+
* min: [0],
|
|
84
|
+
* max: [0]
|
|
85
|
+
* },{
|
|
86
|
+
* name: "classification",
|
|
87
|
+
* description: "",
|
|
88
|
+
* size: 1,
|
|
89
|
+
* numElements: 1,
|
|
90
|
+
* elementSize: 1,
|
|
91
|
+
* type: "uint8",
|
|
92
|
+
* min: [0],
|
|
93
|
+
* max: [0]
|
|
94
|
+
* },{
|
|
95
|
+
* name: "scan angle rank",
|
|
96
|
+
* description: "",
|
|
97
|
+
* size: 1,
|
|
98
|
+
* numElements: 1,
|
|
99
|
+
* elementSize: 1,
|
|
100
|
+
* type: "uint8",
|
|
101
|
+
* min: [0],
|
|
102
|
+
* max: [0]
|
|
103
|
+
* },{
|
|
104
|
+
* name: "user data",
|
|
105
|
+
* description: "",
|
|
106
|
+
* size: 1,
|
|
107
|
+
* numElements: 1,
|
|
108
|
+
* elementSize: 1,
|
|
109
|
+
* type: "uint8",
|
|
110
|
+
* min: [0],
|
|
111
|
+
* max: [0]
|
|
112
|
+
* },{
|
|
113
|
+
* name: "point source id",
|
|
114
|
+
* description: "",
|
|
115
|
+
* size: 2,
|
|
116
|
+
* numElements: 1,
|
|
117
|
+
* elementSize: 2,
|
|
118
|
+
* type: "uint16",
|
|
119
|
+
* min: [0],
|
|
120
|
+
* max: [0]
|
|
121
|
+
* },{
|
|
122
|
+
* name: "gps-time",
|
|
123
|
+
* description: "",
|
|
124
|
+
* size: 8,
|
|
125
|
+
* numElements: 1,
|
|
126
|
+
* elementSize: 8,
|
|
127
|
+
* type: "double",
|
|
128
|
+
* min: [0],
|
|
129
|
+
* max: [0]
|
|
130
|
+
* },{
|
|
131
|
+
* name: "rgb",
|
|
132
|
+
* description: "",
|
|
133
|
+
* size: 6,
|
|
134
|
+
* numElements: 3,
|
|
135
|
+
* elementSize: 2,
|
|
136
|
+
* type: "uint16",
|
|
137
|
+
* min: [5632, 5376, 4864],
|
|
138
|
+
* max: [65280, 65280, 65280]
|
|
139
|
+
* }
|
|
140
|
+
* ]
|
|
141
|
+
* }
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @extends Source
|
|
145
|
+
*/
|
|
146
|
+
constructor(source: {
|
|
147
|
+
url: string;
|
|
148
|
+
file: string;
|
|
149
|
+
});
|
|
150
|
+
file: string;
|
|
151
|
+
fetcher: (url: any, options?: {}) => Promise<ArrayBuffer>;
|
|
152
|
+
metadata: any;
|
|
153
|
+
pointAttributes: any;
|
|
154
|
+
baseurl: string;
|
|
155
|
+
extension: string;
|
|
156
|
+
}
|
|
157
|
+
import Source from '../Source/Source';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export default PotreeSource;
|
|
2
|
+
/**
|
|
3
|
+
* PotreeSource are object containing informations on how to fetch points cloud resources.
|
|
4
|
+
*/
|
|
5
|
+
declare class PotreeSource extends Source {
|
|
6
|
+
/**
|
|
7
|
+
* @param {Object} source - An object that can contain all properties of a
|
|
8
|
+
* PotreeSource
|
|
9
|
+
* @param {string} source.url - folder url.
|
|
10
|
+
* @param {string} source.file - cloud file name.
|
|
11
|
+
*
|
|
12
|
+
* This `cloud` file stores information about the potree cloud in JSON format. the structure is :
|
|
13
|
+
*
|
|
14
|
+
* * __`version`__ - The cloud.js format may change over time. The version number is
|
|
15
|
+
* necessary so that parsers know how to interpret the data.
|
|
16
|
+
* * __`octreeDir`__ - Directory or URL where node data is stored. Usually points to
|
|
17
|
+
* "data".
|
|
18
|
+
* * __`boundingBox`__ - Contains the minimum and maximum of the axis aligned bounding box. This bounding box is cubic and aligned to fit to the octree root.
|
|
19
|
+
* * __`tightBoundingBox`__ - This bounding box thightly fits the point data.
|
|
20
|
+
* * __`pointAttributes`__ - Declares the point data format. May be 'LAS', 'LAZ' or in case if the BINARY format an array of attributes like
|
|
21
|
+
* `['POSITION_CARTESIAN', 'COLOR_PACKED', 'INTENSITY']`
|
|
22
|
+
* * __`POSITION_CARTESIAN`__ - 3 x 32bit signed integers for x/y/z coordinates
|
|
23
|
+
* * __`COLOR_PACKED`__ - 4 x unsigned byte for r,g,b,a colors.
|
|
24
|
+
* * __`spacing`__ - The minimum distance between points at root level.
|
|
25
|
+
* ```
|
|
26
|
+
* {
|
|
27
|
+
* version: '1.6',
|
|
28
|
+
* octreeDir: 'data',
|
|
29
|
+
* boundingBox: {
|
|
30
|
+
* lx: -4.9854,
|
|
31
|
+
* ly: 1.0366,
|
|
32
|
+
* lz: -3.4494,
|
|
33
|
+
* ux: 0.702300000000001,
|
|
34
|
+
* uy: 6.7243,
|
|
35
|
+
* uz: 2.2383
|
|
36
|
+
* },
|
|
37
|
+
* tightBoundingBox: {
|
|
38
|
+
* lx: -4.9854,
|
|
39
|
+
* ly: 1.0375,
|
|
40
|
+
* lz: -3.4494,
|
|
41
|
+
* ux: -0.7889,
|
|
42
|
+
* uy: 6.7243,
|
|
43
|
+
* uz: 1.1245
|
|
44
|
+
* },
|
|
45
|
+
* pointAttributes: [
|
|
46
|
+
* 'POSITION_CARTESIAN',
|
|
47
|
+
* 'COLOR_PACKED'
|
|
48
|
+
* ],
|
|
49
|
+
* spacing: 0.03,
|
|
50
|
+
* scale: 0.001,
|
|
51
|
+
* hierarchyStepSize: 5
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @extends Source
|
|
56
|
+
*/
|
|
57
|
+
constructor(source: {
|
|
58
|
+
url: string;
|
|
59
|
+
file: string;
|
|
60
|
+
});
|
|
61
|
+
file: string;
|
|
62
|
+
fetcher: (url: any, options?: {}) => Promise<ArrayBuffer>;
|
|
63
|
+
extensionOctree: string;
|
|
64
|
+
pointAttributes: any;
|
|
65
|
+
baseurl: string;
|
|
66
|
+
extension: string;
|
|
67
|
+
parse: (buffer: ArrayBuffer, options: Object) => Promise<any>;
|
|
68
|
+
}
|
|
69
|
+
import Source from '../Source/Source';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/** @private */
|
|
2
|
+
export const supportedParsers: Map<string, (json: string, options?: ParsingOptions) => Promise<any>>;
|
|
3
|
+
export default Source;
|
|
4
|
+
/**
|
|
5
|
+
* This interface describes parsing options.
|
|
6
|
+
*/
|
|
7
|
+
export type ParsingOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* - data informations contained in the file.
|
|
10
|
+
*/
|
|
11
|
+
in: Source;
|
|
12
|
+
/**
|
|
13
|
+
* - options indicates how the features should be built.
|
|
14
|
+
*/
|
|
15
|
+
out: FeatureBuildingOptions | Layer;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Sources are object containing informations on how to fetch resources, from a
|
|
19
|
+
* set source.
|
|
20
|
+
*
|
|
21
|
+
* To extend a Source, it is necessary to implement two functions:
|
|
22
|
+
* `urlFromExtent` and `extentInsideLimit`.
|
|
23
|
+
*
|
|
24
|
+
* @extends InformationsData
|
|
25
|
+
*
|
|
26
|
+
* @property {boolean} isSource - Used to checkout whether this source is a
|
|
27
|
+
* Source. Default is true. You should not change this, as it is used internally
|
|
28
|
+
* for optimisation.
|
|
29
|
+
* @property {number} uid - Unique uid mainly used to store data linked to this
|
|
30
|
+
* source into Cache.
|
|
31
|
+
* @property {string} url - The url of the resources that are fetched.
|
|
32
|
+
* @property {string} format - The format of the resources that are fetched.
|
|
33
|
+
* @property {function} fetcher - The method used to fetch the resources from
|
|
34
|
+
* the source. iTowns provides some methods in {@link Fetcher}, but it can be
|
|
35
|
+
* specified a custom one. This method should return a `Promise` containing the
|
|
36
|
+
* fetched resource. If this property is set, it overrides the chosen fetcher
|
|
37
|
+
* method with `format`.
|
|
38
|
+
* @property {Object} networkOptions - Fetch options (passed directly to
|
|
39
|
+
* `fetch()`), see [the syntax for more information](
|
|
40
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Syntax).
|
|
41
|
+
* By default, set to `{ crossOrigin: 'anonymous' }`.
|
|
42
|
+
* @property {string} crs - The crs projection of the resources.
|
|
43
|
+
* @property {string} attribution - The intellectual property rights for the
|
|
44
|
+
* resources.
|
|
45
|
+
* @property {Extent} extent - The extent of the resources.
|
|
46
|
+
* @property {function} parser - The method used to parse the resources attached
|
|
47
|
+
* to the layer. iTowns provides some parsers, visible in the `Parser/` folder.
|
|
48
|
+
* If the method is custom, it should return a `Promise` containing the parsed
|
|
49
|
+
* resource. If this property is set, it overrides the default selected parser
|
|
50
|
+
* method with `source.format`. If `source.format` is also empty, no parsing
|
|
51
|
+
* action is done.
|
|
52
|
+
* <br><br>
|
|
53
|
+
* When calling this method, two parameters are passed:
|
|
54
|
+
* <ul>
|
|
55
|
+
* <li>the fetched data, i.e. the data to parse</li>
|
|
56
|
+
* <li>an {@link ParsingOptions} containing severals properties, set when this method is
|
|
57
|
+
* called: it is specific to each call, so the value of each property can vary
|
|
58
|
+
* depending on the current fetched tile for example</li>
|
|
59
|
+
* </ul>
|
|
60
|
+
*/
|
|
61
|
+
declare class Source {
|
|
62
|
+
/**
|
|
63
|
+
* @param {Object} source - An object that can contain all properties of a
|
|
64
|
+
* Source. Only the `url` property is mandatory.
|
|
65
|
+
*/
|
|
66
|
+
constructor(source: Object);
|
|
67
|
+
crs: any;
|
|
68
|
+
isSource: boolean;
|
|
69
|
+
uid: number;
|
|
70
|
+
url: any;
|
|
71
|
+
format: any;
|
|
72
|
+
fetcher: any;
|
|
73
|
+
parser: any;
|
|
74
|
+
isVectorSource: boolean;
|
|
75
|
+
networkOptions: any;
|
|
76
|
+
attribution: any;
|
|
77
|
+
/** @type {Promise<any>} */
|
|
78
|
+
whenReady: Promise<any>;
|
|
79
|
+
_featuresCaches: {};
|
|
80
|
+
extent: any;
|
|
81
|
+
handlingError(err: any): void;
|
|
82
|
+
/**
|
|
83
|
+
* Generates an url from an extent. This url is a link to fetch the
|
|
84
|
+
* resources inside the extent.
|
|
85
|
+
*
|
|
86
|
+
* @param {Extent} extent - Extent to convert in url.
|
|
87
|
+
|
|
88
|
+
* @return {string} The URL constructed from the extent.
|
|
89
|
+
*/
|
|
90
|
+
urlFromExtent(extent: Extent): string;
|
|
91
|
+
getDataKey(extent: any): string;
|
|
92
|
+
/**
|
|
93
|
+
* Load data from cache or Fetch/Parse data.
|
|
94
|
+
* The loaded data is a Feature or Texture.
|
|
95
|
+
*
|
|
96
|
+
* @param {Extent} extent extent requested parsed data.
|
|
97
|
+
* @param {FeatureBuildingOptions|Layer} out The feature returned options
|
|
98
|
+
* @return {FeatureCollection|Texture} The parsed data.
|
|
99
|
+
*/
|
|
100
|
+
loadData(extent: Extent, out: FeatureBuildingOptions | Layer): FeatureCollection | Texture;
|
|
101
|
+
/**
|
|
102
|
+
* Called when layer added.
|
|
103
|
+
*
|
|
104
|
+
* @param {object} options
|
|
105
|
+
*/
|
|
106
|
+
onLayerAdded(options: object): void;
|
|
107
|
+
/**
|
|
108
|
+
* Called when layer removed.
|
|
109
|
+
*
|
|
110
|
+
* @param {options} [options={}] options
|
|
111
|
+
*/
|
|
112
|
+
onLayerRemoved(options?: any): void;
|
|
113
|
+
/**
|
|
114
|
+
* Tests if an extent is inside the source limits.
|
|
115
|
+
*
|
|
116
|
+
* @param {Extent} extent - Extent to test.
|
|
117
|
+
|
|
118
|
+
* @return {boolean} True if the extent is inside the limit, false otherwise.
|
|
119
|
+
*/
|
|
120
|
+
extentInsideLimit(extent: Extent): boolean;
|
|
121
|
+
}
|
|
122
|
+
import { Extent } from '@itowns/geographic';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export default TMSSource;
|
|
2
|
+
/**
|
|
3
|
+
* An object defining the source of resources to get from a
|
|
4
|
+
* [TMS](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification) server.
|
|
5
|
+
* It inherits from {@link Source}.
|
|
6
|
+
*
|
|
7
|
+
* @extends Source
|
|
8
|
+
*
|
|
9
|
+
* @property {boolean} isTMSSource - Used to checkout whether this source is a
|
|
10
|
+
* TMSSource. Default is true. You should not change this, as it is used
|
|
11
|
+
* internally for optimisation.
|
|
12
|
+
* @property {boolean} isInverted - The isInverted property is to be set to the
|
|
13
|
+
* correct value, true or false (default being false) if the computation of the
|
|
14
|
+
* coordinates needs to be inverted to match the same scheme as OSM, Google Maps
|
|
15
|
+
* or other system. See [this link](
|
|
16
|
+
* https://alastaira.wordpress.com/2011/07/06/converting-tms-tile-coordinates-to-googlebingosm-tile-coordinates/)
|
|
17
|
+
* for more information.
|
|
18
|
+
* @property {Object} tileMatrixSetLimits - it describes the available tile for this layer
|
|
19
|
+
* @property {Object} extentSetlimits - these are the extents of the set of identical zoom tiles.
|
|
20
|
+
* @property {Object} zoom - Object containing the minimum and maximum values of
|
|
21
|
+
* the level, to zoom in the source.
|
|
22
|
+
* @property {number} zoom.min - The minimum level of the source. Default value
|
|
23
|
+
* is 0.
|
|
24
|
+
* @property {number} zoom.max - The maximum level of the source. Default value
|
|
25
|
+
* is 20.
|
|
26
|
+
* @property {function} tileMatrixCallback - a method that create a TileMatrix
|
|
27
|
+
* identifier from the zoom level. For example, if set to `(zoomLevel) => 'EPSG:4326:' + zoomLevel`,
|
|
28
|
+
* the TileMatrix that will be fetched at zoom level 5 will be the one with identifier `EPSG:4326:5`.
|
|
29
|
+
* By default, the method returns the input zoom level.
|
|
30
|
+
*
|
|
31
|
+
* @example <caption><b>Source from OpenStreetMap server :</b></caption>
|
|
32
|
+
* // Create the source
|
|
33
|
+
* const tmsSource = new itowns.TMSSource({
|
|
34
|
+
* format: 'image/png',
|
|
35
|
+
* url: 'http://osm.io/styles/${z}/${x}/${y}.png',
|
|
36
|
+
* attribution: {
|
|
37
|
+
* name: 'OpenStreetMap',
|
|
38
|
+
* url: 'http://www.openstreetmap.org/',
|
|
39
|
+
* },
|
|
40
|
+
* crs: 'EPSG:3857',
|
|
41
|
+
* });
|
|
42
|
+
*
|
|
43
|
+
* // Create the layer
|
|
44
|
+
* const colorLayer = new itowns.ColorLayer('OPENSM', {
|
|
45
|
+
* source: tmsSource,
|
|
46
|
+
* });
|
|
47
|
+
*
|
|
48
|
+
* // Add the layer
|
|
49
|
+
* view.addLayer(colorLayer);
|
|
50
|
+
*
|
|
51
|
+
* @example <caption><b>Source from Mapbox server :</b></caption>
|
|
52
|
+
* // Create the source
|
|
53
|
+
* const orthoSource = new itowns.TMSSource({
|
|
54
|
+
* url: 'https://api.mapbox.com/v4/mapbox.satellite/${z}/${x}/${y}.jpg?access_token=' + accessToken,
|
|
55
|
+
* crs: 'EPSG:3857',
|
|
56
|
+
* };
|
|
57
|
+
*
|
|
58
|
+
* // Create the layer
|
|
59
|
+
* const imageryLayer = new itowns.ColorLayer("Ortho", {
|
|
60
|
+
* source: orthoSource,
|
|
61
|
+
* };
|
|
62
|
+
*
|
|
63
|
+
* // Add the layer to the view
|
|
64
|
+
* view.addLayer(imageryLayer);
|
|
65
|
+
*/
|
|
66
|
+
declare class TMSSource extends Source {
|
|
67
|
+
isTMSSource: boolean;
|
|
68
|
+
zoom: any;
|
|
69
|
+
isInverted: any;
|
|
70
|
+
tileMatrixSetLimits: any;
|
|
71
|
+
extentSetlimits: {};
|
|
72
|
+
tileMatrixCallback: any;
|
|
73
|
+
urlFromExtent(tile: any): string;
|
|
74
|
+
onLayerAdded(options: any): void;
|
|
75
|
+
extentInsideLimit(extent: any, zoom: any): any;
|
|
76
|
+
}
|
|
77
|
+
import Source from '../Source/Source';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default VectorTilesSource;
|
|
2
|
+
/**
|
|
3
|
+
* VectorTilesSource are object containing informations on how to fetch vector
|
|
4
|
+
* tiles resources.
|
|
5
|
+
*
|
|
6
|
+
* @property {function} filter - function to filter vector tiles layers, the
|
|
7
|
+
* parameter function is a layer.
|
|
8
|
+
* @property {boolean} [symbolToCircle=false] - If true, all symbols from a tile
|
|
9
|
+
* will be considered as circle, and render as circles.
|
|
10
|
+
*/
|
|
11
|
+
declare class VectorTilesSource extends TMSSource {
|
|
12
|
+
/**
|
|
13
|
+
* @param {Object} source - An object that can contain all properties of a
|
|
14
|
+
* VectorTilesSource and {@link Source}.
|
|
15
|
+
* @param {string|Object} source.style - The URL of the JSON style, of the
|
|
16
|
+
* JSON style directly.
|
|
17
|
+
* @param {string} [source.sprite] - The base URL to load informations about
|
|
18
|
+
* the sprite of the style. If this is set, it overrides the `sprite` value
|
|
19
|
+
* of the `source.style`. A style's sprite property supplies a URL template
|
|
20
|
+
* for loading small images.
|
|
21
|
+
* ```js
|
|
22
|
+
* {
|
|
23
|
+
* sprite: 'http//:xxxxx/maps/sprites/'
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
* A valid sprite source must supply two types of files:
|
|
27
|
+
* * An index file, which is a JSON document containing a description of each image contained in the sprite.
|
|
28
|
+
* * Image files, which are PNG images containing the sprite data.
|
|
29
|
+
*
|
|
30
|
+
* For more specification : [the Mapbox sprite Specification](https://docs.mapbox.com/mapbox-gl-js/style-spec/sprite/)
|
|
31
|
+
*
|
|
32
|
+
* @param {string} [source.url] - The base URL to load the tiles. If no url
|
|
33
|
+
* is specified, it reads it from the loaded style. Read [the Mapbox Style
|
|
34
|
+
* Specification](https://docs.mapbox.com/mapbox-gl-js/style-spec/sources/)
|
|
35
|
+
* for more informations.
|
|
36
|
+
* @param {string} [source.accessToken] - Mapbox access token
|
|
37
|
+
*/
|
|
38
|
+
constructor(source: {
|
|
39
|
+
style: string | Object;
|
|
40
|
+
sprite?: string | undefined;
|
|
41
|
+
url?: string | undefined;
|
|
42
|
+
accessToken?: string | undefined;
|
|
43
|
+
});
|
|
44
|
+
urls: any[];
|
|
45
|
+
layers: {};
|
|
46
|
+
styles: {};
|
|
47
|
+
isVectorTileSource: boolean;
|
|
48
|
+
accessToken: string | undefined;
|
|
49
|
+
whenReady: Promise<void>;
|
|
50
|
+
jsonStyle: Object;
|
|
51
|
+
sprites: Object;
|
|
52
|
+
backgroundLayer: any;
|
|
53
|
+
urlFromExtent(tile: any, url: any): string;
|
|
54
|
+
loadData(extent: any, out: any): any;
|
|
55
|
+
}
|
|
56
|
+
import TMSSource from '../Source/TMSSource';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export default WFSSource;
|
|
2
|
+
/**
|
|
3
|
+
* An object defining the source of resources to get from a
|
|
4
|
+
* [WFS](http://www.opengeospatial.org/standards/wfs) server. It inherits
|
|
5
|
+
* from {@link Source}.
|
|
6
|
+
*
|
|
7
|
+
* @extends Source
|
|
8
|
+
*
|
|
9
|
+
* @property {boolean} isWFSSource - Used to checkout whether this source is a
|
|
10
|
+
* WFSSource. Default is true. You should not change this, as it is used
|
|
11
|
+
* internally for optimisation.
|
|
12
|
+
* @property {string} typeName - The name of the feature to get, used in the
|
|
13
|
+
* generation of the url.
|
|
14
|
+
* @property {string} version - The version of the WFS server to request on.
|
|
15
|
+
* Default value is '2.0.2'.
|
|
16
|
+
* @property {Object} zoom - Object containing the minimum and maximum values of
|
|
17
|
+
* the level, to zoom in the source.
|
|
18
|
+
* @property {number} zoom.min - The minimum level of the source. Default value
|
|
19
|
+
* is 0.
|
|
20
|
+
* @property {number} zoom.max - The maximum level of the source. Default value
|
|
21
|
+
* is 21.
|
|
22
|
+
* @property {string} bboxDigits - The bbox digits precision used in URL
|
|
23
|
+
* @property {Object} vendorSpecific - An object containing vendor specific
|
|
24
|
+
* parameters. See for example a [list of these parameters for GeoServer]{@link
|
|
25
|
+
* https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html}. This
|
|
26
|
+
* object is read simply with the `key` being the name of the parameter and
|
|
27
|
+
* `value` being the value of the parameter. If used, this property should be
|
|
28
|
+
* set in the constructor parameters.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // Add color layer with WFS source
|
|
32
|
+
* // Create the source
|
|
33
|
+
* const wfsSource = new itowns.WFSSource({
|
|
34
|
+
* url: 'https://data.geopf.fr/wfs/ows?',
|
|
35
|
+
* version: '2.0.0',
|
|
36
|
+
* typeName: 'BDTOPO_BDD_WLD_WGS84G:bati_remarquable',
|
|
37
|
+
* crs: 'EPSG:4326',
|
|
38
|
+
* extent: {
|
|
39
|
+
* west: 4.568,
|
|
40
|
+
* east: 5.18,
|
|
41
|
+
* south: 45.437,
|
|
42
|
+
* north: 46.03,
|
|
43
|
+
* },
|
|
44
|
+
* zoom: { min: 14, max: 14 },
|
|
45
|
+
* format: 'application/json',
|
|
46
|
+
* });
|
|
47
|
+
*
|
|
48
|
+
* // Create the layer
|
|
49
|
+
* const colorlayer = new itowns.ColorLayer('color_build', {
|
|
50
|
+
* style: {
|
|
51
|
+
* fill: 'red',
|
|
52
|
+
* fillOpacity: 0.5,
|
|
53
|
+
* stroke: 'white',
|
|
54
|
+
* },
|
|
55
|
+
* source: wfsSource,
|
|
56
|
+
* });
|
|
57
|
+
*
|
|
58
|
+
* // Add the layer
|
|
59
|
+
* view.addLayer(colorlayer);
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* // Add geometry layer with WFS source
|
|
63
|
+
* // Create the source
|
|
64
|
+
* const wfsSource = new itowns.WFSSource({
|
|
65
|
+
* url: 'https://data.geopf.fr/wfs/ows?',
|
|
66
|
+
* version: '2.0.0',
|
|
67
|
+
* typeName: 'BDTOPO_BDD_WLD_WGS84G:bati_remarquable',
|
|
68
|
+
* crs: 'EPSG:4326',
|
|
69
|
+
* extent: {
|
|
70
|
+
* west: 4.568,
|
|
71
|
+
* east: 5.18,
|
|
72
|
+
* south: 45.437,
|
|
73
|
+
* north: 46.03,
|
|
74
|
+
* },
|
|
75
|
+
* zoom: { min: 14, max: 14 },
|
|
76
|
+
* format: 'application/json',
|
|
77
|
+
* });
|
|
78
|
+
*
|
|
79
|
+
* // Create the layer
|
|
80
|
+
* const geometryLayer = new itowns.FeatureGeometryLayer('mesh_build', {
|
|
81
|
+
* style: {
|
|
82
|
+
* fill: {
|
|
83
|
+
* color: new itowns.THREE.Color(0xffcc00),
|
|
84
|
+
* base_altitude: (p) => p.altitude,
|
|
85
|
+
* extrusion_height: (p) => p.height,
|
|
86
|
+
* }
|
|
87
|
+
* },
|
|
88
|
+
* source: wfsSource,
|
|
89
|
+
* zoom: { min: 14 },
|
|
90
|
+
* };
|
|
91
|
+
*
|
|
92
|
+
* // Add the layer
|
|
93
|
+
* view.addLayer(geometryLayer);
|
|
94
|
+
*/
|
|
95
|
+
declare class WFSSource extends Source {
|
|
96
|
+
isWFSSource: boolean;
|
|
97
|
+
typeName: any;
|
|
98
|
+
version: any;
|
|
99
|
+
bboxDigits: any;
|
|
100
|
+
zoom: {
|
|
101
|
+
min: number;
|
|
102
|
+
max: number;
|
|
103
|
+
};
|
|
104
|
+
vendorSpecific: any;
|
|
105
|
+
url: string;
|
|
106
|
+
handlingError(err: any): any;
|
|
107
|
+
urlFromExtent(extentOrTile: any): string;
|
|
108
|
+
extentInsideLimit(extent: any): any;
|
|
109
|
+
}
|
|
110
|
+
import Source from '../Source/Source';
|