zh-mapbox 0.1.75 → 0.1.77
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/README.md +11 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,6 +93,9 @@ RegisterMapBoxModel(THREE,GLTFLoader)
|
|
|
93
93
|
| **isPointOnEarth**(lnglat,strict)-(0.1.60) | lnglat:{<br>lng:number,<br>lat:number}<br>strict:boolean 更严格的判断[false] | 点是否在地图上 |
|
|
94
94
|
| **AnimateMarker**()-(0.1.66) | | 图标动画 |
|
|
95
95
|
| **MapMoreLayer**()-(0.1.74) | | 绘制图层 |
|
|
96
|
+
| **MapInteraction**(options)-(0.1.76-v3) | options:{<br>reset?:Function 重置交互方法} | 地图交互 |
|
|
97
|
+
| **getInteractions**()-(0.1.76-v3) | | 获取所有地图交互 |
|
|
98
|
+
| **loadModels**(models)-(0.1.76-v3) | models:{key:string} | 添加模型 |
|
|
96
99
|
|
|
97
100
|
### Map.Style
|
|
98
101
|
|
|
@@ -415,6 +418,14 @@ layerConfig:[
|
|
|
415
418
|
| **visible**(show) | show:boolean | 显示隐藏 |
|
|
416
419
|
| **destroy**() | | 销毁 |
|
|
417
420
|
|
|
421
|
+
##### **MapInteraction**
|
|
422
|
+
|
|
423
|
+
| 方法名 | 参数 | 描述 |
|
|
424
|
+
| ---------------------- | -------------------------- | -------- |
|
|
425
|
+
| **open**(interactions) | interactions:object\|array | 开启 |
|
|
426
|
+
| **reset**() | | 重置交互 |
|
|
427
|
+
| **destroy**() | | 销毁 |
|
|
428
|
+
|
|
418
429
|
#### 公共方法
|
|
419
430
|
|
|
420
431
|
| 方法名 | 参数 | 描述 |
|
package/dist/index.d.ts
CHANGED
|
@@ -282,6 +282,11 @@ export function invertMask(geojson: any, maskArray: any[]): any | null;
|
|
|
282
282
|
*/
|
|
283
283
|
export function judgePointInPolygon(point: [number, number] | { lng: number, lat: number }, geojson: any): boolean;
|
|
284
284
|
|
|
285
|
+
/**
|
|
286
|
+
* 地图类类型枚举
|
|
287
|
+
*/
|
|
288
|
+
export type ClassType = typeof ClassType[keyof typeof ClassType];
|
|
289
|
+
|
|
285
290
|
/**
|
|
286
291
|
* 创建一个闪烁点符号,用于在地图上显示动画效果的点标记
|
|
287
292
|
* @param {Object} options - 配置选项
|
|
@@ -865,5 +870,25 @@ declare module 'mapbox-gl' {
|
|
|
865
870
|
* - destroy(): 销毁
|
|
866
871
|
**/
|
|
867
872
|
MapMoreLayer(): any;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* 地图交互
|
|
876
|
+
* 返回 MapInteraction 实例,提供以下方法:
|
|
877
|
+
* - open(): 开始
|
|
878
|
+
* - reset(): 重置交互
|
|
879
|
+
* - destroy(): 销毁
|
|
880
|
+
**/
|
|
881
|
+
MapInteraction(options?: { reset?: Function }): any;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* 获取所有地图交互
|
|
885
|
+
*/
|
|
886
|
+
getInteractions(): any[];
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* 模型加载
|
|
890
|
+
* @param {object} models 模型列表 {[key]:string}
|
|
891
|
+
*/
|
|
892
|
+
loadModels(models): void;
|
|
868
893
|
}
|
|
869
894
|
}
|