zh-mapbox 0.1.83 → 0.1.84

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
@@ -97,6 +97,7 @@ RegisterMapBoxModel(THREE,GLTFLoader)
97
97
  | **getInteractions**()-(0.1.76-v3) | | 获取所有地图交互 |
98
98
  | **loadModels**(models)-(0.1.76-v3) | models:{key:string} | 添加模型 |
99
99
  | **isPaintProperty**(id,property)-(0.1.79) | | 是否属于paint |
100
+ | **loadIconset**(url,options,callback)-(v3) | | 加载pbf图标 |
100
101
 
101
102
  ### Map.Style
102
103
 
package/dist/index.d.ts CHANGED
@@ -644,8 +644,9 @@ declare module 'mapbox-gl' {
644
644
  /**
645
645
  * 加载精灵图
646
646
  * @param sprite 精灵图配置
647
+ * @param options 配置选项
647
648
  */
648
- loadSpriteGraph(sprite: { image: string, json: string | object }): Promise<any>;
649
+ loadSpriteGraph(sprite: { image: string, json: string | object }, options?: object): Promise<any>;
649
650
 
650
651
 
651
652
  /**
@@ -951,5 +952,13 @@ declare module 'mapbox-gl' {
951
952
  * @param property 属性名称
952
953
  */
953
954
  isPaintProperty(id, property): boolean;
955
+
956
+ /**
957
+ * 加载.pbf图标集
958
+ * @param url
959
+ * @param options fetch请求配置项
960
+ * @param callback
961
+ */
962
+ loadIconset(url: string, options?: object, callback?: Function): void;
954
963
  }
955
964
  }