mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
a43da937a1
commit
ca0cde52f2
|
@ -274,7 +274,6 @@ layer.color('type*value', (type, value) => {
|
|||
|
||||
- 也可以直接指定某一个具体的颜色值 color,如 '#fff', 'white','rgba(255,0,0,0.5)' ,rgb(255,0,1) 等。
|
||||
|
||||
|
||||
示例
|
||||
|
||||
```javascript
|
||||
|
@ -544,7 +543,7 @@ layer.setData(data);
|
|||
设置图层叠加方法
|
||||
参数:
|
||||
|
||||
- type blend 类型 normal|additive | subtractive | max
|
||||
- type blend 类型 normal | additive | subtractive | max
|
||||
|
||||
## 图层控制方法
|
||||
|
||||
|
@ -622,7 +621,7 @@ layer.setMinZoom(zoom);
|
|||
|
||||
```javascript
|
||||
activeOption: {
|
||||
color: '#f00'
|
||||
color: '#f00';
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -646,7 +645,6 @@ layer.active(false);
|
|||
|
||||
🌟 指定元素高亮不等于图层高亮,一个图层包含多个元素,一般传入 source 的数据数组中有多少单条数据,一个图层就有多少元素
|
||||
|
||||
|
||||
```javascript
|
||||
layer.setActive(featureId);
|
||||
```
|
||||
|
@ -656,8 +654,8 @@ layer.setActive(featureId);
|
|||
开启或者关闭 mouseclick 元素选中高亮效果
|
||||
|
||||
```javascript
|
||||
selectOption : {
|
||||
color: '#f00'
|
||||
selectOption: {
|
||||
color: '#f00';
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue