Robuster handling when old data is loaded after a theme id rename
This commit is contained in:
parent
c084319917
commit
208a85a4a9
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ export default class WayHandlingApplyingFeatureSource implements FeatureSource {
|
|||
const layerId = feat._matching_layer_id;
|
||||
const layer: LayerConfig = layerDict[layerId].layerDef;
|
||||
if (layer === undefined) {
|
||||
throw "No layer found with id " + layerId;
|
||||
console.error("No layer found with id " + layerId);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (layer.wayHandling === LayerConfig.WAYHANDLING_DEFAULT) {
|
||||
|
|
Loading…
Reference in a new issue