@baidumap/mapv-three 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +3 -3
  2. package/dist/assets/textures/weather/thunder.jpg +0 -0
  3. package/dist/assets/wasm/lanelet.wasm +0 -0
  4. package/dist/assets/workers/{BaiduVectorParser.worker-f7fcc351.js → BaiduVectorParser.worker-486240e8.js} +82 -85
  5. package/dist/assets/workers/{CesiumTerrainParser.worker-fcae0cc9.js → CesiumTerrainParser.worker-ba35b937.js} +108 -113
  6. package/dist/assets/workers/{MVTParser.worker-0dd27c39.js → MVTParser.worker-bb80e3b4.js} +9 -14
  7. package/dist/devtool/panel.js +9 -0
  8. package/dist/mapvthree.module.js +40003 -38856
  9. package/dist/mapvthree.umd.js +5 -5
  10. package/dist/types/Internal.d.ts +1 -0
  11. package/dist/types/adapters/bmap/Icon.d.ts +18 -0
  12. package/dist/types/adapters/bmap/InfoWindow.d.ts +124 -0
  13. package/dist/types/adapters/bmap/Label.d.ts +58 -0
  14. package/dist/types/adapters/bmap/Map.d.ts +124 -0
  15. package/dist/types/adapters/bmap/Marker.d.ts +28 -0
  16. package/dist/types/adapters/bmap/Overlay.d.ts +18 -0
  17. package/dist/types/adapters/bmap/Pixel.d.ts +1 -0
  18. package/dist/types/adapters/bmap/Point.d.ts +8 -0
  19. package/dist/types/adapters/bmap/Size.d.ts +8 -0
  20. package/dist/types/adapters/bmap/index.d.ts +8 -0
  21. package/dist/types/adapters/index.d.ts +1 -0
  22. package/dist/types/index.d.ts +1 -0
  23. package/dist/types/index.open.d.ts +1 -0
  24. package/dist/types/threejs/geometries/text/ScreenTextGeometry.d.ts +15 -0
  25. package/dist/types/threejs/materials/effects/LightningBillboardMaterial.d.ts +3 -0
  26. package/dist/types/threejs/materials/text/ScreenTextMaterial.d.ts +25 -0
  27. package/dist/types/threejs/objects/line/FatLineInternal.d.ts +4 -0
  28. package/dist/types/threejs/objects/point/Label.d.ts +10 -1
  29. package/dist/types/threejs/objects/text/ScreenText.d.ts +273 -0
  30. package/dist/types/threejs/objects/text/font-atlas-manager.d.ts +10 -2
  31. package/dist/types/threemap/Engine.d.ts +17 -4
  32. package/dist/types/threemap/engine/Controller.d.ts +141 -0
  33. package/dist/types/threemap/engine/Map.d.ts +14 -2
  34. package/dist/types/threemap/engine/event/EntityProxy.d.ts +1 -0
  35. package/dist/types/threemap/engine/map/BlankMap.d.ts +1 -1
  36. package/dist/types/threemap/engine/map/BlankMap3DControl.d.ts +4 -1
  37. package/dist/types/{threejs → threemap/engine/map}/controls/DraggingMovementAggregator.d.ts +3 -0
  38. package/dist/types/{threejs → threemap/engine/map}/controls/MapControl3D.d.ts +19 -2
  39. package/dist/types/{threejs → threemap/engine/map}/controls/PointerMovementAggregator.d.ts +3 -0
  40. package/dist/types/threemap/engine/map/earth/Earth.d.ts +1 -0
  41. package/dist/types/threemap/engine/rendering/Collision.d.ts +5 -0
  42. package/dist/types/threemap/engine/rendering/Label.d.ts +13 -0
  43. package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +2 -2
  44. package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +1 -1
  45. package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +11 -4
  46. package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +1 -1
  47. package/dist/types/threemap/mapView/surface/strategy/FastTileLoaderStrategy.d.ts +16 -0
  48. package/dist/types/threemap/mapView/tileProvider/vector/BaiduVectorTileProvider.d.ts +3 -0
  49. package/dist/types/threemap/natural/DynamicWeather.d.ts +2 -0
  50. package/dist/types/threemap/natural/Thunderstorm.d.ts +23 -8
  51. package/dist/types/threemap/overlay/Marker.d.ts +3 -0
  52. package/dist/types/threemap/services/autoComplete/AutoComplete.d.ts +1 -1
  53. package/dist/types/threemap/services/boundary/Boundary.d.ts +3 -3
  54. package/dist/types/threemap/services/common/baiduRequest.d.ts +1 -1
  55. package/dist/types/threemap/services/configs.d.ts +2 -2
  56. package/dist/types/threemap/services/district/DistrictLayer.d.ts +3 -3
  57. package/dist/types/threemap/services/geocoder/Geocoder.d.ts +5 -5
  58. package/dist/types/threemap/services/localSearch/LocalSearch.d.ts +5 -5
  59. package/dist/types/threemap/services/routeSearch/DrivingRoute.d.ts +2 -2
  60. package/dist/types/threemap/services/routeSearch/TransitRoute.d.ts +3 -3
  61. package/package.json +1 -1
  62. /package/dist/types/{threejs → threemap/engine/map}/controls/MapControl.d.ts +0 -0
@@ -68,6 +68,8 @@ export class RenderingLabel {
68
68
  _iconText: any;
69
69
  _iconTextUvDataSource: DataSource | undefined;
70
70
  _iconTextUv: any;
71
+ _roadLabelDataSource: DataSource | undefined;
72
+ _roadLabel: any;
71
73
  initLabel(): void;
72
74
  _labelIconDataSource: DataSource | undefined;
73
75
  _labelIcon: any;
@@ -162,6 +164,17 @@ export class RenderingLabel {
162
164
  */
163
165
  removeLabel(label: DataItem): void;
164
166
  removeLabels(labels: any, id: any): void;
167
+ /**
168
+ * 添加道路标签(沿线文字)
169
+ * @param {Array<Object>} roadLabels 道路标签数组
170
+ * @param {string} tileKey 瓦片key
171
+ */
172
+ addRoadLabels(roadLabels: Array<Object>, tileKey: string): void;
173
+ /**
174
+ * 移除道路标签(沿线文字)
175
+ * @param {Array<Object>} roadLabels 道路标签数组
176
+ */
177
+ removeRoadLabels(roadLabels: Array<Object>): void;
165
178
  dispose(): void;
166
179
  }
167
180
  import { DataSource } from '../../dataSource/DataSource';
@@ -12,8 +12,8 @@ export const bdLaneTileValue: {
12
12
  export const BG_OFFSETZ: -0.01;
13
13
  export const LAND_OFFSETZ: -0.001;
14
14
  export const LAYER_INDEX_DELTA: 0.0001;
15
- export const POLYGON3D_OFFSETZ: 0.5;
16
- export const BRIDGE_PIER_OFFSETZ: 0.8;
15
+ export const POLYGON3D_OFFSETZ: 0.3;
16
+ export const BRIDGE_PIER_OFFSETZ: 0;
17
17
  export const DELTA: 0.00001;
18
18
  export namespace POI_ICON_DIR {
19
19
  let UNDEFINED: number;
@@ -6,7 +6,7 @@ export class MaterialFactory {
6
6
  constructor(engine: any, textureManager: any);
7
7
  engine: any;
8
8
  textureManager: any;
9
- materialCache: WeakMap<object, any>;
9
+ materialCache: Map<any, any>;
10
10
  /**
11
11
  * 创建材质
12
12
  * @param {object} config - 材质配置(同时作为缓存键)
@@ -4,26 +4,33 @@
4
4
  */
5
5
  export class LabelLineGenerator extends BaseGenerator {
6
6
  getMaterialConfig(): null;
7
- generate(element: any, roadElement: any, styleConfig: any, context: any, point: any): {
7
+ generate(element: any, roadElement: any, styleConfig: any, context: any, linePoints: any, index: any): {
8
8
  type: string;
9
9
  geometry: null;
10
10
  material: null;
11
11
  properties: {
12
12
  poiData: {
13
- position: any;
13
+ linePoints: any;
14
+ anchorIndex: any;
15
+ anchor: any;
14
16
  text: any;
15
17
  styleId: any;
16
18
  styleConfig: any;
17
19
  hasText: boolean;
20
+ rank: any;
18
21
  };
22
+ linePoints: any;
19
23
  };
20
24
  } | null;
21
- createGeometry(element: any, roadElement: any, styleConfig: any, context: any, point: any): {
22
- position: any;
25
+ createGeometry(element: any, roadElement: any, styleConfig: any, context: any, linePoints: any, index: any): {
26
+ linePoints: any;
27
+ anchorIndex: any;
28
+ anchor: any;
23
29
  text: any;
24
30
  styleId: any;
25
31
  styleConfig: any;
26
32
  hasText: boolean;
33
+ rank: any;
27
34
  };
28
35
  }
29
36
  import { BaseGenerator } from './Base';
@@ -6,7 +6,7 @@ export function tileNormalizedPositionToMeter(input: any, tileConfig: any, outpu
6
6
  * @param {Array|number} z 高度数组,一维数组[z, z, z, ...]格式,或者单个高度值
7
7
  * @returns {Array} 重新计算高度后的点坐标数组
8
8
  */
9
- export function applyPointsZ(points: any[], z?: any[] | number): any[];
9
+ export function applyPointsZ(points: any[], z?: any[] | number, offset?: number): any[];
10
10
  export function parseFeature(midPoints: any, dim: any): (number | number[])[];
11
11
  export function getTileMaxValueByZ(z: any, config: any): any;
12
12
  export function normalizeVertex(vertex: any, tileSize: any, gapMin: any, gapMax: any, i: number | undefined, output: any): any;
@@ -84,6 +84,22 @@ export class FastTileLoaderStrategy extends Strategy {
84
84
  */
85
85
  _traverseViewportTiles: (projectionBounds: Box3, frustum: Frustum, cameraPosition: Vector3, tiles: any[], viewportTiles: any[], renderState: any) => void;
86
86
  _computeIntersectTiles(frustum: any, cameraPosition: any, tile: any, renderedTiles: any, requestTiles: any, placeholderTiles: any, maxZLevel: any, renderState: any): MapTileRenderState;
87
+ /**
88
+ * 使用 Sutherland-Hodgman 算法将多边形裁剪到视口范围 [-1, 1]
89
+ * @param {Array<[number, number]>} vertices 输入顶点数组
90
+ * @returns {Array<[number, number]>|null} 裁剪后的顶点数组,如果完全在视口外则返回null
91
+ */
92
+ clipPolygonToViewport(vertices: Array<[number, number]>): Array<[number, number]> | null;
93
+ /**
94
+ * 判断顶点是否在裁剪边界的内侧
95
+ * @private
96
+ */
97
+ private _isInsideEdge;
98
+ /**
99
+ * 计算线段与裁剪边界的交点
100
+ * @private
101
+ */
102
+ private _computeIntersection;
87
103
  getPolygonArea(vertices: any): number;
88
104
  set showDebug(value: boolean);
89
105
  get showDebug(): boolean;
@@ -92,6 +92,8 @@ export class BaiduVectorTileProvider extends VectorTileProvider {
92
92
  _staticUrl: string | undefined;
93
93
  _sourceProjectionName: any;
94
94
  _isWebMercator: boolean;
95
+ _offlineAk: any;
96
+ _customid: any;
95
97
  sourceCoordType: string | undefined;
96
98
  _defaultMinLevel: number;
97
99
  /**
@@ -155,6 +157,7 @@ export class BaiduVectorTileProvider extends VectorTileProvider {
155
157
  * @returns {Promise<Group>} 包含瓦片数据的Group对象
156
158
  */
157
159
  doRequestVectorTileData(tile: object): Promise<Group>;
160
+ updateDisplayOptions(displayOptions: any): void;
158
161
  _calculateTolerance(surfaceTile: any, engine: any, label: any): number;
159
162
  /**
160
163
  * 添加POI标签
@@ -121,6 +121,7 @@ export class DynamicWeather {
121
121
  * @param {string} weather 天气类型
122
122
  */
123
123
  _changeWeather(oldWeather: any, newWeather: any): void;
124
+ _thunderstorm: Thunderstorm | null | undefined;
124
125
  /**
125
126
  * 更新天气过渡状态
126
127
  * @param {number} ratio 过渡进度比例(0-1)
@@ -277,3 +278,4 @@ export class DynamicWeather {
277
278
  */
278
279
  get sunLightScale(): number;
279
280
  }
281
+ import { Thunderstorm } from './Thunderstorm';
@@ -11,21 +11,36 @@ export class Thunderstorm {
11
11
  _clock: any;
12
12
  _renderer: any;
13
13
  _camera: any;
14
+ _options: {};
14
15
  _lightningInterval: number;
15
16
  _lastLightningTime: number;
16
- _mainLightning: any;
17
- sceneSize: number;
17
+ _flashActive: boolean;
18
+ _flashElapsed: number;
19
+ _flashDuration: number;
20
+ _lightningMesh: any;
21
+ _lightningFlickerSeed: number;
22
+ _intervalRange: any;
23
+ _durationRange: any;
24
+ sceneSize: any;
25
+ _scaleRange: any;
26
+ _distanceRange: any;
27
+ _lateralRange: any;
28
+ _emissiveStrength: any;
29
+ _emissiveCoreBoost: any;
30
+ _emissiveRimSoftness: any;
31
+ _emissiveFlickerRange: any;
18
32
  _createRainSystem(): any;
19
33
  _createLightningEffect(): void;
20
- _lightningMaterial: LightningMaterial | undefined;
34
+ _lightningMaterial: LightningBillboardMaterial | undefined;
21
35
  _lightningContainer: any;
22
- _generateLightningPath(): any;
23
- update(): void;
24
- _updateLightning(delta: any): void;
25
- _triggerLightning(): void;
36
+ _generateLightningPosition(engine: any): any;
37
+ update(engine: any): void;
38
+ _updateLightning(delta: any, engine: any): void;
39
+ _triggerLightning(engine: any): void;
40
+ _endLightning(): void;
26
41
  set density(value: any);
27
42
  get density(): any;
28
43
  _density: any;
29
44
  dispose(): void;
30
45
  }
31
- import { LightningMaterial } from '../../threejs/materials/effects/LightningMaterial';
46
+ import { LightningBillboardMaterial } from '../../threejs/materials/effects/LightningBillboardMaterial';
@@ -36,6 +36,7 @@ export class Marker extends DOMOverlay {
36
36
  /** @private */ private _icon;
37
37
  /** @private */ private _width;
38
38
  /** @private */ private _height;
39
+ /** @private */ private _title;
39
40
  isMarker: boolean;
40
41
  initDom(): HTMLImageElement;
41
42
  /**
@@ -72,5 +73,7 @@ export class Marker extends DOMOverlay {
72
73
  * @returns {number} 图片高度
73
74
  */
74
75
  get height(): number;
76
+ set title(value: any);
77
+ get title(): any;
75
78
  }
76
79
  import { DOMOverlay } from './DOMOverlay';
@@ -10,7 +10,7 @@
10
10
  * @example
11
11
  * ```javascript
12
12
  * // 创建自动完成服务
13
- * const autoComplete = new mapvthree.Services.AutoComplete({
13
+ * const autoComplete = new mapvthree.services.AutoComplete({
14
14
  * input: 'searchInput', // 输入框ID
15
15
  * types: ['ALL', 'CITY'],
16
16
  * maxResults: 10,
@@ -10,8 +10,8 @@
10
10
  * @example
11
11
  * ```javascript
12
12
  * // 创建百度地图边界服务
13
- * const boundary = new mapvthree.Services.Boundary({
14
- * apiSource: mapvthree.Services.API_SOURCE_BAIDU
13
+ * const boundary = new mapvthree.services.Boundary({
14
+ * apiSource: mapvthree.services.API_SOURCE_BAIDU
15
15
  * });
16
16
  *
17
17
  * // 获取山东省边界
@@ -25,7 +25,7 @@ export class Boundary {
25
25
  * 创建边界服务实例
26
26
  * @param {Object} options 配置参数
27
27
  * @param {string} [options.apiSource] API数据源。
28
- * 可以配置为{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU},默认使用配置的数据源
28
+ * 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
29
29
  */
30
30
  constructor(options?: {
31
31
  apiSource?: string | undefined;
@@ -1,3 +1,3 @@
1
1
  export namespace SearchRequestMgr {
2
- function request(params: any, userData: any, path: any, disableLog: any): Promise<boolean | undefined>;
2
+ function request(params: any, userData: any, path: any, disableLog: any): Promise<boolean>;
3
3
  }
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * 设置LBS服务
3
- * @param {string} source 服务类型,{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU}
3
+ * @param {string} source 服务类型,{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU}
4
4
  */
5
5
  export function setApiSource(source: string): void;
6
6
  /**
7
7
  * 获取LBS服务
8
- * @returns {string} 服务类型,{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU}
8
+ * @returns {string} 服务类型,{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU}
9
9
  */
10
10
  export function getApiSource(): string;
@@ -11,10 +11,10 @@
11
11
  * @example
12
12
  * ```javascript
13
13
  * // 创建百度地图行政区划图层
14
- * const district = new mapvthree.Services.DistrictLayer({
14
+ * const district = new mapvthree.services.DistrictLayer({
15
15
  * name: '(山东省)',
16
16
  * kind: 0, // 省级
17
- * apiSource: mapvthree.Services.API_SOURCE_BAIDU,
17
+ * apiSource: mapvthree.services.API_SOURCE_BAIDU,
18
18
  * renderOptions: {
19
19
  * engine: engine,
20
20
  * fillColor: '#618bf8',
@@ -31,7 +31,7 @@ export class DistrictLayer {
31
31
  * @param {string} options.name 行政区划名称,格式如'(山东省)'、'(北京市)'
32
32
  * @param {number} options.kind 行政区划层级,0=省级,1=市级,2=区县级
33
33
  * @param {string} [options.apiSource] API数据源。
34
- * 可以配置为{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU},默认使用配置的数据源
34
+ * 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
35
35
  * @param {Object} [options.renderOptions] 渲染配置
36
36
  * @param {Engine} options.renderOptions.engine 地图引擎实例
37
37
  * @param {boolean} optiosn.renderOptiosn.autoViewport 自动跳转到区域中心
@@ -10,8 +10,8 @@
10
10
  * @example
11
11
  * ```javascript
12
12
  * // 创建百度地图地理编码服务
13
- * const geocoder = new mapvthree.Services.Geocoder({
14
- * apiSource: mapvthree.Services.API_SOURCE_BAIDU,
13
+ * const geocoder = new mapvthree.services.Geocoder({
14
+ * apiSource: mapvthree.services.API_SOURCE_BAIDU,
15
15
  * });
16
16
  *
17
17
  * // 地址转坐标
@@ -24,8 +24,8 @@
24
24
  * @example
25
25
  * ```javascript
26
26
  * // 创建天地图地理编码服务
27
- * const geocoder = new mapvthree.Services.Geocoder({
28
- * apiSource: mapvthree.Services.API_SOURCE_TIANDITU,
27
+ * const geocoder = new mapvthree.services.Geocoder({
28
+ * apiSource: mapvthree.services.API_SOURCE_TIANDITU,
29
29
  * });
30
30
  *
31
31
  * // 坐标转地址
@@ -40,7 +40,7 @@ export class Geocoder {
40
40
  * 创建地理编码服务实例
41
41
  * @param {Object} options 配置参数
42
42
  * @param {string} [options.apiSource] API数据源。
43
- * 可以配置为{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU},默认使用配置的数据源
43
+ * 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
44
44
  */
45
45
  constructor(options?: {
46
46
  apiSource?: string | undefined;
@@ -11,8 +11,8 @@
11
11
  * @example
12
12
  * ```javascript
13
13
  * // 创建百度地图本地搜索服务
14
- * const localSearch = new mapvthree.Services.LocalSearch({
15
- * apiSource: mapvthree.Services.API_SOURCE_BAIDU,
14
+ * const localSearch = new mapvthree.services.LocalSearch({
15
+ * apiSource: mapvthree.services.API_SOURCE_BAIDU,
16
16
  * pageCapacity: 20,
17
17
  * renderOptions: {
18
18
  * engine: engine,
@@ -29,8 +29,8 @@
29
29
  * @example
30
30
  * ```javascript
31
31
  * // 创建天地图本地搜索服务
32
- * const localSearch = new mapvthree.Services.LocalSearch({
33
- * apiSource: mapvthree.Services.API_SOURCE_TIANDITU,
32
+ * const localSearch = new mapvthree.services.LocalSearch({
33
+ * apiSource: mapvthree.services.API_SOURCE_TIANDITU,
34
34
  * pageCapacity: 10,
35
35
  * renderOptions: {
36
36
  * engine: engine,
@@ -56,7 +56,7 @@ export class LocalSearch {
56
56
  * @param {number} [options.pageCapacity=10] 每页结果数,默认10
57
57
  * @param {number} [options.pageNum=0] 页码,默认0
58
58
  * @param {string} [options.apiSource] API数据源。
59
- * 可以配置为{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU},默认使用配置的数据源
59
+ * 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
60
60
  * @param {Object} [options.renderOptions] 渲染配置
61
61
  * @param {Engine} options.renderOptions.engine 地图引擎实例
62
62
  * @param {boolean} [options.renderOptions.autoViewport=true] 是否自动调整地图视图以包含所有搜索结果
@@ -16,7 +16,7 @@
16
16
  * ```javascript
17
17
  * // 创建驾车路线规划实例
18
18
  * const drivingRoute = new DrivingRoute({
19
- * apiSource: mapvthree.Services.API_SOURCE_BAIDU, // 使用百度地图数据源
19
+ * apiSource: mapvthree.services.API_SOURCE_BAIDU, // 使用百度地图数据源
20
20
  * renderOptions: {
21
21
  * engine: engine, // 渲染引擎
22
22
  * autoViewport: true // 自动调整视野
@@ -38,7 +38,7 @@ export class DrivingRoute extends BaseRoute {
38
38
  * 创建驾车路线规划服务实例
39
39
  * @param {object} options 配置选项
40
40
  * @param {string} [options.apiSource] API数据源。
41
- * 可以配置为{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU},默认使用配置的数据源
41
+ * 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
42
42
  * @param {object} [options.renderOptions] 渲染选项
43
43
  * @param {Engine} [options.renderOptions.engine] 渲染引擎实例
44
44
  * @param {boolean} [options.renderOptions.autoViewport] 是否自动调整视野
@@ -16,7 +16,7 @@
16
16
  * ```javascript
17
17
  * // 创建公交路线规划实例
18
18
  * const transitRoute = new TransitRoute({
19
- * apiSource: mapvthree.Services.API_SOURCE_BAIDU, // 使用百度地图数据源
19
+ * apiSource: mapvthree.services.API_SOURCE_BAIDU, // 使用百度地图数据源
20
20
  * renderOptions: {
21
21
  * engine: engine, // 渲染引擎
22
22
  * autoViewport: true // 自动调整视野
@@ -35,14 +35,14 @@ export class TransitRoute extends BaseRoute {
35
35
  * 创建公交路线规划服务实例
36
36
  * @param {object} options 配置选项
37
37
  * @param {string} [options.apiSource] API数据源。
38
- * 可以配置为{@link Services.API_SOURCE_BAIDU}或{@link Services.API_SOURCE_TIANDITU},默认使用配置的数据源
38
+ * 可以配置为{@link services.API_SOURCE_BAIDU}或{@link services.API_SOURCE_TIANDITU},默认使用配置的数据源
39
39
  * @param {object} [options.renderOptions] 渲染选项
40
40
  * @param {Engine} [options.renderOptions.engine] 渲染引擎实例
41
41
  * @param {boolean} [options.renderOptions.autoViewport] 是否自动调整视野
42
42
  * @example
43
43
  * ```javascript
44
44
  * const transitRoute = new TransitRoute({
45
- * apiSource: mapvthree.Services.API_SOURCE_BAIDU,
45
+ * apiSource: mapvthree.services.API_SOURCE_BAIDU,
46
46
  * renderOptions: {
47
47
  * engine: engine,
48
48
  * autoViewport: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baidumap/mapv-three",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A powerful 3D map engine.",
5
5
  "author": "mapopen-fe@baidu.com",
6
6
  "main": "dist/mapvthree.umd.js",