forked from MapComplete/MapComplete
Robuster handling, add helpful error messages for wrong themes
This commit is contained in:
parent
554fefd708
commit
8ca5a99797
2 changed files with 13 additions and 0 deletions
|
@ -28,6 +28,10 @@ export default class AllKnownLayers {
|
|||
if (typeof layer === "string") {
|
||||
continue;
|
||||
}
|
||||
if(layer.builtin !== undefined){
|
||||
// This is a builtin layer of which stuff is overridden - skip
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
const parsed = new LayerConfig(layer, "shared_layer_in_theme")
|
||||
sharedLayers.set(layer.id, parsed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue