Remove Graphics Layer
Hello,
I load a shape file (via Json) using the "AddMarkup" external command. This creates a Graphics Layer on the map. After I process it, I want to be able to remove the layer. How do I do that? How do I obtain the ID of the layer to be able to remove it?
Thank you!
Richard B
-
I think it will be 'Drawings' based on <MAarup> module configuration.
<MarkupLayer Name="Drawings"/>
which is on Viewer.Defaults.xml.
Also, I would suggest to utilize a new activity called 'Update Graphic Layer' activity for more freedom, rather than using the existing Markup commend.
0 -
Yes, the layer name will be called "Drawings".
I did change my code to use the "Update Graphic Layer" and passed in a layer ID. I then tried to use the "Remove Map Service" call with the same ID and it did not get removed. Any ideas?
Thanks,
Richard
0 -
I apparently found out what my problem was. I used too "high" of a number for the layer ID. I used a smaller number and it worked great.
0
Please sign in to leave a comment.
Comments
3 comments