Revised attempt at my previous question:
I am successfully adding a class to my graphic layer.... previously I was using an ID.. I console.log(myNewGraphicLayer) and it's found, the added class below: vvv
- attributionDataUrl: (...)
- attributionVisible: (...)
- className: "someThing" <-----------------------------------
- elevationInfo: (...)
- fullExtent: (...)
- graphics: (...)
- hasAttributionData: (...)
- id: (...)
- legendEnabled: (...)
- listMode: (...)
- load: ƒ (e)
- loadError: (...)
I added it this way: vvvv
let graphicsLayer = new GraphicsLayer({
//id: "someThing", <------- works, but I am adding many need to use class
className: "someThing"
});
I am perplexed, because this will work when ID is added...
const polyDrawline = map.findLayerById('someThing');
but this will not work when className is added...
const polyDrawlineS = map.findLayerByClassName('someThing');
how do I access my className?