Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用柱状热力图,数据量较大时,会出现柱状图透视的情况 #146

Open
dijia478 opened this issue May 6, 2023 · 2 comments

Comments

@dijia478
Copy link

dijia478 commented May 6, 2023

我直接复制的https://mapv.baidu.com/gl/examples/editor.html#heat-grid.html这里的示例代码。
将数据源改成了我自己的,大概有4300多个经纬度信息。
修改了部分属性如下:

var grid = new mapvgl.HeatGridLayer({
        max: 110000, // 最大阈值
        min: 10000, // 最小阈值
        gridSize: 150,
        gradient: { // 对应比例渐变色
            0: 'rgb(50, 50, 256)',
            0.3: 'rgb(178, 202, 256)',
            1: 'rgb(256, 256, 256)'
        },
        riseTime: 1800, // 楼块初始化升起时间
        maxHeight: 10000, // 最大高度
        minHeight: 100 // 最小高度
    });

然后打开地图,发现会出现,远处较低的柱状图,出现在近处较高的柱状图前面,产生了透视效果。

@dijia478
Copy link
Author

dijia478 commented May 6, 2023

image

@dijia478
Copy link
Author

dijia478 commented May 6, 2023

正常情况应该是近处较高的柱状图,遮挡远处较低柱状图才对。就如官方示例的这样
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant