AnsweredAssumed Answered

what is a better way to get all graphicsLayer (not feature layer) only?

Question asked by wgsl on Jun 28, 2016
Latest reply on Jun 29, 2016 by Xiaodong_Wang-esristaff

which one is better? or are there any better ways of doing this? thanks,

 

if ( map.getLayer(map.graphicsLayerIds[j]).type != "Feature Layer")

or

if ( !map.getLayer(map.graphicsLayerIds[j]).hasOwnProperty("type"))

or

.....

Outcomes