@baidumap/mapv-three 1.2.1 → 1.3.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/markers/mkr_end.png +0 -0
- package/dist/assets/images/markers/mkr_red_1.png +0 -0
- package/dist/assets/images/markers/mkr_red_10.png +0 -0
- package/dist/assets/images/markers/mkr_red_2.png +0 -0
- package/dist/assets/images/markers/mkr_red_3.png +0 -0
- package/dist/assets/images/markers/mkr_red_4.png +0 -0
- package/dist/assets/images/markers/mkr_red_5.png +0 -0
- package/dist/assets/images/markers/mkr_red_6.png +0 -0
- package/dist/assets/images/markers/mkr_red_7.png +0 -0
- package/dist/assets/images/markers/mkr_red_8.png +0 -0
- package/dist/assets/images/markers/mkr_red_9.png +0 -0
- package/dist/assets/images/markers/mkr_start.png +0 -0
- package/dist/assets/images/markers/mkr_transit_airplane.png +0 -0
- package/dist/assets/images/markers/mkr_transit_bus.png +0 -0
- package/dist/assets/images/markers/mkr_transit_car.png +0 -0
- package/dist/assets/images/markers/mkr_transit_subway.png +0 -0
- package/dist/assets/images/markers/mkr_transit_train.png +0 -0
- package/dist/assets/images/markers/mkr_transit_walking.png +0 -0
- package/dist/assets/images/markers/mkr_waypoint.png +0 -0
- package/dist/assets/textures/roadpile/blue.png +0 -0
- package/dist/assets/textures/roadpile/brown.png +0 -0
- package/dist/assets/textures/roadpile/green.png +0 -0
- package/dist/mapvthree.module.js +18772 -16464
- package/dist/mapvthree.umd.js +6 -6
- package/dist/types/index.d.ts +2 -8
- package/dist/types/index.open.d.ts +1 -0
- package/dist/types/threejs/materials/natural/WaterMaterial.d.ts +3 -0
- package/dist/types/threejs/materials/point/Icon.d.ts +1 -0
- package/dist/types/threejs/objects/point/Label.d.ts +3 -0
- package/dist/types/threemap/3dtiles/cesium/Cesium3DTileset.d.ts +5 -0
- package/dist/types/threemap/3dtiles/elements/TileInstancedElementManager.d.ts +98 -0
- package/dist/types/threemap/engine/Rendering.d.ts +0 -2
- package/dist/types/threemap/mapView/configs.d.ts +6 -1
- package/dist/types/threemap/mapView/tileProvider/imagery/Baidu09ImageryTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/imagery/TiandituImageryTileProvider.d.ts +1 -1
- package/dist/types/threemap/mapView/tileProvider/imagery/XYZImageryTileProvider.d.ts +1 -1
- package/dist/types/threemap/overlay/DOMOverlay.d.ts +9 -2
- package/dist/types/threemap/overlay/Marker.d.ts +2 -2
- package/dist/types/threemap/services/autoComplete/AutoComplete.d.ts +147 -0
- package/dist/types/threemap/services/autoComplete/AutoComplete_Bd.d.ts +154 -0
- package/dist/types/threemap/services/boundary/Boundary.d.ts +69 -0
- package/dist/types/threemap/services/boundary/Boundary_Bd.d.ts +56 -0
- package/dist/types/threemap/services/boundary/Boundary_Tdt.d.ts +17 -0
- package/dist/types/threemap/services/common/baiduCommon.d.ts +136 -0
- package/dist/types/threemap/services/common/baiduRequest.d.ts +3 -0
- package/dist/types/threemap/services/common/baiduUtils.d.ts +13 -0
- package/dist/types/threemap/services/common/tdtRequest.d.ts +34 -0
- package/dist/types/threemap/services/configs.d.ts +10 -0
- package/dist/types/threemap/services/constants.d.ts +8 -0
- package/dist/types/threemap/services/district/DistrictLayer.d.ts +167 -0
- package/dist/types/threemap/services/district/DistrictLayer_Bd.d.ts +41 -0
- package/dist/types/threemap/services/district/DistrictLayer_Tdt.d.ts +47 -0
- package/dist/types/threemap/services/geocoder/Geocoder.d.ts +100 -0
- package/dist/types/threemap/services/geocoder/Geocoder_Bd.d.ts +24 -0
- package/dist/types/threemap/services/geocoder/Geocoder_Tdt.d.ts +10 -0
- package/dist/types/threemap/services/index.d.ts +11 -0
- package/dist/types/threemap/services/localSearch/LocalResult.d.ts +47 -0
- package/dist/types/threemap/services/localSearch/LocalSearch.d.ts +175 -0
- package/dist/types/threemap/services/localSearch/LocalSearch_Bd.d.ts +18 -0
- package/dist/types/threemap/services/localSearch/LocalSearch_Tdt.d.ts +6 -0
- package/dist/types/threemap/services/routeSearch/BaseRoute.d.ts +113 -0
- package/dist/types/threemap/services/routeSearch/DWRoute_Bd.d.ts +46 -0
- package/dist/types/threemap/services/routeSearch/DWRoute_Tdt.d.ts +8 -0
- package/dist/types/threemap/services/routeSearch/DrivingRoute.d.ts +113 -0
- package/dist/types/threemap/services/routeSearch/RidingRoute.d.ts +63 -0
- package/dist/types/threemap/services/routeSearch/RouteResult.d.ts +39 -0
- package/dist/types/threemap/services/routeSearch/TransitRoute.d.ts +111 -0
- package/dist/types/threemap/services/routeSearch/TransitRoute_Bd.d.ts +33 -0
- package/dist/types/threemap/services/routeSearch/TransitRoute_Tdt.d.ts +9 -0
- package/dist/types/threemap/services/routeSearch/WalkingRoute.d.ts +69 -0
- package/package.json +1 -1
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat0_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level12_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level18_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level1_Repeat0_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat0_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level23_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level2_Repeat1_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat1_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level3_Repeat2_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level4_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level6_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_DiffuseMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_EmissiveMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_NormalMap.PNG +0 -0
- package/dist/assets/textures/building/1024/Level7_Repeat3_RR1_Grid8_0_LOD0_Res1024_RoughnessMap.PNG +0 -0
- package/dist/assets/textures/building/ac1.png +0 -0
- package/dist/assets/textures/building/black.png +0 -0
- package/dist/assets/textures/building/buiding_normal.jpg +0 -0
- package/dist/assets/textures/building/buiding_roughness.jpg +0 -0
- package/dist/assets/textures/building/building2_atlas_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building2_atlas_diffuse_debug.jpg +0 -0
- package/dist/assets/textures/building/building3_atlas_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building3_atlas_metallic_roughness.jpg +0 -0
- package/dist/assets/textures/building/building3_atlas_normal.jpg +0 -0
- package/dist/assets/textures/building/building4_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_emissive.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_metallic_roughness.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_normal.jpg +0 -0
- package/dist/assets/textures/building/building_atlas_roughness.jpg +0 -0
- package/dist/assets/textures/building/building_diffuse.jpg +0 -0
- package/dist/assets/textures/building/building_side.jpg +0 -0
- package/dist/assets/textures/realistic/Albedo_2K_vl1lfb3fw_512.jpg +0 -0
- package/dist/assets/textures/realistic/Albedo_2K_xdhhdhl_512.jpg +0 -0
- package/dist/assets/textures/realistic/Grass_1_S.jpg +0 -0
- package/dist/assets/textures/realistic/Green_dark.jpg +0 -0
- package/dist/assets/textures/realistic/Road.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_ao.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_height.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_normal.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_10_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_albedo.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_ao.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_ao.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_height.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_height.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_normal.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_normal.tif +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/Road_Asphalt_roughness.tif +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Asphalt_Base10_2x2_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Concrete_WW2_2x2_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Concrete_WW2_2x2_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Concrete_WW2_2x2_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Green_Default_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Greenbelt_Default_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Ground_RockBed4_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Moss_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Nature_Pebbles_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Bitumen_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Road_Default_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Roofing_Bitumen_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_emissive.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_metallic.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise4_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_emissive.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_metallic.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise5_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_albedo.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_ao.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_emissive.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_height.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_metallic.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_normal.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise6_512_roughness.jpg +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_albedo.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_ao.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_emissive.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_normal.png +0 -0
- package/dist/assets/textures/realistic/TexturesCom_Various_HighRise_512_roughness.png +0 -0
- package/dist/types/threemap/controls/measure/CurvatureMeasure.d.ts +0 -7
- package/dist/types/threemap/controls/measure/SlopeMeasure.d.ts +0 -49
- package/dist/types/threemap/services/CurvatureService.d.ts +0 -18
- package/dist/types/threemap/services/GeoCombinedService.d.ts +0 -13
- package/dist/types/threemap/services/PoiService.d.ts +0 -39
- package/dist/types/threemap/services/RoadService.d.ts +0 -39
- package/dist/types/threemap/services/RouteService.d.ts +0 -34
- package/dist/types/threemap/services/Service.d.ts +0 -46
- /package/dist/assets/textures/{realistic → weather}/TexturesCom_Ground_MudWet_512_roughness.jpg +0 -0
- /package/dist/assets/textures/{realistic → weather}/TexturesCom_Snow_Plain_3x3_512_height.jpg +0 -0
- /package/dist/assets/textures/{realistic → weather}/TexturesCom_Snow_Plain_3x3_512_noise.jpg +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -84,8 +84,6 @@ export { Measure } from "./threemap/controls/measure/Measure";
|
|
|
84
84
|
export { LengthMeasure } from "./threemap/controls/measure/LengthMeasure";
|
|
85
85
|
export { AreaMeasure } from "./threemap/controls/measure/AreaMeasure";
|
|
86
86
|
export { PointMeasure } from "./threemap/controls/measure/PointMeasure";
|
|
87
|
-
export { SlopeMeasure } from "./threemap/controls/measure/SlopeMeasure";
|
|
88
|
-
export { CurvatureMeasure } from "./threemap/controls/measure/CurvatureMeasure";
|
|
89
87
|
export { ClippingPlaneCollection } from "./threemap/gis/clip/ClippingPlaneCollection";
|
|
90
88
|
export { ClippingPlane } from "./threemap/gis/clip/ClippingPlane";
|
|
91
89
|
export { TerrainClipPlan } from "./threemap/gis/clip/TerrainClipPlan";
|
|
@@ -103,12 +101,7 @@ export { DOMOverlay } from "./threemap/overlay/DOMOverlay";
|
|
|
103
101
|
export { Popup } from "./threemap/overlay/Popup";
|
|
104
102
|
export { Marker } from "./threemap/overlay/Marker";
|
|
105
103
|
export { LodModelCache } from "./threemap/model/LodModelCache";
|
|
106
|
-
export
|
|
107
|
-
export { RouteService } from "./threemap/services/RouteService";
|
|
108
|
-
export { CurvatureService } from "./threemap/services/CurvatureService";
|
|
109
|
-
export { PoiService } from "./threemap/services/PoiService";
|
|
110
|
-
export { RoadService } from "./threemap/services/RoadService";
|
|
111
|
-
export { GeoCombinedService } from "./threemap/services/GeoCombinedService";
|
|
104
|
+
export * as Services from "./threemap/services/index";
|
|
112
105
|
export { Twin } from "./threemap/twin/Twin";
|
|
113
106
|
export { MockTwin } from "./threemap/twin/MockTwin";
|
|
114
107
|
export * as twinConstants from "./threemap/twin/constants";
|
|
@@ -172,6 +165,7 @@ export * as colorUtils from "./util/colorUtils";
|
|
|
172
165
|
export * as modelUtils from "./threejs/utils/model";
|
|
173
166
|
export * as requestUtils from "./util/request";
|
|
174
167
|
export * as objectUtils from "./util/object";
|
|
168
|
+
export * as cssUtils from "./util/css";
|
|
175
169
|
export { Cartesian3 } from "./threemap/engine/map/earth/Cartesian3";
|
|
176
170
|
export * as Earth from "./threemap/engine/map/earth/exports";
|
|
177
171
|
export * from "./threemap/constants";
|
|
@@ -39,6 +39,7 @@ export { JSONDataSource } from "./threemap/dataSource/JSONDataSource";
|
|
|
39
39
|
export { DOMOverlay } from "./threemap/overlay/DOMOverlay";
|
|
40
40
|
export { Popup } from "./threemap/overlay/Popup";
|
|
41
41
|
export { Marker } from "./threemap/overlay/Marker";
|
|
42
|
+
export * as Services from "./threemap/services/index";
|
|
42
43
|
export { GeoInstancedMesh } from "./threejs/objects/GeoInstancedMesh";
|
|
43
44
|
export { SimplePoint } from "./threejs/objects/point/SimplePoint";
|
|
44
45
|
export { EffectPoint } from "./threejs/objects/point/EffectPoint";
|
|
@@ -177,6 +177,7 @@ export class Label extends GeoMesh {
|
|
|
177
177
|
* @param {Boolean} [parameters.transparent=false] 是否透明
|
|
178
178
|
* @param {Array} [parameters.pixelOffset] 像素偏移, 默认[0,0]
|
|
179
179
|
* @param {Array} [parameters.positionOffset] 坐标偏移, 默认[0,0]
|
|
180
|
+
* @param {Array} [parameters.useIconScale] 是否使用图片自身的比例
|
|
180
181
|
*/
|
|
181
182
|
constructor(parameters?: {
|
|
182
183
|
vertexIcons?: boolean | undefined;
|
|
@@ -200,6 +201,7 @@ export class Label extends GeoMesh {
|
|
|
200
201
|
transparent?: boolean | undefined;
|
|
201
202
|
pixelOffset?: any[] | undefined;
|
|
202
203
|
positionOffset?: any[] | undefined;
|
|
204
|
+
useIconScale?: any[] | undefined;
|
|
203
205
|
});
|
|
204
206
|
isEventEntitySupported: boolean;
|
|
205
207
|
/**
|
|
@@ -250,6 +252,7 @@ export class Label extends GeoMesh {
|
|
|
250
252
|
_iconHeight: any;
|
|
251
253
|
_offset: any;
|
|
252
254
|
_fadeData: FadeData;
|
|
255
|
+
_useIconScale: any;
|
|
253
256
|
fontAtalasManager: FontAtlasManager;
|
|
254
257
|
iconCanvas: HTMLCanvasElement | undefined;
|
|
255
258
|
iconCtx: CanvasRenderingContext2D | null | undefined;
|
|
@@ -10,7 +10,12 @@ export class Cesium3DTileset {
|
|
|
10
10
|
static supportedExtensions: {
|
|
11
11
|
'3DTILES_metadata': boolean;
|
|
12
12
|
'3DTILES_implicit_tiling': boolean;
|
|
13
|
+
'3DTILES_content_gltf': boolean;
|
|
13
14
|
'3DTILES_multiple_contents': boolean;
|
|
15
|
+
'3DTILES_bounding_volume_S2': boolean;
|
|
16
|
+
'3DTILES_batch_table_hierarchy': boolean;
|
|
17
|
+
'3DTILES_draco_point_compression': boolean;
|
|
18
|
+
MAXAR_content_geojson: boolean;
|
|
14
19
|
};
|
|
15
20
|
static checkSupportedExtensions: (extensionsRequired: any) => void;
|
|
16
21
|
static fromAssetId(assetId: any, options: any): Promise<Cesium3DTileset>;
|
|
@@ -5,6 +5,8 @@ export class TileInstancedElementManager {
|
|
|
5
5
|
private _updateDelayTimerHander;
|
|
6
6
|
/** @private */
|
|
7
7
|
private _configVersion;
|
|
8
|
+
/** @private */
|
|
9
|
+
private _poiConfigVersion;
|
|
8
10
|
_poiConfig: {
|
|
9
11
|
poi: {
|
|
10
12
|
enabled: boolean;
|
|
@@ -24,6 +26,7 @@ export class TileInstancedElementManager {
|
|
|
24
26
|
private _poiEnabled;
|
|
25
27
|
group: any;
|
|
26
28
|
_modelMeshSingleton: PromisedSingleton;
|
|
29
|
+
_hiddenDataTypes: Set<any>;
|
|
27
30
|
_generateModelMesh: (key: any) => Promise<any>;
|
|
28
31
|
markNeedsUpdate: () => void;
|
|
29
32
|
getIconUrl(mapUrl: any): string;
|
|
@@ -54,6 +57,96 @@ export class TileInstancedElementManager {
|
|
|
54
57
|
removeLabels(labels: any): void;
|
|
55
58
|
addLabel(label: any, instance: any): void;
|
|
56
59
|
removeLabel(label: any, instance: any): void;
|
|
60
|
+
/**
|
|
61
|
+
* 设置POI配置
|
|
62
|
+
* @param {Object} poiConfig - POI配置对象
|
|
63
|
+
* @param {Object} poiConfig.poi - POI配置
|
|
64
|
+
* @param {boolean} poiConfig.poi.enabled - 是否启用POI
|
|
65
|
+
* @param {Object} poiConfig.label - 标签配置
|
|
66
|
+
* @param {boolean} poiConfig.label.enabled - 是否启用标签
|
|
67
|
+
* @example
|
|
68
|
+
* manager.setPoiConfig({
|
|
69
|
+
* poi: { enabled: true },
|
|
70
|
+
* label: { enabled: false },
|
|
71
|
+
* restaurant: { enabled: true },
|
|
72
|
+
* hotel: { enabled: false }
|
|
73
|
+
* });
|
|
74
|
+
*/
|
|
75
|
+
setPoiConfig(poiConfig: {
|
|
76
|
+
poi: {
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
};
|
|
79
|
+
label: {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
};
|
|
82
|
+
}): this;
|
|
83
|
+
/**
|
|
84
|
+
* 获取当前POI配置
|
|
85
|
+
* @returns {Object} 当前POI配置
|
|
86
|
+
*/
|
|
87
|
+
getPoiConfig(): Object;
|
|
88
|
+
/**
|
|
89
|
+
* 启用指定类型的POI
|
|
90
|
+
* @param {string} type - POI类型
|
|
91
|
+
* @example
|
|
92
|
+
* manager.enablePoiType('poi');
|
|
93
|
+
* manager.enablePoiType('restaurant');
|
|
94
|
+
*/
|
|
95
|
+
enablePoiType(type: string): this;
|
|
96
|
+
/**
|
|
97
|
+
* 禁用指定类型的POI
|
|
98
|
+
* @param {string} type - POI类型
|
|
99
|
+
* @example
|
|
100
|
+
* manager.disablePoiType('poi');
|
|
101
|
+
* manager.disablePoiType('restaurant');
|
|
102
|
+
*/
|
|
103
|
+
disablePoiType(type: string): this;
|
|
104
|
+
/**
|
|
105
|
+
* 切换指定类型POI的显示状态
|
|
106
|
+
* @param {string} type - POI类型
|
|
107
|
+
* @returns {boolean} 切换后的状态
|
|
108
|
+
* @example
|
|
109
|
+
* const isEnabled = manager.togglePoiType('poi');
|
|
110
|
+
*/
|
|
111
|
+
togglePoiType(type: string): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* 检查指定类型的POI是否启用
|
|
114
|
+
* @param {string} type - POI类型
|
|
115
|
+
* @returns {boolean} 是否启用
|
|
116
|
+
*/
|
|
117
|
+
isPoiTypeEnabled(type: string): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* 获取所有可用的POI类型
|
|
120
|
+
* @returns {string[]} POI类型数组
|
|
121
|
+
*/
|
|
122
|
+
getAvailablePoiTypes(): string[];
|
|
123
|
+
/**
|
|
124
|
+
* 隐藏指定的dataType
|
|
125
|
+
* @param {string|number} dataType - 要隐藏的数据类型
|
|
126
|
+
*/
|
|
127
|
+
hideDataType(dataType: string | number): this;
|
|
128
|
+
/**
|
|
129
|
+
* 显示指定的dataType
|
|
130
|
+
* @param {string|number} dataType - 要显示的数据类型
|
|
131
|
+
*/
|
|
132
|
+
showDataType(dataType: string | number): this;
|
|
133
|
+
/**
|
|
134
|
+
* 切换dataType的显示状态
|
|
135
|
+
* @param {string|number} dataType - 数据类型
|
|
136
|
+
* @returns {boolean} 切换后是否可见(true=可见,false=隐藏)
|
|
137
|
+
*/
|
|
138
|
+
toggleDataType(dataType: string | number): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* 检查dataType是否可见
|
|
141
|
+
* @param {string|number} dataType - 数据类型
|
|
142
|
+
* @returns {boolean} 是否可见
|
|
143
|
+
*/
|
|
144
|
+
isDataTypeVisible(dataType: string | number): boolean;
|
|
145
|
+
/**
|
|
146
|
+
* 获取所有隐藏的dataType列表
|
|
147
|
+
* @returns {Array} 隐藏的dataType数组
|
|
148
|
+
*/
|
|
149
|
+
getHiddenDataTypes(): any[];
|
|
57
150
|
set config(config: {
|
|
58
151
|
tree: {
|
|
59
152
|
enabled: boolean;
|
|
@@ -90,5 +183,10 @@ export class TileInstancedElementManager {
|
|
|
90
183
|
get labelEnabled(): boolean;
|
|
91
184
|
set poiEnabled(enabled: boolean);
|
|
92
185
|
get poiEnabled(): boolean;
|
|
186
|
+
/**
|
|
187
|
+
* 设置POI配置的getter/setter
|
|
188
|
+
*/
|
|
189
|
+
set poiConfig(config: Object);
|
|
190
|
+
get poiConfig(): Object;
|
|
93
191
|
}
|
|
94
192
|
import { PromisedSingleton } from '../../../util/PromisedSingleton';
|
|
@@ -108,7 +108,6 @@ export class EngineRendering {
|
|
|
108
108
|
*
|
|
109
109
|
*/
|
|
110
110
|
private _useHighPrecisionBuffer;
|
|
111
|
-
/** @private */ private _waterReference;
|
|
112
111
|
_useXR: any;
|
|
113
112
|
_stats: RenderingStats;
|
|
114
113
|
_picking: Picking;
|
|
@@ -551,7 +550,6 @@ export class EngineRendering {
|
|
|
551
550
|
* 是否自动计算相机近远裁剪面
|
|
552
551
|
*/
|
|
553
552
|
get clampCameraNearFar(): boolean;
|
|
554
|
-
get hasWater(): boolean;
|
|
555
553
|
}
|
|
556
554
|
import { RenderingStats } from './rendering/Stats';
|
|
557
555
|
import { Picking } from './rendering/Picking';
|
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
* @category MapView
|
|
4
4
|
*/
|
|
5
5
|
export class BaiduMapConfig {
|
|
6
|
+
/**
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
private static _ak;
|
|
6
10
|
/**
|
|
7
11
|
* 百度地图AK,所有百度地图服务都需要使用该AK。获取方式:https://lbsyun.baidu.com/apiconsole/key
|
|
8
12
|
*/
|
|
9
|
-
static ak: null;
|
|
13
|
+
static set ak(value: null);
|
|
14
|
+
static get ak(): null;
|
|
10
15
|
}
|
|
11
16
|
/**
|
|
12
17
|
* Cesium配置
|
|
@@ -30,7 +30,7 @@ export class Baidu09ImageryTileProvider extends ImageryTileProvider {
|
|
|
30
30
|
* @param {string} [options.ak] 百度地图API密钥,如果不提供则使用全局配置
|
|
31
31
|
* @param {string} [options.type] 影像类型,支持 'satellite'(卫星影像)和 'normal'(普通影像),默认为 'normal'
|
|
32
32
|
*/
|
|
33
|
-
constructor(options
|
|
33
|
+
constructor(options?: {
|
|
34
34
|
ak?: string | undefined;
|
|
35
35
|
type?: string | undefined;
|
|
36
36
|
});
|
|
@@ -23,7 +23,7 @@ export class TiandituImageryTileProvider extends ImageryTileProvider {
|
|
|
23
23
|
* @param {object} options 配置选项
|
|
24
24
|
* @param {string} [options.tk] 天地图密钥,如果不提供则使用 TiandituMapConfig.tk
|
|
25
25
|
*/
|
|
26
|
-
constructor(options
|
|
26
|
+
constructor(options?: {
|
|
27
27
|
tk?: string | undefined;
|
|
28
28
|
});
|
|
29
29
|
/**
|
|
@@ -32,7 +32,7 @@ export class XYZImageryTileProvider extends ImageryTileProvider {
|
|
|
32
32
|
* {@link PROJECTION_GEO},默认为 {@link PROJECTION_WEB_MERCATOR}
|
|
33
33
|
* @param {number} [options.maxLevel] 最大缩放级别,默认为18
|
|
34
34
|
*/
|
|
35
|
-
constructor(options
|
|
35
|
+
constructor(options?: {
|
|
36
36
|
url: string;
|
|
37
37
|
projection?: string | undefined;
|
|
38
38
|
maxLevel?: number | undefined;
|
|
@@ -92,13 +92,20 @@ export class DOMOverlay {
|
|
|
92
92
|
get dom(): HTMLElement;
|
|
93
93
|
/**
|
|
94
94
|
* 设置坐标位置
|
|
95
|
-
* @param {Array<number
|
|
95
|
+
* @param {Array<number>|THREE.Vector2|THREE.Vector3} value 坐标位置 [经度, 纬度, 高度] 或 THREE.Vector2/Vector3 对象
|
|
96
96
|
* @example
|
|
97
97
|
* ```javascript
|
|
98
|
+
* // 使用数组
|
|
98
99
|
* overlay.point = [116.404, 39.915, 0];
|
|
100
|
+
*
|
|
101
|
+
* // 使用 THREE.Vector2
|
|
102
|
+
* overlay.point = new THREE.Vector2(116.404, 39.915);
|
|
103
|
+
*
|
|
104
|
+
* // 使用 THREE.Vector3
|
|
105
|
+
* overlay.point = new THREE.Vector3(116.404, 39.915, 0);
|
|
99
106
|
* ```
|
|
100
107
|
*/
|
|
101
|
-
set point(value: Array<number>);
|
|
108
|
+
set point(value: Array<number> | THREE.Vector2 | THREE.Vector3);
|
|
102
109
|
/**
|
|
103
110
|
* 坐标位置 [经度, 纬度, 高度]
|
|
104
111
|
* @type {Array<number>}
|
|
@@ -21,7 +21,7 @@ export class Marker extends DOMOverlay {
|
|
|
21
21
|
* @param {string} [parameters.icon='https://webmap0.bdimg.com/image/api/marker_red.png'] 图标URL
|
|
22
22
|
* @param {number} [parameters.width=25] 图标宽度, 默认值:25
|
|
23
23
|
* @param {number} [parameters.height=25] 图标高度, 默认值:25
|
|
24
|
-
* @param {Array<number
|
|
24
|
+
* @param {Array<number>|THREE.Vector2|THREE.Vector3} [parameters.point] 位置坐标 [经度,纬度,高度] 或 THREE.Vector2/Vector3 对象, 默认值:[0,0,0]
|
|
25
25
|
* @param {Array<number>} [parameters.offset=[0,0]] 像素偏移量, 默认值:[0,0]
|
|
26
26
|
* @param {boolean} [parameters.enableDragging=false] 是否可拖拽, 默认值:false
|
|
27
27
|
*/
|
|
@@ -29,7 +29,7 @@ export class Marker extends DOMOverlay {
|
|
|
29
29
|
icon?: string | undefined;
|
|
30
30
|
width?: number | undefined;
|
|
31
31
|
height?: number | undefined;
|
|
32
|
-
point?: number
|
|
32
|
+
point?: Array<number> | THREE.Vector2 | THREE.Vector3;
|
|
33
33
|
offset?: number[] | undefined;
|
|
34
34
|
enableDragging?: boolean | undefined;
|
|
35
35
|
});
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 地图搜索输入提示服务
|
|
3
|
+
*
|
|
4
|
+
* 支持以下功能:
|
|
5
|
+
* - 实时输入提示和自动完成
|
|
6
|
+
* - 支持多种搜索类型(全部、城市等)
|
|
7
|
+
* - 仅支持百度地图API
|
|
8
|
+
*
|
|
9
|
+
* @category Services
|
|
10
|
+
* @example
|
|
11
|
+
* ```javascript
|
|
12
|
+
* // 创建自动完成服务
|
|
13
|
+
* const autoComplete = new mapvthree.Services.AutoComplete({
|
|
14
|
+
* input: 'searchInput', // 输入框ID
|
|
15
|
+
* types: ['ALL', 'CITY'],
|
|
16
|
+
* maxResults: 10,
|
|
17
|
+
* debounceTime: 200,
|
|
18
|
+
* onSearchComplete: (results) => {
|
|
19
|
+
* console.log('搜索建议:', results);
|
|
20
|
+
* },
|
|
21
|
+
* onError: (error) => {
|
|
22
|
+
* console.error('搜索错误:', error);
|
|
23
|
+
* },
|
|
24
|
+
* });
|
|
25
|
+
* autoComplete.addEventListener('searchComplete', e => console.log('搜索完成'));
|
|
26
|
+
* autoComplete.addEventListener('error', e => console.log('搜索错误'));
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```javascript
|
|
31
|
+
* // 动态设置搜索类型
|
|
32
|
+
* autoComplete.setTypes(['CITY']);
|
|
33
|
+
*
|
|
34
|
+
* // 执行搜索
|
|
35
|
+
* autoComplete.search('北京');
|
|
36
|
+
*
|
|
37
|
+
* // 获取结果
|
|
38
|
+
* const results = autoComplete.getResults();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export class AutoComplete {
|
|
42
|
+
/**
|
|
43
|
+
* 创建自动完成服务实例
|
|
44
|
+
* @param {Object} options 配置参数
|
|
45
|
+
* @param {string|HTMLElement} options.input 输入框DOM元素或ID
|
|
46
|
+
* @param {Array<string>} [options.types=[]] 搜索类型,如['ALL', 'CITY']
|
|
47
|
+
* @param {Array<number>} [options.location] 搜索区域限制 [lng, lat]
|
|
48
|
+
* @param {number} [options.maxResults=10] 最大结果数量
|
|
49
|
+
* @param {number} [options.debounceTime=100] 防抖时间(ms)
|
|
50
|
+
* @param {Function} [options.onSearchComplete] 搜索完成回调
|
|
51
|
+
* @param {Function} [options.onError] 错误回调
|
|
52
|
+
* @param {Function} [options.onNeedData] 需要数据回调
|
|
53
|
+
* @param {string} [options.apiSource] API数据源,目前支持'baidu'
|
|
54
|
+
*/
|
|
55
|
+
constructor(options?: {
|
|
56
|
+
input: string | HTMLElement;
|
|
57
|
+
types?: string[] | undefined;
|
|
58
|
+
location?: number[] | undefined;
|
|
59
|
+
maxResults?: number | undefined;
|
|
60
|
+
debounceTime?: number | undefined;
|
|
61
|
+
onSearchComplete?: Function | undefined;
|
|
62
|
+
onError?: Function | undefined;
|
|
63
|
+
onNeedData?: Function | undefined;
|
|
64
|
+
apiSource?: string | undefined;
|
|
65
|
+
});
|
|
66
|
+
options: {
|
|
67
|
+
input: string | HTMLElement;
|
|
68
|
+
types: Array<string>;
|
|
69
|
+
location: number[] | null;
|
|
70
|
+
maxResults: number;
|
|
71
|
+
debounceTime: number;
|
|
72
|
+
onSearchComplete?: Function | undefined;
|
|
73
|
+
onError?: Function | undefined;
|
|
74
|
+
onNeedData?: Function | undefined;
|
|
75
|
+
apiSource: string;
|
|
76
|
+
};
|
|
77
|
+
apiSource: string;
|
|
78
|
+
_ac: AutoComplete_Bd;
|
|
79
|
+
_isInitialized: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* 创建具体的自动完成实例
|
|
82
|
+
* @param {Object} options 配置选项
|
|
83
|
+
* @returns {AutoComplete_Bd} 自动完成实例
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
86
|
+
private _createInstance;
|
|
87
|
+
_bindEvents(): void;
|
|
88
|
+
/**
|
|
89
|
+
* 初始化组件
|
|
90
|
+
* @returns {AutoComplete} 当前实例,支持链式调用
|
|
91
|
+
* @example
|
|
92
|
+
* ```javascript
|
|
93
|
+
* autoComplete.initialize();
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
initialize(): AutoComplete;
|
|
97
|
+
setPickValue(value: any): void;
|
|
98
|
+
/**
|
|
99
|
+
* 执行搜索
|
|
100
|
+
* @param {string} keyword 搜索关键词
|
|
101
|
+
* @returns {AutoComplete} 当前实例,支持链式调用
|
|
102
|
+
* @example
|
|
103
|
+
* ```javascript
|
|
104
|
+
* autoComplete.search('北京');
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
search(keyword: string): AutoComplete;
|
|
108
|
+
/**
|
|
109
|
+
* 设置搜索类型
|
|
110
|
+
* @param {Array<string>|string} types 搜索类型,如['ALL', 'CITY']或'CITY'
|
|
111
|
+
* @returns {AutoComplete} 当前实例,支持链式调用
|
|
112
|
+
* @example
|
|
113
|
+
* ```javascript
|
|
114
|
+
* autoComplete.setTypes(['CITY', 'POI']);
|
|
115
|
+
* // 或者
|
|
116
|
+
* autoComplete.setTypes('CITY');
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
setTypes(types: Array<string> | string): AutoComplete;
|
|
120
|
+
/**
|
|
121
|
+
* 获取当前搜索结果
|
|
122
|
+
* @returns {Object|null} 搜索结果对象
|
|
123
|
+
* @example
|
|
124
|
+
* ```javascript
|
|
125
|
+
* const results = autoComplete.getResults();
|
|
126
|
+
* if (results) {
|
|
127
|
+
* console.log('当前结果:', results);
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
getResults(): Object | null;
|
|
132
|
+
/**
|
|
133
|
+
* 销毁组件,释放资源
|
|
134
|
+
* @example
|
|
135
|
+
* ```javascript
|
|
136
|
+
* autoComplete.dispose();
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
dispose(): void;
|
|
140
|
+
/**
|
|
141
|
+
* 获取内部实例
|
|
142
|
+
* @returns {AutoComplete_Bd} 内部自动完成实例
|
|
143
|
+
* @private
|
|
144
|
+
*/
|
|
145
|
+
private getInstance;
|
|
146
|
+
}
|
|
147
|
+
import { AutoComplete_Bd } from './AutoComplete_Bd';
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 百度地图输入提示实现
|
|
3
|
+
*/
|
|
4
|
+
export class AutoComplete_Bd {
|
|
5
|
+
constructor(options?: {});
|
|
6
|
+
options: {
|
|
7
|
+
debounceTime: number;
|
|
8
|
+
minKeywordLength: number;
|
|
9
|
+
maxResults: number;
|
|
10
|
+
showSuggestion: boolean;
|
|
11
|
+
containerClassName: string;
|
|
12
|
+
customStyles: {};
|
|
13
|
+
};
|
|
14
|
+
_isInitialized: boolean;
|
|
15
|
+
_exIndex: number;
|
|
16
|
+
_json: {
|
|
17
|
+
keyword: any;
|
|
18
|
+
count: number;
|
|
19
|
+
status: string;
|
|
20
|
+
items: never[];
|
|
21
|
+
} | null;
|
|
22
|
+
_typeIds: any[];
|
|
23
|
+
_cityId: number;
|
|
24
|
+
_results: {
|
|
25
|
+
keyword: string;
|
|
26
|
+
total: number;
|
|
27
|
+
pois: never[];
|
|
28
|
+
} | {
|
|
29
|
+
keyword: any;
|
|
30
|
+
total: any;
|
|
31
|
+
pois: any;
|
|
32
|
+
} | null;
|
|
33
|
+
_word: string;
|
|
34
|
+
_currentRequest: Promise<void> | null;
|
|
35
|
+
oldValue: string;
|
|
36
|
+
keyValue: string;
|
|
37
|
+
pickValue: string;
|
|
38
|
+
mousedownView: boolean;
|
|
39
|
+
stopCircleTemporary: boolean;
|
|
40
|
+
defaultIptValue: string;
|
|
41
|
+
circleTimer: number | null;
|
|
42
|
+
requestTimer: number;
|
|
43
|
+
_baiduMercatorProjection: any;
|
|
44
|
+
TYPES_COLLECTION: {
|
|
45
|
+
ALL: string;
|
|
46
|
+
CITY: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 初始化组件
|
|
50
|
+
*/
|
|
51
|
+
initialize(): void;
|
|
52
|
+
_initTangramStyle(): void;
|
|
53
|
+
setPickValue(value: any): void;
|
|
54
|
+
/**
|
|
55
|
+
* 启动轮询机制
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
private _startPolling;
|
|
59
|
+
/**
|
|
60
|
+
* 分发需要数据事件
|
|
61
|
+
* @private
|
|
62
|
+
*/
|
|
63
|
+
private _dispatchNeedData;
|
|
64
|
+
/**
|
|
65
|
+
* 获取输入框元素
|
|
66
|
+
* @private
|
|
67
|
+
*/
|
|
68
|
+
private _getInputElement;
|
|
69
|
+
search(word: any): void;
|
|
70
|
+
/**
|
|
71
|
+
* 发送自动完成请求
|
|
72
|
+
* @private
|
|
73
|
+
* @param {string} word 搜索词
|
|
74
|
+
*/
|
|
75
|
+
private _sendAutocompleteRequest;
|
|
76
|
+
/**
|
|
77
|
+
* 处理自动完成响应
|
|
78
|
+
* @private
|
|
79
|
+
* @param {Object} json 响应数据
|
|
80
|
+
*/
|
|
81
|
+
private _handleAutocompleteResponse;
|
|
82
|
+
/**
|
|
83
|
+
* 取消当前请求
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
86
|
+
private _cancelCurrentRequest;
|
|
87
|
+
/**
|
|
88
|
+
* 获取结果
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
public getResults(): {
|
|
92
|
+
keyword: string;
|
|
93
|
+
total: number;
|
|
94
|
+
pois: never[];
|
|
95
|
+
} | {
|
|
96
|
+
keyword: any;
|
|
97
|
+
total: any;
|
|
98
|
+
pois: any;
|
|
99
|
+
} | null;
|
|
100
|
+
/**
|
|
101
|
+
* 销毁组件
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
public dispose(): void;
|
|
105
|
+
_validateResponse(json: any): boolean;
|
|
106
|
+
_formatResponseData(json: any): {
|
|
107
|
+
data: {
|
|
108
|
+
value: {
|
|
109
|
+
province: any;
|
|
110
|
+
city: any;
|
|
111
|
+
district: any;
|
|
112
|
+
street: any;
|
|
113
|
+
streetNumber: any;
|
|
114
|
+
business: any;
|
|
115
|
+
address: any;
|
|
116
|
+
tag: any;
|
|
117
|
+
location: any;
|
|
118
|
+
};
|
|
119
|
+
}[];
|
|
120
|
+
word: any;
|
|
121
|
+
};
|
|
122
|
+
_formatSingleItem(item: any): {
|
|
123
|
+
value: {
|
|
124
|
+
province: any;
|
|
125
|
+
city: any;
|
|
126
|
+
district: any;
|
|
127
|
+
street: any;
|
|
128
|
+
streetNumber: any;
|
|
129
|
+
business: any;
|
|
130
|
+
address: any;
|
|
131
|
+
tag: any;
|
|
132
|
+
location: any;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
_handleRequestError(error: any): void;
|
|
136
|
+
/**
|
|
137
|
+
* 设置搜索类型
|
|
138
|
+
* @param {string|Array} types 搜索类型
|
|
139
|
+
*/
|
|
140
|
+
setTypes(types: string | any[]): void;
|
|
141
|
+
_shouldLimitCity(): boolean;
|
|
142
|
+
_getTypesId(): void;
|
|
143
|
+
_getCityId(): Promise<void>;
|
|
144
|
+
_createEmptyResult(): {
|
|
145
|
+
keyword: string;
|
|
146
|
+
total: number;
|
|
147
|
+
pois: never[];
|
|
148
|
+
};
|
|
149
|
+
_createAutocompleteResult(result: any): {
|
|
150
|
+
keyword: any;
|
|
151
|
+
total: any;
|
|
152
|
+
pois: any;
|
|
153
|
+
};
|
|
154
|
+
}
|