zh-mapbox 0.1.30 → 0.1.36
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 +6 -5
- package/dist/index.d.ts +468 -322
- package/dist/index.js +1 -1
- package/package.json +5 -2
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'
|
|
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 渐进加载图片} | 裁剪区域 |
|
|
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:{} | 切片聚合 |
|
|
@@ -220,10 +220,11 @@ layerConfig:{
|
|
|
220
220
|
|
|
221
221
|
**TileByGeoJson**
|
|
222
222
|
|
|
223
|
-
| 方法名 | 参数 | 描述
|
|
224
|
-
| --------------------- | ------------------------------------ |
|
|
225
|
-
| **draw**(json,url,id) | json:边界json<br />url:地址<br />id | 绘制
|
|
226
|
-
| **destroy**() | | 销毁
|
|
223
|
+
| 方法名 | 参数 | 描述 |
|
|
224
|
+
| --------------------- | ------------------------------------ | -------- |
|
|
225
|
+
| **draw**(json,url,id) | json:边界json<br />url:地址<br />id | 绘制 |
|
|
226
|
+
| **destroy**() | | 销毁 |
|
|
227
|
+
| **visible**(show) | show:boolean | 显示隐藏 |
|
|
227
228
|
|
|
228
229
|
**MapMenu**
|
|
229
230
|
|