Hi,
I am trying to iterate over all layers in a map to see the datasources, and as it is recommended it is good to see
if hasattr(layer, "dataSource"):
pass
if the layer has attribute dataSource, but the problem is on basemap, it givers an error which is:
NameError: The attribute 'dataSource' is not supported on this instance of Layer.
I do not understand this errors, because it should skip the basemap because it does not have dataSource.
Is anyone has any explanation for this issue?