map组件,当有两个区域时polygon的值如何设置?

发布于 8 年前作者 qiang395586 次浏览最后编辑 8 年前来自 issues

要在地图上展示两个多边形区域,请问polygon里面的point值分别怎么样设置

1 回复
yang98
yang981 楼6 年前

polygons: [{

points: locale.features[1].geometry.coordinates[0],

fillColor: 'yellow',

strokeColor: 'white',

strokeWidth: 1

},{

points: locale.features[0].geometry.coordinates[0],

fillColor: 'red',

strokeColor: 'white',

strokeWidth: 1

}]