Commit 9a98fc82 by wangmin

parent 6b45eba7
...@@ -44,7 +44,7 @@ export function baseCityBrightnessMapOptionAntV(chartDom, chartId, chart, action ...@@ -44,7 +44,7 @@ export function baseCityBrightnessMapOptionAntV(chartDom, chartId, chart, action
chartDom.setMapStyle(mapStyle) chartDom.setMapStyle(mapStyle)
} }
} }
if (xAxis?.length < 1 || yAxis?.lang < 1) { if (xAxis?.length < 2 || yAxis?.lang < 1) {
chartDom.removeAllLayer() chartDom.removeAllLayer()
return chartDom return chartDom
} }
...@@ -70,6 +70,7 @@ export function baseCityBrightnessMapOptionAntV(chartDom, chartId, chart, action ...@@ -70,6 +70,7 @@ export function baseCityBrightnessMapOptionAntV(chartDom, chartId, chart, action
const pointLayer = new PointLayer({}) const pointLayer = new PointLayer({})
.source(mapData) .source(mapData)
.size(2) .size(2)
// .color('h8', color?.colors)
.color('h8', [ .color('h8', [
'#0A3663', '#0A3663',
'#1558AC', '#1558AC',
......
...@@ -2094,7 +2094,8 @@ export const TYPE_CONFIGS = [ ...@@ -2094,7 +2094,8 @@ export const TYPE_CONFIGS = [
], ],
propertyInner: { propertyInner: {
'color-selector': [ 'color-selector': [
'mapStyle' 'mapStyle',
// 'value'
], ],
'size-selector-ant-v': [ 'size-selector-ant-v': [
'mapPitch' 'mapPitch'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论