Robuster handling when old data is loaded after a theme id rename

This commit is contained in:
pietervdvn 2021-05-17 17:11:52 +02:00
parent c084319917
commit 208a85a4a9

View file

@ -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) {