finetune heatmap options

Signed-off-by: Arne Hamann <git@arne.email>
pull/807/head
Arne Hamann 2023-09-06 23:42:14 +02:00
parent 6ad7c560fc
commit 585bf9ce29
1 changed files with 4 additions and 4 deletions

View File

@ -35,9 +35,9 @@
:initial-points="points" :initial-points="points"
:options="{ :options="{
// minOpacity: null, // minOpacity: null,
// maxZoom: null, maxZoom: 16,
radius: 15, radius: 50,
blur: 10, blur: 30,
gradient: { 0.4: 'blue', 0.65: 'lime', 1: 'red' }, gradient: { 0.4: 'blue', 0.65: 'lime', 1: 'red' },
}" /> }" />
</LMap> </LMap>
@ -283,7 +283,7 @@ export default defineComponent({
// Params have changed, quit // Params have changed, quit
const res = await axios.get(url); const res = await axios.get(url);
this.points = res.data.map((c) => { this.points = res.data.map((c) => {
return [c.center[0], c.center[1], c.count] return [c.center[0], c.center[1], 1]
}); });
}, },