@layers.setter<EOL><INDENT>def layers(self, value: List['<STR_LIT>']):<DEDENT>
self._layers = list(value)  <EOL>self._index = self._make_index()<EOL>self._transformed = {}<EOL>
Perform a copy of the layers list in order to avoid the list changing
without updating the index.

Then update the index.