@baidumap/mapv-three 1.0.1 → 1.2.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/assets/images/fallbackIcon.png +0 -0
- package/dist/assets/images/marker_red.png +0 -0
- package/dist/assets/models/effect/diamond.glb +0 -0
- package/dist/assets/textures/imposter/tree3/base.webp +0 -0
- package/dist/assets/textures/imposter/tree3/norm_depth.webp +0 -0
- package/dist/assets/textures/imposter/tree3/orm.webp +0 -0
- package/dist/devtool/panel.js +10 -5
- package/dist/mapvthree.module.js +41964 -35175
- package/dist/mapvthree.umd.js +7 -8
- package/dist/types/Internal.d.ts +0 -2
- package/dist/types/index.d.ts +12 -8
- package/dist/types/index.open.d.ts +18 -1
- package/dist/types/threejs/controls/MapControl3D.d.ts +1 -1
- package/dist/types/threejs/geometries/line/PolylineGeometry.d.ts +1 -0
- package/dist/types/threejs/geometries/sphere/PillarGeometry.d.ts +4 -0
- package/dist/types/threejs/materials/effects/ScanMaterial.d.ts +69 -58
- package/dist/types/threejs/materials/effects/TwinkleMaterial.d.ts +56 -43
- package/dist/types/threejs/materials/effects/WindowMaterial.d.ts +37 -26
- package/dist/types/threejs/materials/heatmap/Heatmap3D.d.ts +2 -0
- package/dist/types/threejs/materials/natural/WaterMaterial.d.ts +152 -18
- package/dist/types/threejs/materials/point/Ballon.d.ts +1 -0
- package/dist/types/threejs/materials/point/Effect.d.ts +13 -0
- package/dist/types/threejs/materials/point/Icon.d.ts +4 -0
- package/dist/types/threejs/materials/polygon/PolygonMaterial.d.ts +2 -0
- package/dist/types/threejs/materials/sphere/GridMaterial.d.ts +6 -1
- package/dist/types/threejs/materials/sphere/PillarMaterial.d.ts +5 -1
- package/dist/types/threejs/objects/FadeData.d.ts +1 -0
- package/dist/types/threejs/objects/GeoInstancedMesh.d.ts +1 -2
- package/dist/types/threejs/objects/GeoObject.d.ts +24 -0
- package/dist/types/threejs/objects/ThreeObject.d.ts +4 -2
- package/dist/types/threejs/objects/element/OctahedralImpostor.d.ts +15 -21
- package/dist/types/threejs/objects/heatmap/Heatmap3D.d.ts +43 -23
- package/dist/types/threejs/objects/instance/InstancedModel.d.ts +2 -0
- package/dist/types/threejs/objects/line/FatLine.d.ts +3 -245
- package/dist/types/threejs/objects/line/FatLineInternal.d.ts +246 -0
- package/dist/types/threejs/objects/line/Polyline.d.ts +53 -76
- package/dist/types/threejs/objects/line/PolylineInternal.d.ts +85 -0
- package/dist/types/threejs/objects/line/SimpleLine.d.ts +1 -1
- package/dist/types/threejs/objects/line/TrafficLink.d.ts +2 -2
- package/dist/types/threejs/objects/natural/BillboardTree.d.ts +1 -0
- package/dist/types/threejs/objects/point/ActiveMesh.d.ts +0 -1
- package/dist/types/threejs/objects/point/BallonPoint.d.ts +54 -7
- package/dist/types/threejs/objects/point/BubblePoint.d.ts +8 -1
- package/dist/types/threejs/objects/point/Circle.d.ts +0 -9
- package/dist/types/threejs/objects/point/DOMPoint.d.ts +4 -4
- package/dist/types/threejs/objects/point/EffectModelPoint.d.ts +55 -27
- package/dist/types/threejs/objects/point/EffectPoint.d.ts +70 -0
- package/dist/types/threejs/objects/point/GeoInstancedPointMesh.d.ts +10 -0
- package/dist/types/threejs/objects/point/Icon.d.ts +1 -1
- package/dist/types/threejs/objects/point/Label.d.ts +142 -30
- package/dist/types/threejs/objects/point/ShapePoint.d.ts +0 -1
- package/dist/types/threejs/objects/point/Spark.d.ts +37 -38
- package/dist/types/threejs/objects/point/label/GeometryBufferBuilder.d.ts +41 -0
- package/dist/types/threejs/objects/point/label/TextBoxCalculator.d.ts +38 -0
- package/dist/types/threejs/objects/polygon/Polygon.d.ts +200 -66
- package/dist/types/threejs/objects/sphere/Cone.d.ts +3 -63
- package/dist/types/threejs/objects/sphere/Grid.d.ts +3 -2
- package/dist/types/threejs/objects/sphere/Pillar.d.ts +49 -7
- package/dist/types/threejs/objects/text/utils.d.ts +8 -1
- package/dist/types/threejs/particles/Fireflies.d.ts +57 -13
- package/dist/types/threejs/utils/sprite.d.ts +1 -1
- package/dist/types/threemap/3dtiles/HDMap/v2/instanceConfig.d.ts +166 -0
- package/dist/types/threemap/3dtiles/HDMap3DTiles.d.ts +2 -0
- package/dist/types/threemap/3dtiles/cesium/Cesium3DTileset.d.ts +4 -2
- package/dist/types/threemap/3dtiles/cesium/content/Mesh3DTileContent.d.ts +1 -0
- package/dist/types/threemap/3dtiles/elements/TileInstancedElementManager.d.ts +41 -9
- package/dist/types/threemap/controls/editors/EditorManager.d.ts +51 -145
- package/dist/types/threemap/controls/editors/PolygonEditor.d.ts +14 -0
- package/dist/types/threemap/controls/editors/SplineEditor.d.ts +6 -0
- package/dist/types/threemap/dataSource/DataItem.d.ts +3 -1
- package/dist/types/threemap/dataSource/DataSource.d.ts +29 -0
- package/dist/types/threemap/engine/Map.d.ts +2 -0
- package/dist/types/threemap/engine/rendering/Collision.d.ts +15 -0
- package/dist/types/threemap/engine/rendering/Label.d.ts +6 -1
- package/dist/types/threemap/engine/rendering/MicroTaskScheduler.d.ts +4 -0
- package/dist/types/threemap/mapView/baidu/TafficDataLoader.d.ts +13 -0
- package/dist/types/threemap/mapView/constants.d.ts +54 -0
- package/dist/types/threemap/mapView/geo/MapTile.d.ts +3 -0
- package/dist/types/threemap/mapView/geo/TileQuadtree.d.ts +2 -1
- package/dist/types/threemap/mapView/grid/BaiduVectorOnlineGrid.d.ts +10 -0
- package/dist/types/threemap/mapView/grid/Grid.d.ts +14 -0
- package/dist/types/threemap/mapView/map/MapView.d.ts +0 -10
- package/dist/types/threemap/mapView/mapbox/executer/fill.d.ts +2 -0
- package/dist/types/threemap/mapView/surface/MapSurface.d.ts +7 -4
- package/dist/types/threemap/mapView/surface/Placeholder.d.ts +1 -1
- package/dist/types/threemap/mapView/surface/VectorSurface.d.ts +1 -0
- package/dist/types/threemap/mapView/surface/strategy/FastTileLoaderStrategy.d.ts +3 -3
- package/dist/types/threemap/mapView/surface/strategy/HierarchicalTileLoaderStrategy.d.ts +0 -1
- package/dist/types/threemap/mapView/tileManager/RasterSurfaceTileManager.d.ts +4 -4
- package/dist/types/threemap/mapView/tileManager/SurfaceTileManager.d.ts +4 -1
- package/dist/types/threemap/mapView/tileManager/VectorSurfaceTileManager.d.ts +4 -5
- package/dist/types/threemap/mapView/tileProvider/AsyncCesiumTerrainDataLoader.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/AsyncDataTileLoader.d.ts +1 -0
- package/dist/types/threemap/mapView/tileProvider/BaseImageryTileProvider.d.ts +103 -0
- package/dist/types/threemap/mapView/tileProvider/TileProvider.d.ts +25 -9
- package/dist/types/threemap/mapView/tileProvider/imagery/Baidu09ImageryTileProvider.d.ts +71 -7
- package/dist/types/threemap/mapView/tileProvider/imagery/BingImageryTileProvider.d.ts +22 -3
- package/dist/types/threemap/mapView/tileProvider/imagery/GridCoordTileProvider.d.ts +2 -0
- package/dist/types/threemap/mapView/tileProvider/imagery/ImageryTileProvider.d.ts +56 -27
- package/dist/types/threemap/mapView/tileProvider/imagery/OSMImageryTileProvider.d.ts +0 -10
- package/dist/types/threemap/mapView/tileProvider/imagery/StadiaImageryTileProvider.d.ts +75 -0
- package/dist/types/threemap/mapView/tileProvider/imagery/WMSImageryTileProvider.d.ts +106 -13
- package/dist/types/threemap/mapView/tileProvider/imagery/WMTSImageryTileProvider.d.ts +114 -15
- package/dist/types/threemap/mapView/tileProvider/imagery/XYZImageryTileProvider.d.ts +53 -6
- package/dist/types/threemap/mapView/tileProvider/renderers/ImageTileLabelRenderer.d.ts +4 -0
- package/dist/types/threemap/mapView/{geo → tileProvider/renderers}/ImageryReprojector.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/renderers/VectorTileImageRenderer.d.ts +4 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduTrafficTileProvider.d.ts +165 -21
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduVectorTileProvider.d.ts +3 -1
- package/dist/types/threemap/mapView/tileProvider/vector/GeoJSONVectorTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/vector/HDTrafficTileProvider.d.ts +159 -24
- package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +264 -40
- package/dist/types/threemap/mapView/tileProvider/vector/PlaneVectorTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/vector/VectorTileProvider.d.ts +6 -4
- package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
- package/dist/types/threemap/model/AnimationModel.d.ts +86 -6
- package/dist/types/threemap/natural/DynamicWeather.d.ts +92 -0
- package/dist/types/threemap/natural/EmptySky.d.ts +1 -0
- package/dist/types/threemap/natural/StaticSky.d.ts +32 -5
- package/dist/types/threemap/projections/BaiduMercatorProjection.d.ts +14 -0
- package/dist/types/threemap/projections/CoordTransformer.d.ts +13 -0
- package/dist/types/threemap/projections/GenericDefinedProjection.d.ts +10 -0
- package/dist/types/threemap/projections/Projection.d.ts +24 -7
- package/dist/types/threemap/projections/ScreenPixelProjection.d.ts +26 -7
- package/dist/types/threemap/projections/WebMercatorProjection.d.ts +16 -0
- package/dist/types/threemap/projections/extendCoordinate.d.ts +2 -0
- package/dist/types/threemap/projections/projections.d.ts +11 -0
- package/dist/types/util/LRUCacheNew.d.ts +1 -0
- package/dist/types/util/coordProjection.d.ts +0 -2
- package/dist/types/util/geojsonUtils.d.ts +1 -0
- package/dist/types/util/gradientMap.d.ts +25 -0
- package/dist/types/util/graphics/bezier.d.ts +8 -1
- package/package.json +2 -1
- package/dist/assets/models/hdmap/SM_Big-Pier_2.glb +0 -0
- package/dist/assets/models/hdmap/SM_Cone_Barrel.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence1-0.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence1-8.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence2-5.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence7-0.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence7-2.glb +0 -0
- package/dist/assets/models/hdmap/SM_Fence7-3.glb +0 -0
- package/dist/assets/models/hdmap/SM_Road_facility2.glb +0 -0
- package/dist/assets/models/hdmap/SM_Signboard_8.glb +0 -0
- package/dist/assets/models/hdmap/SM_fence1-5.glb +0 -0
- package/dist/assets/models/hdmap/tunnel_light.glb +0 -0
- package/dist/types/addons/highwaymap/Viewer.d.ts +0 -164
- package/dist/types/addons/highwaymap/index.d.ts +0 -3
- package/dist/types/addons/highwaymap/map/Map.d.ts +0 -59
- package/dist/types/addons/highwaymap/map/MapControl.d.ts +0 -57
- package/dist/types/addons/highwaymap/service/index.d.ts +0 -3
- package/dist/types/addons/highwaymap/utils/eventTypes.d.ts +0 -15
- package/dist/types/addons/index.d.ts +0 -4
- package/dist/types/addons/traffic/config/assets.d.ts +0 -78
- package/dist/types/addons/traffic/config/element.d.ts +0 -23
- package/dist/types/addons/traffic/handler/AbstractLoadPolicy.d.ts +0 -13
- package/dist/types/addons/traffic/handler/DefaultLoadPolicy.d.ts +0 -5
- package/dist/types/addons/traffic/handler/ModelCreator.d.ts +0 -69
- package/dist/types/addons/traffic/handler/ModelHandler.d.ts +0 -131
- package/dist/types/addons/traffic/handler/assets.d.ts +0 -365
- package/dist/types/addons/traffic/handler/ceilManager.d.ts +0 -16
- package/dist/types/addons/traffic/handler/tools.d.ts +0 -17
- package/dist/types/addons/traffic/handler/trafficLight.d.ts +0 -253
- package/dist/types/addons/traffic/index.d.ts +0 -16
- package/dist/types/addons/traffic/objects/BasicLabel.d.ts +0 -226
- package/dist/types/addons/traffic/objects/Diamond.d.ts +0 -61
- package/dist/types/addons/traffic/objects/DynamicModel.d.ts +0 -129
- package/dist/types/addons/traffic/objects/InstancedModel.d.ts +0 -91
- package/dist/types/addons/traffic/objects/LineMesh.d.ts +0 -6
- package/dist/types/addons/traffic/objects/Model.d.ts +0 -169
- package/dist/types/addons/traffic/objects/TrafficGroup.d.ts +0 -16
- package/dist/types/addons/traffic/objects/TrafficInstancedObject.d.ts +0 -7
- package/dist/types/addons/traffic/objects/TrafficObject.d.ts +0 -14
- package/dist/types/addons/traffic/objects/curveLineMesh.d.ts +0 -29
- package/dist/types/addons/traffic/objects/shaders/Line2dShader.d.ts +0 -1
- package/dist/types/addons/traffic/objects/shaders/RingCircle.d.ts +0 -19
- package/dist/types/addons/traffic/objects/shaders/WaveCircle2.d.ts +0 -13
- package/dist/types/addons/traffic/objects/shaders/WaveCircle4.d.ts +0 -17
- package/dist/types/addons/traffic/objects/shaders/WaveCircle5.d.ts +0 -17
- package/dist/types/addons/traffic/service/assets.d.ts +0 -50
- package/dist/types/addons/traffic/utils/BasicLabel.d.ts +0 -3
- package/dist/types/addons/traffic/utils/MapMath.d.ts +0 -78
- package/dist/types/addons/traffic/utils/assets.d.ts +0 -108
- package/dist/types/addons/traffic/utils/freeTag.d.ts +0 -71
- package/dist/types/addons/traffic/utils/hooks.d.ts +0 -1
- package/dist/types/addons/traffic/utils/index.d.ts +0 -26
- package/dist/types/addons/traffic/utils/trafficLight.d.ts +0 -73
- package/dist/types/addons/traffic/utils/ws.d.ts +0 -23
- package/dist/types/addons/visual/core/LRU.d.ts +0 -27
- package/dist/types/addons/visual/core/defines.d.ts +0 -55
- package/dist/types/addons/visual/core/global.d.ts +0 -29
- package/dist/types/addons/visual/extension/AnimatePolygon.d.ts +0 -108
- package/dist/types/addons/visual/extension/DoubleLine.d.ts +0 -137
- package/dist/types/addons/visual/extension/FlyLineLayer.d.ts +0 -140
- package/dist/types/addons/visual/extension/MeshLine.d.ts +0 -61
- package/dist/types/addons/visual/extension/TubeLine.d.ts +0 -93
- package/dist/types/addons/visual/extension/Water/Reflector.d.ts +0 -26
- package/dist/types/addons/visual/extension/Water/Refractor.d.ts +0 -26
- package/dist/types/addons/visual/extension/Water/Water.d.ts +0 -60
- package/dist/types/addons/visual/extension/Water/WaterFive.d.ts +0 -20
- package/dist/types/addons/visual/extension/Water/WaterFour.d.ts +0 -17
- package/dist/types/addons/visual/extension/Water/WaterOne.d.ts +0 -10
- package/dist/types/addons/visual/extension/Water/WaterSix.d.ts +0 -15
- package/dist/types/addons/visual/extension/Water/WaterThree.d.ts +0 -14
- package/dist/types/addons/visual/extension/Water/WaterTwo.d.ts +0 -14
- package/dist/types/addons/visual/extension/specialEffect/LateralScan.d.ts +0 -32
- package/dist/types/addons/visual/extension/specialEffect/LineGradient.d.ts +0 -28
- package/dist/types/addons/visual/extension/specialEffect/TwinkleEffect.d.ts +0 -30
- package/dist/types/addons/visual/index.d.ts +0 -17
- package/dist/types/addons/visual/map/Fence.d.ts +0 -121
- package/dist/types/addons/visual/map/Polyline.d.ts +0 -178
- package/dist/types/addons/visual/mapTile/MapLayer.d.ts +0 -50
- package/dist/types/addons/visual/mapTile/MapLayerLoader.d.ts +0 -15
- package/dist/types/addons/visual/mapTile/MapLodLayer.d.ts +0 -15
- package/dist/types/addons/visual/mapTile/MapRequest.d.ts +0 -69
- package/dist/types/addons/visual/mapTile/MapTile.d.ts +0 -131
- package/dist/types/addons/visual/mapTile/MapTileLoader.d.ts +0 -26
- package/dist/types/addons/visual/mapTile/config.d.ts +0 -381
- package/dist/types/addons/visual/mapTile/workers/WorkerService.d.ts +0 -9
- package/dist/types/addons/visual/mapTile/workers/WorkerServiceManager.d.ts +0 -8
- package/dist/types/addons/visual/utils/AdaptedThree.d.ts +0 -22
- package/dist/types/addons/visual/utils/CombinePositions.d.ts +0 -23
- package/dist/types/addons/visual/utils/Extrude.d.ts +0 -92
- package/dist/types/addons/visual/utils/GenerateObject.d.ts +0 -32
- package/dist/types/addons/visual/utils/GeoJSONUtil.d.ts +0 -10
- package/dist/types/addons/visual/utils/MapMath.d.ts +0 -66
- package/dist/types/addons/visual/utils/MergeGeometries.d.ts +0 -13
- package/dist/types/addons/visual/utils/OrganizedGeometry.d.ts +0 -33
- package/dist/types/addons/visual/utils/OrganizedMaterial.d.ts +0 -5
- package/dist/types/addons/visual/utils/lines/Line2.d.ts +0 -7
- package/dist/types/addons/visual/utils/lines/LineDashShaderMaterial.d.ts +0 -4
- package/dist/types/addons/visual/utils/lines/LineGeometry.d.ts +0 -7
- package/dist/types/addons/visual/utils/lines/LineMaterial.d.ts +0 -4
- package/dist/types/addons/visual/utils/lines/LineSegments2.d.ts +0 -9
- package/dist/types/addons/visual/utils/lines/LineSegmentsGeometry.d.ts +0 -17
- package/dist/types/addons/visual/utils/util.d.ts +0 -269
- package/dist/types/threemap/mapView/BaiduVImageryMap.d.ts +0 -40
- package/dist/types/threemap/mapView/QuadMap.d.ts +0 -287
- package/dist/types/threemap/mapView/geo/TileManager.d.ts +0 -68
- package/dist/types/threemap/mapView/geo/globe.d.ts +0 -6
- package/dist/types/threemap/mapView/tileLoader/AsyncBinaryTileLoader.d.ts +0 -20
- package/dist/types/threemap/mapView/tileLoader/BaiduTrafficVectorTileLoader.d.ts +0 -13
- package/dist/types/threemap/mapView/tileLoader/BaiduVImageryTileLoader.d.ts +0 -59
- package/dist/types/threemap/mapView/tileLoader/BaiduVectorTileLoader.d.ts +0 -23
- package/dist/types/threemap/mapView/tileLoader/BinaryTileLoader.d.ts +0 -7
- package/dist/types/threemap/mapView/tileLoader/CesiumTerrainTileLoader.d.ts +0 -21
- package/dist/types/threemap/mapView/tileLoader/CompositionTileLoader.d.ts +0 -15
- package/dist/types/threemap/mapView/tileLoader/DebugTileLoader.d.ts +0 -4
- package/dist/types/threemap/mapView/tileLoader/HDTrafficTileLoader.d.ts +0 -16
- package/dist/types/threemap/mapView/tileLoader/ImageTileLoader.d.ts +0 -7
- package/dist/types/threemap/mapView/tileLoader/MapboxTerrainTileLoader.d.ts +0 -14
- package/dist/types/threemap/mapView/tileLoader/TileLoader.d.ts +0 -19
- package/dist/types/threemap/projections/EqualEarthProjection.d.ts +0 -11
- package/dist/types/threemap/projections/UTMProjection.d.ts +0 -21
- /package/dist/types/threemap/{mapView/tileLoader/worker/BaiduTrafficParser.worker.d.ts → 3dtiles/HDMap/v2/yaml_to_json.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker → baidu}/binaryDecoder.d.ts +0 -0
- /package/dist/types/threemap/mapView/{terrainData → geo/terrainData}/QuantizedMeshTerrainData.d.ts +0 -0
- /package/dist/types/threemap/mapView/{terrainData → geo/terrainData}/TerrainMesh.d.ts +0 -0
- /package/dist/types/threemap/mapView/{materials → materialManager}/CustomMVTMaterialManager.d.ts +0 -0
- /package/dist/types/threemap/mapView/{materials → materialManager}/DarkMVTMaterialManager.d.ts +0 -0
- /package/dist/types/threemap/mapView/{materials → materialManager}/DefaultQuadMapMaterialManager.d.ts +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/BaiduVectorParser.worker.d.ts → tileProvider/worker/BaiduTrafficParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/CesiumTerrainParser.worker.d.ts → tileProvider/worker/BaiduVectorParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/GeoJSONVectorParser.worker.d.ts → tileProvider/worker/CesiumTerrainParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/HDTrafficParser.worker.d.ts → tileProvider/worker/GeoJSONVectorParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader/worker/LaCesiumTerrainParser.worker.d.ts → tileProvider/worker/HDTrafficParser.worker.d.ts} +0 -0
- /package/dist/types/threemap/mapView/{tileLoader → tileProvider}/worker/MVTParser.worker.d.ts +0 -0
- /package/dist/types/threemap/mapView/{tileLoader → tileProvider}/worker/MapboxTerrainParser.worker.d.ts +0 -0
|
@@ -39,6 +39,8 @@ export class RenderingLabel {
|
|
|
39
39
|
private _blocks;
|
|
40
40
|
/** @private */
|
|
41
41
|
private _collisionLabels;
|
|
42
|
+
_removalBuffer: any[];
|
|
43
|
+
_removalBufferSize: number;
|
|
42
44
|
_timers: {};
|
|
43
45
|
/** @private */
|
|
44
46
|
private _enabled;
|
|
@@ -77,6 +79,7 @@ export class RenderingLabel {
|
|
|
77
79
|
_labelTextFixed: any;
|
|
78
80
|
_labelIconTextDataSource: DataSource | undefined;
|
|
79
81
|
_labelIconText: any;
|
|
82
|
+
getLabelType(label: any): any;
|
|
80
83
|
processLabel(label: any): any;
|
|
81
84
|
/**
|
|
82
85
|
* @internal
|
|
@@ -133,10 +136,12 @@ export class RenderingLabel {
|
|
|
133
136
|
collision?: boolean | undefined;
|
|
134
137
|
flat?: boolean | undefined;
|
|
135
138
|
}): DataItem;
|
|
136
|
-
addLabels(labels: any, id: any):
|
|
139
|
+
addLabels(labels: any, id: any): any;
|
|
137
140
|
_createLabelTask(labels: any): () => Promise<any>;
|
|
138
141
|
computeBoundingBox(label: any): any;
|
|
139
142
|
_checkRemoveCollisionLabel(collisionLabel: any, label: any): void;
|
|
143
|
+
_flushPartialRemovalBuffer(): void;
|
|
144
|
+
_clearLabelFromRemovalBuffer(type: any, groupKey: any): void;
|
|
140
145
|
removeCollisionLabel(label: any): void;
|
|
141
146
|
removeNormalLabel(label: any): void;
|
|
142
147
|
/**
|
|
@@ -40,9 +40,13 @@ declare class MicroTask {
|
|
|
40
40
|
priority: number;
|
|
41
41
|
_isCancelled: boolean;
|
|
42
42
|
_isStart: boolean;
|
|
43
|
+
_promise: Promise<any>;
|
|
44
|
+
_resolve: (value: any) => void;
|
|
45
|
+
_reject: (reason?: any) => void;
|
|
43
46
|
execute(): void;
|
|
44
47
|
cancel(): void;
|
|
45
48
|
isCancelled(): boolean;
|
|
46
49
|
isStart(): boolean;
|
|
50
|
+
get promise(): Promise<any>;
|
|
47
51
|
}
|
|
48
52
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export namespace trafficDataLoader {
|
|
2
|
+
function requestTile(provider: any, tile: any): Promise<{
|
|
3
|
+
type: string;
|
|
4
|
+
tileKey: any;
|
|
5
|
+
content: {
|
|
6
|
+
data: {
|
|
7
|
+
attributes: Float32Array<ArrayBuffer>;
|
|
8
|
+
indices: Uint32Array<ArrayBuffer>;
|
|
9
|
+
} | null;
|
|
10
|
+
};
|
|
11
|
+
isNormalized: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
@@ -1,6 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 快速加载策略,可能会出现空洞,通常用于矢量瓦片的加载策略。
|
|
3
|
+
*/
|
|
1
4
|
export const TILELOADER_STRATEGY_FAST: "fast";
|
|
5
|
+
/**
|
|
6
|
+
* 层级加载策略,按照层级顺序从低级别到高级别加载瓦片,通常用于栅格瓦片的加载策略。
|
|
7
|
+
*/
|
|
2
8
|
export const TILELOADER_STRATEGY_HIERARCHICAL: "hierarchical";
|
|
9
|
+
/**
|
|
10
|
+
* 地理坐标系网格,基于地理坐标系(经纬度)的地图网格
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
3
13
|
export const MAP_GRID_NAME_GEO: "geo";
|
|
14
|
+
/**
|
|
15
|
+
* Web墨卡托投影网格,基于Web墨卡托投影的地图网格
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
4
18
|
export const MAP_GRID_NAME_WEB_MERCATOR: "web_mercator";
|
|
19
|
+
/**
|
|
20
|
+
* 百度矢量在线网格
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
5
23
|
export const MAP_GRID_NAME_BD_VECTOR_ONLINE: "bd_vector_online";
|
|
24
|
+
/**
|
|
25
|
+
* 百度矢量离线网格
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
6
28
|
export const MAP_GRID_NAME_BD_VECTOR_OFFLINE: "bd_vector_offline";
|
|
29
|
+
/**
|
|
30
|
+
* 卫星影像样式,纯卫星影像,不包含任何标签或道路信息
|
|
31
|
+
*/
|
|
32
|
+
export const BING_MAP_STYLE_AERIAL: "Aerial";
|
|
33
|
+
/**
|
|
34
|
+
* 带标签的卫星影像样式,卫星影像基础上叠加了地名、道路等标签信息
|
|
35
|
+
*/
|
|
36
|
+
export const BING_MAP_STYLE_AERIAL_WITH_LABELS: "AerialWithLabels";
|
|
37
|
+
/**
|
|
38
|
+
* 道路地图样式,传统的道路地图样式,包含道路、地名、POI等信息
|
|
39
|
+
*/
|
|
40
|
+
export const BING_MAP_STYLE_ROAD: "Road";
|
|
41
|
+
/**
|
|
42
|
+
* Stadia地图水彩图样式
|
|
43
|
+
*/
|
|
44
|
+
export const STADIA_MAP_STYLE_STAMEN_WATERCOLOR: "StamenWatercolor";
|
|
45
|
+
/**
|
|
46
|
+
* Stadia地图素描图样式
|
|
47
|
+
*/
|
|
48
|
+
export const STADIA_MAP_STYLE_STAMEN_TONER: "StamenToner";
|
|
49
|
+
/**
|
|
50
|
+
* Stadia地图AlidadeSmooth图样式
|
|
51
|
+
*/
|
|
52
|
+
export const STADIA_MAP_STYLE_ALIDE_SMOOTH: "AlidadeSmooth";
|
|
53
|
+
/**
|
|
54
|
+
* Stadia地图AlidadeSmooth暗色图样式
|
|
55
|
+
*/
|
|
56
|
+
export const STADIA_MAP_STYLE_ALIDE_SMOOTH_DARK: "AlidadeSmoothDark";
|
|
57
|
+
/**
|
|
58
|
+
* Stadia地图Outdoors图样式
|
|
59
|
+
*/
|
|
60
|
+
export const STADIA_MAP_STYLE_OUTDOORS: "Outdoors";
|
|
@@ -37,6 +37,7 @@ export class MapTile {
|
|
|
37
37
|
private _targetSSESize;
|
|
38
38
|
key: string;
|
|
39
39
|
state: number;
|
|
40
|
+
epoch: number;
|
|
40
41
|
childrenKeys: any[];
|
|
41
42
|
loaderConfig: any;
|
|
42
43
|
updateBoundingBoxZ(zMin: any, zMax: any): void;
|
|
@@ -65,6 +66,8 @@ export class MapTile {
|
|
|
65
66
|
* tile在目标投影下的boundingBox,数值为在目标投影下的世界坐标
|
|
66
67
|
*/
|
|
67
68
|
get targetBoundingBox(): any;
|
|
69
|
+
get targetGeoBoundingBox(): any;
|
|
70
|
+
_targetGeoBoundingBox: any;
|
|
68
71
|
/**
|
|
69
72
|
* tile在引擎projection下的中心点
|
|
70
73
|
* targetCenter主要用于计算瓦片mesh的position
|
|
@@ -3,9 +3,10 @@ export class TileQuadtree {
|
|
|
3
3
|
_grid: any;
|
|
4
4
|
_root: any;
|
|
5
5
|
_tiles: {};
|
|
6
|
+
_reusedTiles: {};
|
|
6
7
|
_tilesCount: number;
|
|
7
8
|
getTileByKey(key: any): any;
|
|
8
|
-
getTile(z: any, x: any, y: any): any;
|
|
9
|
+
getTile(z: any, x: any, y: any, getReusedTile?: boolean): any;
|
|
9
10
|
getTileChildren(tile: any): any;
|
|
10
11
|
_getOrCreateTile(z: any, x: any, y: any): any;
|
|
11
12
|
/**
|
|
@@ -6,6 +6,7 @@ export class BaiduVectorOnlineGrid extends BaiduImageryGrid {
|
|
|
6
6
|
name: string;
|
|
7
7
|
/** @private */
|
|
8
8
|
private _levels;
|
|
9
|
+
supportLevelReuse: boolean;
|
|
9
10
|
_coordLevelTileCounts: {
|
|
10
11
|
0: number;
|
|
11
12
|
1: number;
|
|
@@ -16,5 +17,14 @@ export class BaiduVectorOnlineGrid extends BaiduImageryGrid {
|
|
|
16
17
|
baseZ: any;
|
|
17
18
|
startZ: any;
|
|
18
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* 获取有层级复用的瓦片配置,外部传入的是根据标准四叉树计算出来的瓦片坐标,需要转换成层级复用的瓦片配置
|
|
22
|
+
* 如5-19-10实际使用的是5-10-5瓦片的四分之一
|
|
23
|
+
* @param {*} z
|
|
24
|
+
* @param {*} x
|
|
25
|
+
* @param {*} y
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
getResuedTileConfig(z: any, x: any, y: any): any[] | null;
|
|
19
29
|
}
|
|
20
30
|
import { BaiduImageryGrid } from './BaiduImageryGrid';
|
|
@@ -17,7 +17,17 @@ export class Grid {
|
|
|
17
17
|
_engine: any;
|
|
18
18
|
_sourceProjection: any;
|
|
19
19
|
_targetProjection: any;
|
|
20
|
+
initFromTileProvider(tileProvider: any): void;
|
|
21
|
+
_sourceCoordType: any;
|
|
22
|
+
_targetCoordType: any;
|
|
23
|
+
_shouldConvertCoord: boolean | undefined;
|
|
24
|
+
useExtendTargetBoundingBox: any;
|
|
20
25
|
getRootTiles(): never[];
|
|
26
|
+
/**
|
|
27
|
+
* 获取可用的根瓦片, 剔除超出目标投影范围的瓦片
|
|
28
|
+
* @returns {Array<MapTile>} 返回包含所有可用根瓦片的数组
|
|
29
|
+
*/
|
|
30
|
+
getAvailableRootTiles(): Array<MapTile>;
|
|
21
31
|
getRootBoundingBox(): null;
|
|
22
32
|
getPixelSizeByLevel(level: any): any;
|
|
23
33
|
getNextLevel(z: any): any;
|
|
@@ -31,6 +41,7 @@ export class Grid {
|
|
|
31
41
|
* @returns {Array<MapTile>} 返回包含所有子瓦片的数组
|
|
32
42
|
*/
|
|
33
43
|
createTileChildren(tile: MapTile): Array<MapTile>;
|
|
44
|
+
createSubTile(sourceTile: any, offsetX: any, offsetY: any, width: any, height: any): MapTile;
|
|
34
45
|
isTileInBoundingRange(tile: any): boolean;
|
|
35
46
|
getTileSizeAtLevel(level: any): void;
|
|
36
47
|
getTileCoordX(x: any, tileSize: any, clampToEdge?: boolean): void;
|
|
@@ -51,6 +62,9 @@ export class Grid {
|
|
|
51
62
|
get useGeoSubdivision(): boolean;
|
|
52
63
|
get sourceProjection(): any;
|
|
53
64
|
get targetProjection(): any;
|
|
65
|
+
get sourceCoordType(): any;
|
|
66
|
+
get targetCoordType(): any;
|
|
67
|
+
get shouldConvertCoord(): boolean | undefined;
|
|
54
68
|
get zeroLevelPixelSize(): number;
|
|
55
69
|
_zeroLevelPixelSize: number | undefined;
|
|
56
70
|
}
|
|
@@ -160,16 +160,6 @@ export class MapView {
|
|
|
160
160
|
_sseDenominator: number | undefined;
|
|
161
161
|
_pitchRatio: any;
|
|
162
162
|
getKeyByValue: (obj: any, value: any) => string | null;
|
|
163
|
-
/**
|
|
164
|
-
* @internal
|
|
165
|
-
* 当瓦片加载完成后,若为分层地图,保存其层级信息z
|
|
166
|
-
* @param {Event} e
|
|
167
|
-
*/
|
|
168
|
-
handleTileLoaded: (e: Event) => void;
|
|
169
|
-
/**
|
|
170
|
-
* @protected
|
|
171
|
-
*/
|
|
172
|
-
protected handleTileDispose: (e: any) => void;
|
|
173
163
|
/**
|
|
174
164
|
* @protected
|
|
175
165
|
*/
|
|
@@ -75,6 +75,8 @@ export default class FillExecuter {
|
|
|
75
75
|
};
|
|
76
76
|
_getStyleValue(type: any, property: any): any;
|
|
77
77
|
_getFillColor(): void;
|
|
78
|
+
_getFillTranslate(): void;
|
|
79
|
+
_translate: any;
|
|
78
80
|
_loadGeometry(layerIndex: any): void;
|
|
79
81
|
_getOutLineColor(): void;
|
|
80
82
|
_getFillPattern(): void;
|
|
@@ -37,6 +37,7 @@ export class MapSurface {
|
|
|
37
37
|
private _selectedTilesLastFrame;
|
|
38
38
|
/** @private */
|
|
39
39
|
private _showGroundWireframe;
|
|
40
|
+
_pendingRequests: Map<any, any>;
|
|
40
41
|
_id: number;
|
|
41
42
|
_quadtree: TileQuadtree | null;
|
|
42
43
|
_placeholder: Placeholder | null;
|
|
@@ -68,7 +69,7 @@ export class MapSurface {
|
|
|
68
69
|
*/
|
|
69
70
|
get strategy(): any;
|
|
70
71
|
_getCurrentGrid(): void;
|
|
71
|
-
computeDistanceToTile(tile: any, cameraPosition: any, mode: any, mapProjection: any, ellipsoid: any): any;
|
|
72
|
+
computeDistanceToTile(tile: any, cameraPosition: any, renderState: any, mode: any, mapProjection: any, ellipsoid: any): any;
|
|
72
73
|
refresh(): void;
|
|
73
74
|
clearTilesInView(): void;
|
|
74
75
|
/**
|
|
@@ -83,21 +84,22 @@ export class MapSurface {
|
|
|
83
84
|
_getDebugLabelId(surfaceTile: any): string;
|
|
84
85
|
_onBeforeSceneRender(engine: any, scene: any, camera: any, renderState: any): void;
|
|
85
86
|
_groundSceneRenderer: GroundSceneRenderer | undefined;
|
|
87
|
+
_cancelTileInArray(cancelTiles: any): void;
|
|
86
88
|
_requestTilesInArray(tiles: any, number: any, onlyRequestGeometry?: boolean): void;
|
|
89
|
+
_collectionCancelTiles(requestTiles: any): any[];
|
|
87
90
|
_selectCurrentFrameRequestTiles(tiles: any, number: any): any;
|
|
88
91
|
beginFrame(renderState: any): void;
|
|
92
|
+
updatePendingRequest(renderState: any): void;
|
|
89
93
|
endFrame(renderState: any): void;
|
|
90
94
|
_computeOccludeePoint(tile: any, occluder: any): any;
|
|
91
95
|
_computeOccludeePoint2(tile: any, occluder: any): any;
|
|
92
|
-
updateTileBoundingRegion(tile: any,
|
|
96
|
+
updateTileBoundingRegion(tile: any, renderState: any): void;
|
|
93
97
|
screenSpaceError(tile: any): number;
|
|
94
98
|
reverseScreenSpaceErrorZ(tile: any): number;
|
|
95
99
|
projectBoundingBoxToNdc(tile: any): any[][];
|
|
96
100
|
_computeTileVisibility(frustum: any, tile: any): any;
|
|
97
101
|
_computeTileVisibility3D(frustum: any, boundingVolume: any): number;
|
|
98
102
|
_naturalOrderChildTiles(tiles: any, cameraPosition: any): any[];
|
|
99
|
-
_createRootTiles(): void;
|
|
100
|
-
_rootTiles: any;
|
|
101
103
|
/**
|
|
102
104
|
* @internal
|
|
103
105
|
* 显示一帧的加载日志
|
|
@@ -156,6 +158,7 @@ export class MapSurface {
|
|
|
156
158
|
* 获取细节层次缩放因子
|
|
157
159
|
*/
|
|
158
160
|
get lodScaleFactor(): number;
|
|
161
|
+
get computedLodScaleFactor(): number;
|
|
159
162
|
set showGroundWireframe(value: boolean);
|
|
160
163
|
get showGroundWireframe(): boolean;
|
|
161
164
|
_groundWireframeMaterial: any;
|
|
@@ -45,7 +45,7 @@ export class FastTileLoaderStrategy extends Strategy {
|
|
|
45
45
|
* @returns {boolean} 是否是子瓦片
|
|
46
46
|
*/
|
|
47
47
|
_isAncestorTile: (currentTile: MapTile, ancestorTile: MapTile) => boolean;
|
|
48
|
-
_preserveLastFrameChildrenTiles: (tile: any, renderedTiles: any) => number;
|
|
48
|
+
_preserveLastFrameChildrenTiles: (tile: any, renderedTiles: any, renderState: any) => number;
|
|
49
49
|
_isTileRenderedInLastFrame: (tile: any) => boolean;
|
|
50
50
|
_isTileAncestorRenderedInLastFrame: (tile: any) => true | undefined;
|
|
51
51
|
_hideChildrenTiles: (renderedTiles: any, placeholderTiles: any, tile: any) => number;
|
|
@@ -82,8 +82,8 @@ export class FastTileLoaderStrategy extends Strategy {
|
|
|
82
82
|
* @param {Array} tiles 瓦片数组
|
|
83
83
|
* @param {Array} viewportTiles 主视野内的瓦片数组
|
|
84
84
|
*/
|
|
85
|
-
_traverseViewportTiles: (projectionBounds: Box3, frustum: Frustum, cameraPosition: Vector3, tiles: any[], viewportTiles: any[]) => void;
|
|
86
|
-
_computeIntersectTiles(frustum: any, cameraPosition: any, tile: any, renderedTiles: any, requestTiles: any, placeholderTiles: any, maxZLevel: any): MapTileRenderState;
|
|
85
|
+
_traverseViewportTiles: (projectionBounds: Box3, frustum: Frustum, cameraPosition: Vector3, tiles: any[], viewportTiles: any[], renderState: any) => void;
|
|
86
|
+
_computeIntersectTiles(frustum: any, cameraPosition: any, tile: any, renderedTiles: any, requestTiles: any, placeholderTiles: any, maxZLevel: any, renderState: any): MapTileRenderState;
|
|
87
87
|
getPolygonArea(vertices: any): number;
|
|
88
88
|
set showDebug(value: boolean);
|
|
89
89
|
get showDebug(): boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export class RasterSurfaceTileManager extends SurfaceTileManager {
|
|
2
2
|
/** @private */
|
|
3
3
|
private _tiles;
|
|
4
|
+
_layersKey: string;
|
|
4
5
|
forceUpdateTileState(tile: any): void;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
isTileStable(tile: any): boolean;
|
|
6
|
+
isTileComputable(tile: any, renderState: any): any;
|
|
7
|
+
isTileRenderable(tile: any, renderState: any): boolean;
|
|
8
|
+
isTileStable(tile: any, renderState: any): boolean;
|
|
9
9
|
markTileUsed(tile: any): null | undefined;
|
|
10
10
|
getSurfaceTile(tile: any, renderState: any): any;
|
|
11
11
|
_updateSurfaceTileData(data: any): void;
|
|
@@ -8,8 +8,11 @@ export class SurfaceTileManager {
|
|
|
8
8
|
/** @private */
|
|
9
9
|
private _surface;
|
|
10
10
|
_pendingCount: number;
|
|
11
|
-
|
|
11
|
+
beginFrame(renderState: any): void;
|
|
12
|
+
endFrame(renderState: any): void;
|
|
13
|
+
getSurfaceTile(tile: any, renderState: any): void;
|
|
12
14
|
requestSurfaceTile(tile: any): void;
|
|
15
|
+
cancelSurfaceTiles(tile: any): void;
|
|
13
16
|
dispose(): void;
|
|
14
17
|
get pendingCount(): number;
|
|
15
18
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
export class VectorSurfaceTileManager extends SurfaceTileManager {
|
|
2
2
|
/** @private */
|
|
3
3
|
private _tiles;
|
|
4
|
-
isTileRenderable(tile: any): boolean;
|
|
4
|
+
isTileRenderable(tile: any, renderState: any): boolean;
|
|
5
5
|
markTileUsed(tile: any): null | undefined;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
isTileStable(tile: any): boolean;
|
|
6
|
+
isTileComputable(tile: any, renderState: any): any;
|
|
7
|
+
isTileStable(tile: any, renderState: any): boolean;
|
|
9
8
|
/**
|
|
10
9
|
* 更新图形对象
|
|
11
10
|
*
|
|
12
11
|
* @param data 数据信息,包含需要更新的图形对象数据及其状态等信息。
|
|
13
12
|
*/
|
|
14
13
|
_updateSurfaceTileData(data: any): void;
|
|
15
|
-
getSurfaceTile(tile: any): any;
|
|
14
|
+
getSurfaceTile(tile: any, renderState: any): any;
|
|
16
15
|
_onlyRequestTileContents(data: any): void;
|
|
17
16
|
clear(): void;
|
|
18
17
|
}
|
|
@@ -27,4 +27,4 @@ export class AsyncCesiumTerrainDataLoader {
|
|
|
27
27
|
postMessageToAll(message: any, transferableData: any): void;
|
|
28
28
|
}
|
|
29
29
|
import { WorkerTaskScheduler } from '../../../util/WorkerTaskScheduler';
|
|
30
|
-
import { QuantizedMeshTerrainData } from '../terrainData/QuantizedMeshTerrainData';
|
|
30
|
+
import { QuantizedMeshTerrainData } from '../geo/terrainData/QuantizedMeshTerrainData';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 基础影像图层,提供影像图层的基础功能
|
|
3
|
+
*/
|
|
4
|
+
export class BaseImageryTileProvider extends TileProvider {
|
|
5
|
+
/**
|
|
6
|
+
* @param {object} options 配置选项
|
|
7
|
+
* @param {number} [options.opacity] 不透明度,取值范围0-1,默认为1
|
|
8
|
+
* @param {number[]} [options.colorTint] 色彩调整值,RGB分量,默认为[1, 1, 1]
|
|
9
|
+
* @param {boolean} [options.randomColorTint] 是否使用随机色彩调整,默认为false
|
|
10
|
+
* @param {Color} [options.placeholderColor] 占位符颜色
|
|
11
|
+
*/
|
|
12
|
+
constructor(options?: {
|
|
13
|
+
opacity?: number | undefined;
|
|
14
|
+
colorTint?: number[] | undefined;
|
|
15
|
+
randomColorTint?: boolean | undefined;
|
|
16
|
+
placeholderColor?: any;
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* 是否为基础影像瓦片提供者
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
readonly isBaseImageryTileProvider: true;
|
|
23
|
+
/**
|
|
24
|
+
* 瓦片提供者名称
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
readonly name: "BaseImageryTileProvider";
|
|
28
|
+
/**
|
|
29
|
+
* @private
|
|
30
|
+
* @type {number}
|
|
31
|
+
* 不透明度,取值范围0-1
|
|
32
|
+
*/
|
|
33
|
+
private _opacity;
|
|
34
|
+
/**
|
|
35
|
+
* @private
|
|
36
|
+
* @type {number[]}
|
|
37
|
+
* 色彩调整值,RGB分量
|
|
38
|
+
*/
|
|
39
|
+
private _colorTint;
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* 是否使用随机色彩调整
|
|
44
|
+
*/
|
|
45
|
+
private _randomColorTint;
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* 是否绘制调试标签
|
|
50
|
+
*/
|
|
51
|
+
private _addDebugLabel;
|
|
52
|
+
_placeholderColor: any;
|
|
53
|
+
/**
|
|
54
|
+
* 请求瓦片数据
|
|
55
|
+
* 子类需要重写doRequestImageTileData方法
|
|
56
|
+
* @param {object} tile 瓦片对象
|
|
57
|
+
* @param {object} surfaceTile 表面瓦片对象
|
|
58
|
+
* @returns {Promise<Texture>} 瓦片纹理
|
|
59
|
+
* @abstract
|
|
60
|
+
*/
|
|
61
|
+
doRequestTileData(tile: object, surfaceTile: object): Promise<Texture>;
|
|
62
|
+
/**
|
|
63
|
+
* 设置不透明度
|
|
64
|
+
* @param {number} opacity 不透明度,取值范围0-1
|
|
65
|
+
*/
|
|
66
|
+
set opacity(opacity: number);
|
|
67
|
+
/**
|
|
68
|
+
* 获取不透明度
|
|
69
|
+
* @type {number}
|
|
70
|
+
*/
|
|
71
|
+
get opacity(): number;
|
|
72
|
+
/**
|
|
73
|
+
* 设置色彩调整值
|
|
74
|
+
* @param {number[]} colorTint 色彩调整值,RGB分量
|
|
75
|
+
*/
|
|
76
|
+
set colorTint(colorTint: number[]);
|
|
77
|
+
/**
|
|
78
|
+
* 获取色彩调整值
|
|
79
|
+
* @type {number[]}
|
|
80
|
+
*/
|
|
81
|
+
get colorTint(): number[];
|
|
82
|
+
/**
|
|
83
|
+
* 设置是否使用随机色彩调整
|
|
84
|
+
* @param {boolean} randomColorTint 是否使用随机色彩调整
|
|
85
|
+
*/
|
|
86
|
+
set randomColorTint(randomColorTint: boolean);
|
|
87
|
+
/**
|
|
88
|
+
* 获取是否使用随机色彩调整
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
*/
|
|
91
|
+
get randomColorTint(): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* 设置是否绘制调试标签
|
|
94
|
+
* @param {boolean} addDebugLabel 是否绘制调试标签
|
|
95
|
+
*/
|
|
96
|
+
set addDebugLabel(addDebugLabel: boolean);
|
|
97
|
+
/**
|
|
98
|
+
* 获取是否绘制调试标签
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
*/
|
|
101
|
+
get addDebugLabel(): boolean;
|
|
102
|
+
}
|
|
103
|
+
import { TileProvider } from './TileProvider';
|
|
@@ -25,6 +25,10 @@ export class TileProvider {
|
|
|
25
25
|
maxCacheSize: number;
|
|
26
26
|
});
|
|
27
27
|
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* 是否可见
|
|
30
|
+
*/
|
|
31
|
+
visible: boolean;
|
|
28
32
|
/**
|
|
29
33
|
* @private
|
|
30
34
|
*/
|
|
@@ -75,9 +79,9 @@ export class TileProvider {
|
|
|
75
79
|
*/
|
|
76
80
|
private _desiredUpperSampleLevel;
|
|
77
81
|
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
* @private
|
|
83
|
+
* 期望层级的瓦片加载过程中向上采样级数
|
|
84
|
+
*/
|
|
81
85
|
private _loadingUpperSampleLevel;
|
|
82
86
|
/**
|
|
83
87
|
* @private
|
|
@@ -146,10 +150,21 @@ export class TileProvider {
|
|
|
146
150
|
private _useWebMeractorProjectionAndGrid;
|
|
147
151
|
/**
|
|
148
152
|
* @private
|
|
149
|
-
*
|
|
153
|
+
* 标记请求的数据版本,数据在请求过程中,provider的配置如果已经变更,数据返回时需校验
|
|
154
|
+
*/
|
|
155
|
+
private _requestDataVersion;
|
|
156
|
+
/**
|
|
157
|
+
* @private
|
|
158
|
+
* 标记是否要清空缓存
|
|
159
|
+
*/
|
|
160
|
+
private _needsClearCache;
|
|
161
|
+
/**
|
|
162
|
+
* @private
|
|
163
|
+
* 标记是否要更新瓦片版本,更新瓦片版本会让surface重新计算瓦片依赖关系
|
|
150
164
|
*/
|
|
151
|
-
private
|
|
152
|
-
|
|
165
|
+
private _needsIncreTilesEpoch;
|
|
166
|
+
_id: number;
|
|
167
|
+
_needFallback: any;
|
|
153
168
|
statistics: {
|
|
154
169
|
loading: number;
|
|
155
170
|
cached: number;
|
|
@@ -165,7 +180,6 @@ export class TileProvider {
|
|
|
165
180
|
beginFrame(renderState: any): void;
|
|
166
181
|
_usedTilesNum: number | undefined;
|
|
167
182
|
_usedTiles: {} | undefined;
|
|
168
|
-
_needsClearCache: boolean | undefined;
|
|
169
183
|
endFrame(renderState: any): void;
|
|
170
184
|
isReady(): boolean;
|
|
171
185
|
onTileDispose(tile: any): void;
|
|
@@ -176,11 +190,13 @@ export class TileProvider {
|
|
|
176
190
|
_initOrUpdateTileStateListeners: (tile: any, listenrObject: any) => void;
|
|
177
191
|
requestTileData(tile: any, stateListenerObject: any): Promise<void>;
|
|
178
192
|
getGroundTileData(tile: any): null;
|
|
179
|
-
getTile(z: any, x: any, y: any, targetTile: any,
|
|
193
|
+
getTile(z: any, x: any, y: any, targetTile: any, surfaceTile: any): any;
|
|
180
194
|
markTileUsed(tile: any): void;
|
|
181
195
|
_tileLevelInRange(level: any): boolean;
|
|
182
196
|
computeCoverageTilesCoord(targetTile: any): any;
|
|
183
|
-
|
|
197
|
+
_clearCache(): void;
|
|
198
|
+
_increTilesEpoch(): void;
|
|
199
|
+
get id(): number;
|
|
184
200
|
set maxCacheSize(value: number);
|
|
185
201
|
get maxCacheSize(): number;
|
|
186
202
|
set desiredUpperSampleLevel(value: number);
|
|
@@ -1,14 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 百度09影像瓦片提供者,用于加载和渲染百度地图的影像瓦片数据。
|
|
3
|
+
* 支持Web墨卡托和地理坐标两种投影方式,提供卫星影像和普通影像两种类型。
|
|
4
|
+
*
|
|
5
|
+
* 主要功能:
|
|
6
|
+
* - 支持百度地图影像瓦片加载
|
|
7
|
+
* - 支持Web墨卡托和地理坐标投影
|
|
8
|
+
* - 支持卫星影像和普通影像切换
|
|
9
|
+
* - 自动处理百度地图坐标转换
|
|
10
|
+
*
|
|
11
|
+
* @category MapView
|
|
12
|
+
* @example
|
|
13
|
+
* ```javascript
|
|
14
|
+
* // 创建百度09影像瓦片提供者(普通影像)
|
|
15
|
+
* const provider = new mapvthree.Baidu09ImageryTileProvider({
|
|
16
|
+
* ak: 'your_baidu_ak',
|
|
17
|
+
* type: 'normal'
|
|
18
|
+
* });
|
|
19
|
+
*
|
|
20
|
+
* // 创建百度09影像瓦片提供者(卫星影像)
|
|
21
|
+
* const satelliteProvider = new mapvthree.Baidu09ImageryTileProvider({
|
|
22
|
+
* ak: 'your_baidu_ak',
|
|
23
|
+
* type: 'satellite'
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
1
27
|
export class Baidu09ImageryTileProvider extends ImageryTileProvider {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
28
|
+
/**
|
|
29
|
+
* @param {object} options 配置选项
|
|
30
|
+
* @param {string} [options.ak] 百度地图API密钥,如果不提供则使用全局配置
|
|
31
|
+
* @param {string} [options.type] 影像类型,支持 'satellite'(卫星影像)和 'normal'(普通影像),默认为 'normal'
|
|
32
|
+
*/
|
|
33
|
+
constructor(options: {
|
|
34
|
+
ak?: string | undefined;
|
|
35
|
+
type?: string | undefined;
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* 瓦片提供者名称
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
readonly name: "Baidu09ImageryTileProvider";
|
|
42
|
+
/**
|
|
43
|
+
* 是否为百度地图提供者
|
|
44
|
+
* @readonly
|
|
45
|
+
*/
|
|
46
|
+
readonly isBaiduProvider: true;
|
|
47
|
+
/**
|
|
48
|
+
* 支持的投影方式
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
5
51
|
private _supportedTargetProjectionNames;
|
|
6
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* 默认起始缩放级别
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
7
56
|
private _defaultStartLevel;
|
|
8
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* 默认最大缩放级别
|
|
59
|
+
* @private
|
|
60
|
+
*/
|
|
9
61
|
private _defaultMaxLevel;
|
|
10
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* 影像类型(satellite或normal)
|
|
64
|
+
* @private
|
|
65
|
+
*/
|
|
11
66
|
private _type;
|
|
12
|
-
|
|
67
|
+
_ak: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* 获取瓦片URL
|
|
70
|
+
* @param {number} z 缩放级别
|
|
71
|
+
* @param {number} x 瓦片X坐标
|
|
72
|
+
* @param {number} y 瓦片Y坐标
|
|
73
|
+
* @param {object} tile 瓦片对象
|
|
74
|
+
* @returns {string|boolean} 瓦片URL或false(如果缩放级别小于3)
|
|
75
|
+
*/
|
|
76
|
+
getTileURL(z: number, x: number, y: number, tile: object): string | boolean;
|
|
13
77
|
}
|
|
14
78
|
import { ImageryTileProvider } from './ImageryTileProvider';
|