Hello,
I have an event as shown below. How can I check if the added layer is part of a basemap? e.g. world terrain layer, etc.
Solved! Go to Solution.
Theoretically you would get the views "map" and the maps "basemap" and then you have access to the Basemap objects referenceLayers and or baseLayers collection properties, to see if your layer exists in those collections.
Theoretically you would get the views "map" and the maps "basemap" and then you have access to the Basemap objects referenceLayers and or baseLayers collection properties, to see if your layer exists in those collections.
This was a great suggestion thank you.
Don’t forget to mark this question as answered by clicking on the mark correct link on the reply that answered your question.