zh-mapbox 0.1.46 → 0.1.47
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 +2 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,6 +84,8 @@ RegisterMapBoxModel(THREE,GLTFLoader)
|
|
|
84
84
|
| **MapTileClusterCustom**(options)-(0.1.6) | options:{} | 切片聚合 |
|
|
85
85
|
| **MapLabelByGeoJson**()-(0.0.39) | | 过滤地图标签 |
|
|
86
86
|
| **MapImageByGeoJson**(options)-(0.0.39) | options:{sourceConfig:{}} | 图像图层 |
|
|
87
|
+
| **getMapLayer**()-(0.1.47) | | 获取所有添加的图层 |
|
|
88
|
+
| **clearMapLayer**(names?,clear?)-(0.1.47) | names:string\|string[]<br>适用于MapLayer的名称<br>clear:boolean 清除或者保留 | 清除所有添加的图层 |
|
|
87
89
|
|
|
88
90
|
### Map.Style
|
|
89
91
|
|
package/dist/index.d.ts
CHANGED
|
@@ -765,5 +765,17 @@ declare module 'mapbox-gl' {
|
|
|
765
765
|
* @returns MapImageByGeoJson 实例
|
|
766
766
|
*/
|
|
767
767
|
MapImageByGeoJson(options?: { sourceConfig?: any }): any;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* 获取添加的所有图层
|
|
771
|
+
*/
|
|
772
|
+
getMapLayer(): any[];
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* 清空所有图层 names 为MapLayer的名称 其他图层不适用
|
|
776
|
+
* @param names 图层名称
|
|
777
|
+
* @param clear 是否清除数据
|
|
778
|
+
*/
|
|
779
|
+
clearMapLayer(names?: string | string[], clear?: boolean): void;
|
|
768
780
|
}
|
|
769
781
|
}
|