AnsweredAssumed Answered

Accessing Graphics on a Map in 4.0Beta

Question asked by LanceWeaver on Feb 26, 2016
Latest reply on Mar 1, 2016 by LanceWeaver

I can't seem to access the graphics on the Map in 4.0Beta.

 

In the documentation, it says graphics are no longer stored in 'map' or 'featureLayer', but "as graphics inside a LayerView"

But I can't seem to get View.getLayerView() or any other construct to work in order to access the graphics in my featureLayer loaded from Arc Server.

 

I don't even see them in the console under console.log(view.layerViews.item[]...)

 

Can someone show me just a simple example of how to access the graphics on a map?

 

 

 

 

Outcomes