How to remove feoture layer created from collection object feature
Have you tried
map.removeLayer(your layer object);
your layer object = null;
thanks repply! i tried above your code, but not working;
featureLayer = null;
Is it throwing any errors? I have no problem at all using map.removeLayer(x) in my code even when it is a feature collection featurelayer.
Retrieving data ...