Hello All. I have previously added FeatureLayers individually and used some level of document.getElementById and addEventListener('click') to turn those FeatureLayers on and off using an html Checkbox.
But, I am now using an AGOL hosted WebMap to draw the content in my app, and trying to use the Calcite 'checkbox' to toggle my WebMap layers on and off? and I cannot figure out how to access those individual layers in the WebMap and how to use the Calcite checkbox component to turn them on and off.
I have no trouble adding the Calcite Components(checkbox, slider, etc) but just don't know how to relate them back to my layers within my WebMap. is it a getLayers All or Find item by ID thing? accessing the data in a WebMap is new to me. thanks!