Dear jany_
Thanks for your help..Yes it is my mistake that I used foreach in this case,I just wanted to find spacial layer and remove it from list of layers
I'll try your code.Thank you very much
Thanks for your help..Yes it is my mistake that I used foreach in this case,I just wanted to find spacial layer and remove it from list of layers
I'll try your code.Thank you very much