Commit d635e21a by Tippi.Rao

颜色从配置里读取

parent 9ec90d0c
...@@ -154,7 +154,6 @@ export function baseBubbleMapOption(chartDom, chartId, chart, action) { ...@@ -154,7 +154,6 @@ export function baseBubbleMapOption(chartDom, chartId, chart, action) {
// ) // )
// console.log('mapInfo==', mapInfo) // console.log('mapInfo==', mapInfo)
// const location = mapInfo?.data?.geocodes?.length > 0 ? mapInfo.data.geocodes[0].location : '' // const location = mapInfo?.data?.geocodes?.length > 0 ? mapInfo.data.geocodes[0].location : ''
// const location = '111,222'
return { return {
type: 'Feature', type: 'Feature',
geometry: { geometry: {
...@@ -174,21 +173,7 @@ export function baseBubbleMapOption(chartDom, chartId, chart, action) { ...@@ -174,21 +173,7 @@ export function baseBubbleMapOption(chartDom, chartId, chart, action) {
.source(mapData) .source(mapData)
.shape('circle') .shape('circle')
.size('capacity', [0, 16]) .size('capacity', [0, 16])
.color('capacity', [ .color('capacity', color?.colors)
// '#34B6B7',
// '#4AC5AF',
// '#5FD3A6',
// '#7BE39E',
// '#A1EDB8',
// '#CEF8D6'
'#FFB7DD',
'#FF88C2',
'#FF44AA',
'#FF0088',
'#C10066',
'#A20055'
])
.active(true) .active(true)
.style({ .style({
opacity: 0.5, opacity: 0.5,
......
...@@ -1962,11 +1962,8 @@ export const TYPE_CONFIGS = [ ...@@ -1962,11 +1962,8 @@ export const TYPE_CONFIGS = [
], ],
propertyInner: { propertyInner: {
'color-selector': [ 'color-selector': [
'alpha',
'mapStyle', 'mapStyle',
'mapLineGradient', 'value'
'mapLineSourceColor',
'mapLineTargetColor'
], ],
'size-selector-ant-v': [ 'size-selector-ant-v': [
'mapPitch', 'mapPitch',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论