zh-mapbox 0.1.41 → 0.1.46
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 +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ RegisterMapBoxModel(THREE,GLTFLoader)
|
|
|
78
78
|
| **loadSpriteGraph**(sprite)-(0.0.114) | sprite:{<br />image:string 图片地址<br />json:string\|object json数据<br />} | 加载精灵图 |
|
|
79
79
|
| **MapClusterMarker**(options)-(0.0.114) | options: marker参数 | 聚合marker |
|
|
80
80
|
| **MapSourceEvent**(name,options)-(0.0.114) | name:source<br />options:{<br />once:true 执行一次<br />sourceLayer: 图层源 vector时必传<br />filter:过滤<br />} | 获取source源信息 |
|
|
81
|
-
| **TileByGeoJson**(options)-(0.1.0) | options:{<br />maxZoom:18 最大层级<br />minZoom:0 最小层级<br />expand:0 扩展瓦片数<br />isGCJ:false 是否GCJ坐标<br />replaceUrl:Function 替换url<br />isJudgement:false 是否判断瓦片<br />judgementBox:Function 四至判断方法<br />judgementPoint:Function 坐标判断方法<br />filter:Function 设置滤镜<br/>coordTransform:Function 坐标转换<br/>judgeBound:true 是否先判断边界<br/>isPrecision:true 是否提升精度<br/>minShow:true 小于最小层级是否显示<br/>maxShow:true 大于最大层级是否显示<br/>textureType:'NEAREST'\|'LINEAR'图像混合模式<br/>gradualLoad:false
|
|
81
|
+
| **TileByGeoJson**(options)-(0.1.0) | options:{<br />maxZoom:18 最大层级<br />minZoom:0 最小层级<br />expand:0 扩展瓦片数<br />isGCJ:false 是否GCJ坐标<br />replaceUrl:Function 替换url<br />isJudgement:false 是否判断瓦片<br />judgementBox:Function 四至判断方法<br />judgementPoint:Function 坐标判断方法<br />filter:Function 设置滤镜<br/>coordTransform:Function 坐标转换<br/>judgeBound:true 是否先判断边界<br/>isPrecision:true 是否提升精度<br/>minShow:true 小于最小层级是否显示<br/>maxShow:true 大于最大层级是否显示<br/>textureType:'NEAREST'\|'LINEAR'图像混合模式<br/>gradualLoad:false 渐进加载图片<br>isThrottle:true 使用节流<br>fetchOptions:fetch配置参数} | 裁剪区域 |
|
|
82
82
|
| **MapMenu**(options)-(0.1.0) | options:{<br />move:false 菜单是否跟随移动<br />className:string <br />} | 右键菜单 |
|
|
83
83
|
| **MapMeasure**(options)-(0.1.1) | options:{...} | 地图测量 |
|
|
84
84
|
| **MapTileClusterCustom**(options)-(0.1.6) | options:{} | 切片聚合 |
|
package/dist/index.d.ts
CHANGED
|
@@ -192,6 +192,11 @@ export function parseValue(value: any): any;
|
|
|
192
192
|
*/
|
|
193
193
|
export function deepClone(data: any): any;
|
|
194
194
|
|
|
195
|
+
/**
|
|
196
|
+
* 生成uuid
|
|
197
|
+
*/
|
|
198
|
+
export function generateUUID(): string
|
|
199
|
+
|
|
195
200
|
/**
|
|
196
201
|
* 判断坐标是否在中国境外,如果在中国境外则不需要进行坐标偏移
|
|
197
202
|
* @param {number} inputLng - 经度
|
|
@@ -331,9 +336,20 @@ export class SymbolEffect {
|
|
|
331
336
|
* 用于创建和管理地图图层,包括图层配置、tooltip、popup等组件
|
|
332
337
|
*/
|
|
333
338
|
export class MapLayer {
|
|
339
|
+
name: string | null
|
|
340
|
+
layers: {
|
|
341
|
+
layer: any;
|
|
342
|
+
tooltip: any;
|
|
343
|
+
popup: any;
|
|
344
|
+
[key: string]: any;
|
|
345
|
+
}
|
|
346
|
+
prop: {
|
|
347
|
+
[key: string]: any;
|
|
348
|
+
}
|
|
349
|
+
|
|
334
350
|
/**
|
|
335
351
|
* 构造函数
|
|
336
|
-
* @param {string} name - 图层名称
|
|
352
|
+
* @param {string|null} name - 图层名称
|
|
337
353
|
* @param {Object} [options] - 图层配置选项
|
|
338
354
|
* @param {Object} [options.layer=null] - 图层配置
|
|
339
355
|
* @param {Object} [options.tooltip=null] - 提示框配置
|
|
@@ -341,7 +357,7 @@ export class MapLayer {
|
|
|
341
357
|
* @param {Object} [prop={}] - 其他属性
|
|
342
358
|
* @throws {Error} 当未使用new关键字调用时抛出错误
|
|
343
359
|
*/
|
|
344
|
-
constructor(name: string, options?: {
|
|
360
|
+
constructor(name: string | null, options?: {
|
|
345
361
|
layer?: any;
|
|
346
362
|
tooltip?: any;
|
|
347
363
|
popup?: any;
|
|
@@ -691,7 +707,7 @@ declare module 'mapbox-gl' {
|
|
|
691
707
|
* @param options 配置选项
|
|
692
708
|
* @returns TileByGeoJson 实例
|
|
693
709
|
*/
|
|
694
|
-
TileByGeoJson(options?: { maxZoom?: number, minZoom?: number, expand?: number, isGCJ?: boolean, replaceUrl?: Function, isJudgement?: boolean, judgementBox?: Function, judgementPoint?: Function }): any;
|
|
710
|
+
TileByGeoJson(options?: { maxZoom?: number, minZoom?: number, expand?: number, isGCJ?: boolean, replaceUrl?: Function, isJudgement?: boolean, judgementBox?: Function, judgementPoint?: Function, filter?: Function, coordTransform?: Function, judgeBound?: boolean, isPrecision?: boolean, minShow?: boolean, maxShow?: boolean, textureType?: string, gradualLoad?: boolean, isThrottle?: boolean, fetchOptions?: any }): any;
|
|
695
711
|
|
|
696
712
|
/**
|
|
697
713
|
* 创建地图菜单
|