mapboxgl-tools 1.7.4 → 1.7.6
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 +22 -1
- package/dist/ui.es.js +134 -72
- package/dist/ui.umd.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -361,13 +361,34 @@ export default {
|
|
|
361
361
|
| checked | Boolean | false | 初次是否选中打开 | false | true |
|
|
362
362
|
| radio | Boolean | false | 是否单选,true的时候和同组之间为true的其他图层互斥 | false | true |
|
|
363
363
|
| zIndex | Number | 1 | 当前图层的权重,越大权重越高,显示优先级越高 | false | true |
|
|
364
|
-
| icon | String/Array | | 图片path
|
|
364
|
+
| icon | String/Array | | 图片path,使用<font color=blue>预制的icon</font>,或使用iconfont中图层path的d属性集合| false | true |
|
|
365
365
|
| color | String | | 名称颜色 | false | true |
|
|
366
366
|
| sourceConfig | Object | { type: 'raster', tileSize: 256 } | mapbox中source的配置文件 | false | true |
|
|
367
367
|
| layerConfig | Object | { type: 'raster' } | mapbox中图层的配置文件 | false | true |
|
|
368
368
|
| children | Array | [] | 子集 | true | false |
|
|
369
369
|
| onChange | Function | | 图层打开/关闭的回调 | false | true |
|
|
370
370
|
|
|
371
|
+
###### 预制<font color="#f00">icon</font>
|
|
372
|
+
| key | Description |
|
|
373
|
+
| --- | --- |
|
|
374
|
+
| circle | 圆形 |
|
|
375
|
+
| eye | 眼睛 |
|
|
376
|
+
| eye_close | 眼睛-闭着 |
|
|
377
|
+
| rect | 方形 |
|
|
378
|
+
| diamond | 菱形 |
|
|
379
|
+
| star | 五角星 |
|
|
380
|
+
| water | 水滴 |
|
|
381
|
+
| loc | 定位点 |
|
|
382
|
+
| triable | 三角形 |
|
|
383
|
+
| hexagon | 六变形 |
|
|
384
|
+
| pentagon | 5变形 |
|
|
385
|
+
| tag | 标签 |
|
|
386
|
+
| balloon | 气球 |
|
|
387
|
+
| layer | 图层 |
|
|
388
|
+
| flag | 红旗 |
|
|
389
|
+
| pen | 笔 |
|
|
390
|
+
| tack | 大头钉 |
|
|
391
|
+
|
|
371
392
|
```js
|
|
372
393
|
<template>
|
|
373
394
|
<section id="map" style="width: 90%; height: 700px"></section>
|