See attached sample. I am trying to rename a layer and even though the layer is renamed, if I try to subsequently add a new layer with the previously renamed name, I get an error that the item already exists.
Notice that I do a listing of all the layer names in the overlay after the rename has been done and the original name does not exist…
In my main project, I also noted that if I rename the layer, serialize the data and then reload it, I can use the original name again. Maybe something in the overlay memory that is not being refreshed.
RenameOb.zip (235.7 KB)