Fixed updated layer's old metadata removal after changes for #90065.
Merge pull request #272 from luisromangz/90065-MetadataGetMapAndPreviewLinks

Fixed updated layer's old metadata removal after changes for #90065.