fix(docs): 语法错误

This commit is contained in:
thinkinggis 2020-02-06 22:06:29 +08:00
parent 5521a5c283
commit c30334c75e
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ const data2 = [
layer.source(data,{
transforms:[
type: 'join'
type: 'join',
sourceField: 'name' //data1 对应字段名
targetField: 'city' // data 对应字段名
data: data2,

View File

@ -179,8 +179,8 @@ const data2 = [
layer.source(data,{
transforms:[
type: 'join'
sourceField: 'name' //data1 对应字段名
targetField: 'city' // data 对应字段名
sourceField: 'name', //data1 对应字段名
targetField: 'city', // data 对应字段名
data: data2,
]
})