Select to view content in your preferred language

Access to the graphics in a CSV based custom Layer?

1905
1
10-17-2012 01:34 AM
ManishGonsalves1
New Contributor
I have created a map using ArcGISonline and added a custom layer by adding a csv file. I can see the points getting displayed at the lat-lon co-ordinates from my csv. I am showing the default "colored dot" symbols that are provided on ArcGISOnline. Onclick of the symbols I see the InfoWindow with the other attributes from my CSV file.
However, my requirement is to access these symbols/graphics using arcGIS API for Javascript and change the symbols based on my business logic. Is there a way to get to the Graphics of my csv based custom layer using the Javascript API?
0 Kudos
1 Reply
KellyHutchins
Esri Notable Contributor
Are you using createMap to build a map based on an ArcGIS Online web map id? If so then take a look at the 'Working with the map' section of this help topic:


http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_webmap.html

This section provides details about the response object and below the table there is a code snippet that shows how to use itemInfo.itemData.operationalLayers to access the layers in the web map. Once you have the layer you can do things like assign a different symbol.
0 Kudos