How to use code to turn on a feature layer when a specific marker layer has been selected?
I am trying to set up some IronPython code that adds and turns on a feature layer only when a specific marker layer has been selected by the user. My code is below. Error traceback says that the file for the new feature layer has not been found. I have checked the file name and it is correct, so I must have something else wrong in the code. Any help will be much appreciated!
## set visualiation as map chart
map = visualization.As[MapChart]()
## add new feature layer
## give new layer a title
## if the title of the marker layer the user has selected is "FB" then turn on the new feature layer "RR43" also
if (layer.Title == "FB"):