I am trying to 'refresh' a cluster layer which is created by L.esri.Cluster.featureLayer and a feature url. I have tried to remove and re-add the layer (with no succees). But the refreshClusters is not a function of a featureLayer, nor of a cluster.featureLayer.

Someone could explain to me?

1 Answer 1


Since L.esri.Cluster.FeatureLayer extends L.esri.FeatureLayer it most certainly has a refresh() method.

If you clear the network traffic in your browser and call the method in the console, you'll see a fresh set of queries go out to fetch new data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.