forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
commit
bcd53405c8
197 changed files with 5675 additions and 5188 deletions
|
|
@ -203,6 +203,7 @@ export default class CreateNoteImportLayer extends Conversion<LayerConfigJson, L
|
|||
anchor: "center",
|
||||
},
|
||||
],
|
||||
allowMove: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,6 +141,16 @@ export class PrevalidateLayer extends DesugaringStep<LayerConfigJson> {
|
|||
}
|
||||
}
|
||||
|
||||
if(json.allowMove === undefined && json.source["geoJson"] === undefined){
|
||||
if (!Constants.priviliged_layers.find((x) => x == json.id)) {
|
||||
context.err(
|
||||
"Layer " +
|
||||
json.id +
|
||||
" does not have an explicit 'allowMove'"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (context.hasErrors()) {
|
||||
return undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue