zh-mapbox 0.1.48 → 0.1.49

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 CHANGED
@@ -86,6 +86,8 @@ RegisterMapBoxModel(THREE,GLTFLoader)
86
86
  | **MapImageByGeoJson**(options)-(0.0.39) | options:{sourceConfig:{}} | 图像图层 |
87
87
  | **getMapLayer**()-(0.1.47) | | 获取所有添加的图层 |
88
88
  | **clearMapLayer**(names?,clear?)-(0.1.47) | names:string\|string[]<br>适用于MapLayer的名称<br>clear:boolean 清除或者保留 | 清除所有添加的图层 |
89
+ | **setLayerOrder**(order)-(0.1.49) | order:true (排最后) | zIndex图层排序方式 |
90
+ | **setDefaultLayerIndex**(index)-(0.1.49) | index:number | 图层添加默认zIndex |
89
91
 
90
92
  ### Map.Style
91
93
 
package/dist/index.d.ts CHANGED
@@ -777,5 +777,17 @@ declare module 'mapbox-gl' {
777
777
  * @param clear 是否清除数据
778
778
  */
779
779
  clearMapLayer(names?: string | string[], clear?: boolean): void;
780
+
781
+ /**
782
+ * 设置图层排序方式 默认为true
783
+ * zIndex图层 排在最后
784
+ */
785
+ setLayerOrder(order: boolean): void;
786
+
787
+ /**
788
+ * 设置默认图层索引 zIndex
789
+ * @param index 索引
790
+ */
791
+ setDefaultLayerIndex(index: number): void;
780
792
  }
781
793
  }