Commit 414ba1a0 by wangmin

亮度一些修改

parent 3657aa33
...@@ -29,11 +29,13 @@ export function baseCityBrightnessMapOptionAntV(chartDom, chartId, chart, action ...@@ -29,11 +29,13 @@ export function baseCityBrightnessMapOptionAntV(chartDom, chartId, chart, action
lang: lang, lang: lang,
pitch: size.mapPitch, pitch: size.mapPitch,
// pitch: 64.88, // 地图倾角 // pitch: 64.88, // 地图倾角
style: mapStyle style: mapStyle,
// style: 'dark' // style: 'dark'
// center: [116.41667, 39.91667], // 地图中心经纬度-北京 // center: [116.41667, 39.91667], // 地图中心经纬度-北京
// zoom: 10, zoom: 12,
// maxZoom: 20 // maxZoom: 20
center: [114.060288, 22.53684] // 数据集是深圳市区的点,中心先设为深圳
// center: [104.58631, 30.71882] // 成阿中心经纬度
}), }),
logoVisible: false logoVisible: false
}) })
...@@ -70,19 +72,19 @@ export function baseCityBrightnessMapOptionAntV(chartDom, chartId, chart, action ...@@ -70,19 +72,19 @@ 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?.colors)
.color('h8', [ // .color('h8', [
'#0A3663', // '#0A3663',
'#1558AC', // '#1558AC',
'#3771D9', // '#3771D9',
'#4D89E5', // '#4D89E5',
'#64A5D3', // '#64A5D3',
'#72BED6', // '#72BED6',
'#83CED6', // '#83CED6',
'#A6E1E0', // '#A6E1E0',
'#B8EFE2', // '#B8EFE2',
'#D7F9F0' // '#D7F9F0'
]) // ])
if (!init) { if (!init) {
chartDom.addLayer(pointLayer) chartDom.addLayer(pointLayer)
} }
......
...@@ -2092,7 +2092,8 @@ export const TYPE_CONFIGS = [ ...@@ -2092,7 +2092,8 @@ export const TYPE_CONFIGS = [
propertyInner: { propertyInner: {
'color-selector': [ 'color-selector': [
'mapStyle', 'mapStyle',
// 'value' 'value',
'gradient-color'
], ],
'size-selector-ant-v': [ 'size-selector-ant-v': [
'mapPitch' 'mapPitch'
......
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
name: this.$t('chart.color_spiritual'), name: this.$t('chart.color_spiritual'),
value: 'spiritual', value: 'spiritual',
colors: ['#00a3af', '#4da798', '#57baaa', '#62d0bd', '#6ee4d0', '#86e7d6', '#aeede1', '#bde1e6', '#e5e5e5'] colors: ['#00a3af', '#4da798', '#57baaa', '#62d0bd', '#6ee4d0', '#86e7d6', '#aeede1', '#bde1e6', '#e5e5e5']
} },
], ],
colorForm: {}, colorForm: {},
customColor: null, customColor: null,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论