Leaflet 地图框/传单标记在缩放时闪烁

Leaflet 地图框/传单标记在缩放时闪烁,leaflet,mapbox,Leaflet,Mapbox,使用此代码 const layerOptions = { sanitizer: () => null, pointToLayer: ({ properties: { type, status } }, pos) => { if (type === "city") { type = "city" } let iconUrl = `img/pin-${type}` if (stat

使用此代码

const layerOptions = {
      sanitizer: () => null,
      pointToLayer: ({ properties: { type, status } }, pos) => {
        if (type === "city") {
          type = "city"
        }
        let iconUrl = `img/pin-${type}`
        if (status) {
          iconUrl += `-${status}`
        }
        iconUrl += ".png"
        const icon = L.icon({
          iconUrl,
          iconSize: [48,48],
          iconAnchor: [24, 48],
        })
        return L.marker(pos, { icon })
      },
    }
    this.itemLayer = L.mapbox.featureLayer(items, layerOptions).addTo(this.map)
在地图上有一个
zoomend
监听器,当地图被缩放时,标记图标会闪烁,就像它们在不断地改变z顺序一样。这只发生在移动设备(Android)上,而不是桌面上


有什么想法可能导致这种情况吗?

请指定您的传单/mapbox.js版本。Mabox:2.4.0随传单0.7.7一起提供