我正在使用mapBoxGL 1.0版JS库,并且正在使用集群地图功能。但是我注意到,在某些缩放级别上,图层中的某些符号会消失,然后在其他缩放级别上会再次出现。我似乎无法弄清楚配置有什么问题。我附上了图像,注意到群集的总大小也与总符号不对应。

map.addSource("dayplaces", {
type: "geojson",
// Point to GeoJSON data. This example visualizes all M1.0+ earthquakes
// from 12/22/15 to 1/21/16 as logged by USGS' Earthquake hazards program.
data: geojson,
cluster: true,
clusterMaxZoom: 12, // Max zoom to cluster points on
clusterRadius: 50 // Radius of each cluster when clustering points (defaults to 50)
});
map.addLayer({
id: "clusters",
type: "circle",
source: "dayplaces",
filter: ["has", "point_count"],
paint: {
// Use step expressions (https://docs.mapbox.com/mapbox-gl-js/style-spec/#expressions-step)
// with three steps to implement three …Run Code Online (Sandbox Code Playgroud)