How to remove feoture layer created from collection object feature
La Sinh,
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.
thanks repply! i tried above your code, but not working;
map.removeLayer(featureLayer);
featureLayer = null;
Have you tried
map.removeLayer(your layer object);
your layer object = null;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.