都市の名前に基づいてバブルに色を付けようとしています。if this.point.capital == Montgomery & this.point.capital == Juneau; のようなもの。色=「赤」。しかし、この if 関数を color 属性に追加することはできません。あなたは私を助けることができます?
ありがとう!!!!
series: [{
name: 'Basemap',
mapData: map,
borderColor: '#606060',
nullColor: 'rgba(200, 200, 200, 0.2)',
showInLegend: false
}, {
name: 'Separators',
type: 'mapline',
data: H.geojson(map, 'mapline'),
color: '#101010',
enableMouseTracking: false
}, {
type: 'mapbubble',
dataLabels: {
enabled: true,
format: '{point.capital}'
},
name: 'Cities',
data: data,
maxSize: '12%',
color: H.getOptions().colors[0]
}]