mirror of https://gitee.com/antv-l7/antv-l7
fix(docs): 语法错误
This commit is contained in:
parent
50800af332
commit
66e9a75bd6
|
@ -176,7 +176,7 @@ const data2 = [
|
||||||
|
|
||||||
layer.source(data,{
|
layer.source(data,{
|
||||||
transforms:[
|
transforms:[
|
||||||
type: 'join'
|
type: 'join',
|
||||||
sourceField: 'name' //data1 对应字段名
|
sourceField: 'name' //data1 对应字段名
|
||||||
targetField: 'city' // data 对应字段名
|
targetField: 'city' // data 对应字段名
|
||||||
data: data2,
|
data: data2,
|
||||||
|
|
|
@ -179,8 +179,8 @@ const data2 = [
|
||||||
layer.source(data,{
|
layer.source(data,{
|
||||||
transforms:[
|
transforms:[
|
||||||
type: 'join'
|
type: 'join'
|
||||||
sourceField: 'name' //data1 对应字段名
|
sourceField: 'name', //data1 对应字段名
|
||||||
targetField: 'city' // data 对应字段名
|
targetField: 'city', // data 对应字段名
|
||||||
data: data2,
|
data: data2,
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue