misc(generateLayerOverview): disable warning on boostrap run

This commit is contained in:
Pieter Vander Vennet 2023-03-09 17:24:03 +01:00
parent 2f56f4d9fd
commit 22717f2b73

View file

@ -266,7 +266,7 @@ class ExpandTagRendering extends Conversion<
const lookup = this.lookup(tr)
if (lookup === undefined) {
const isTagRendering = ctx.indexOf("On(mapRendering") < 0
if (isTagRendering) {
if (isTagRendering && this._state.sharedLayers.size > 0) {
warnings.push(
`${ctx}: A literal rendering was detected: ${tr}
Did you perhaps forgot to add a layer name as 'layername.${tr}'? ` +