map组件,当有两个区域时polygon的值如何设置?
发布于 6 年前 作者 qiang39 5435 次浏览 来自 官方Issues

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

1 回复

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

}]

回到顶部