Select to view content in your preferred language

how i can identify layers loaded by the user, and get their description???

735
1
09-02-2013 02:48 AM
AlbertoMartin
New Contributor
Hello,

I'm trying to get all the layers that have been added by me, for example, markers, polygons, etc..

My goal is that the end user can change the visibility of the layers.

Here I expose my problem:

When asked to map for the layers present on it, map.getLayersVisibleAtScale () returns me basemap layer, and many others among which are those of my interest.

I can not differentiate!

I would have to differentiate or get the layers that I added through the map notes for example.

Thank you.
0 Kudos
1 Reply
AlbertoMartin
New Contributor
Sorry, I found the help to my problem in the following example:

https://developers.arcgis.com/en/javascript/jssamples/ags_editor.html

Specifically in the following point:

response.itemInfo.itemData.operationalLayers;

Thanks...
0 Kudos