[Backport 2.4] Fix API overlays with not existing WMTS layers #5915
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #5912
Error on cherry picking:
Error on backporting to branch 2.4, error on cherry picking ['6788e82106ac53f87f2a0f58e50f56de1344e6b2', 'b346f004ed25afbae4a521892ecaecdb1ab7add3', 'ca9ed73d6ce4a5be6667cb60de87090aed61100e']:
error: could not apply b346f00... Replace missing layer by existing one in api example
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add ' or 'git rm '
hint: and commit the result with 'git commit'
To continue do:
git fetch
git checkout backport/5912-to-2.4
git reset --hard HEAD^
git cherry-pick b346f00
git cherry-pick ca9ed73
git push origin backport/5912-to-2.4 --force