gpt4 book ai didi

javascript - Google map 热图和标记

转载 作者:行者123 更新时间:2023-11-27 22:50:43 25 4
gpt4 key购买 nike

我正在尝试设置一个热图(我做了),但似乎谷歌将所有标记集成在一个点中,如果我放大它仍然只显示一个点。

使用热图:

enter image description here

使用标记:

enter image description here

正如你所看到的,我将所有标记分组在中心,这很酷,但这不是我所期望的......

有什么办法可以避免“标记分组”吗?

最佳答案

您可以使用一些参数自定义热图 ( documentation )。您可能需要调整耗散半径参数:

dissipating: Specifies whether heatmaps dissipate on zoom. When dissipating is false the radius of influence increases with zoom level to ensure that the color intensity is preserved at any given geographic location. Defaults to false.

radius: The radius of influence for each data point, in pixels.

关于javascript - Google map 热图和标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38080503/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com