Cluster computing Mapbox GL簇位置标记显示/隐藏缩放问题

Cluster computing Mapbox GL簇位置标记显示/隐藏缩放问题,cluster-computing,mapbox,layer,marker,mapbox-gl-js,Cluster Computing,Mapbox,Layer,Marker,Mapbox Gl Js,我遵循了集群示例。我有三层。群集、未群集点和群集计数。当我放大簇圆和计数文本时,它们会被很好地删除,但并非所有未簇点标记都会显示出来。它们根据缩放级别显示/隐藏。移除簇圆时,我希望显示所有未聚集的点标记。您可以在这个mp4示例中看到我的意思。这是我的代码(很抱歉格式不好 map.addLayer({ id: "clusters", type: "circle", source: "posNegPoints", filter: ["has", "point_coun

我遵循了集群示例。我有三层。群集、未群集点和群集计数。当我放大簇圆和计数文本时,它们会被很好地删除,但并非所有未簇点标记都会显示出来。它们根据缩放级别显示/隐藏。移除簇圆时,我希望显示所有未聚集的点标记。您可以在这个mp4示例中看到我的意思。这是我的代码(很抱歉格式不好

map.addLayer({
    id: "clusters",
    type: "circle",
    source: "posNegPoints",
    filter: ["has", "point_count"],
        paint: {
            "circle-color": [
                "step",
                ["get", "point_count"],
                "#51bbd6",
                100,
                #f1f075",
                750,
                "#f28cb1"
                ],
                "circle-radius": [
                    "step",
                    ["get", "point_count"],
                    20,
                    100,
                    30,
                    750,
                    40
                 ],
                 "circle-stroke-width": 2,
                 "circle-stroke-color": "#ffffff"
            }
        });

map.addLayer({
                    id: "cluster-count",
                    type: "symbol",
                    source: "posNegPoints",
                    filter: ["has", "point_count"],
                    layout: {
                        "text-field": "{point_count_abbreviated}",
                        "text-font": ["DIN Offc Pro Medium", "Arial Unicode MS Bold"],
                        "text-size": 12
                    }
                });
map.loadImage('http://localhost/sensibel-app/img/good.png', function(error, image) {
                    if (error) throw error;
                    map.addImage('good-icon', image);
                });

                map.loadImage('http://localhost/sensibel-app/img/bad.png', function(error, image) {
                    if (error) throw error;
                    map.addImage('bad-icon', image);
                });

map.addLayer({
                    id: "unclustered-point",
                    type: "symbol",
                    source: "posNegPoints",
                    "layout": {
                        "icon-image": "{PosNeg}-icon" // this could be the issue?
                    }
                });
我想这可能与我的自定义图标图像有关?

我想添加 “图标允许重叠”:真 到布局阵列/选项 解决我的问题