Fix legend
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma
2020-03-03 19:43:17 +01:00
parent 2388968f2a
commit 0621b32fba
6 changed files with 15 additions and 3 deletions

View File

@@ -27,4 +27,8 @@ export class SelectedItemShapeComponent extends AbstractSelectedItemComponent {
onLayerChanged(layerIndex: number) {
this.store.dispatch(new mapActions.SetLayerIndex(layerIndex));
}
layer(layers:any,layerIndex:number) {
return layers.find(l => l.index == layerIndex);
}
}