Remove featureLayer created with Collection feature.

1608
3
07-27-2016 09:46 AM
lasinh
by
New Contributor III

How to remove feoture layer created from collection object feature

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

La Sinh,

Have you tried

map.removeLayer(your layer object);

your layer object = null;

0 Kudos
lasinh
by
New Contributor III

thanks repply! i tried above your code, but not working;

map.removeLayer(featureLayer);

featureLayer = null;

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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.

0 Kudos