当我尝试从 markerClusterGroup 中删除图层时,在 removeLayer 方法中出现错误“this._featureGroup.hasLayer is not a function”。
clusters = L.markerClusterGroup()
clusters.hasLayer(layer));//returns true
clusters.removeLayer(layer);//cause an error "this._featureGroup.hasLayer is not a function"
什么可能导致这样的错误?