diff --git a/projects/common-map/src/fm-map/components/item-list-item/item-list-item.component.ts b/projects/common-map/src/fm-map/components/item-list-item/item-list-item.component.ts index 8450dcf..203ab81 100644 --- a/projects/common-map/src/fm-map/components/item-list-item/item-list-item.component.ts +++ b/projects/common-map/src/fm-map/components/item-list-item/item-list-item.component.ts @@ -34,4 +34,12 @@ export class ItemListItemComponent extends AbstractItemListItemComponent { constructor(store: Store, itemTypeService: ItemTypeService) { super(store, itemTypeService); } + + getScaledValue(value:number,scale:number = 0):number { + let v = value; + if(scale && scale != 0) { + v=scale*value; + } + return v; + } } diff --git a/projects/common-map/src/fm-map/components/legend/legend.component.html b/projects/common-map/src/fm-map/components/legend/legend.component.html index a4abe42..3815a75 100644 --- a/projects/common-map/src/fm-map/components/legend/legend.component.html +++ b/projects/common-map/src/fm-map/components/legend/legend.component.html @@ -15,7 +15,7 @@ - {{getValue(entry.value,layer.scale) | number:'1.0-2'}} {{legendunit}}{{entry.label}} + {{getScaledValue(entry.value,layer.scale) | number:'1.0-2'}} {{legendunit}}{{entry.label}}
diff --git a/projects/common-map/src/fm-map/components/legend/legend.component.ts b/projects/common-map/src/fm-map/components/legend/legend.component.ts index 305ecb7..3067fed 100644 --- a/projects/common-map/src/fm-map/components/legend/legend.component.ts +++ b/projects/common-map/src/fm-map/components/legend/legend.component.ts @@ -65,7 +65,7 @@ export class LegendComponent implements OnInit,AfterViewInit { return part; } - public getValue(value:number,scale:number):number { + public getScaledValue(value:number,scale:number):number { let v = value; if(scale && scale != 0) { v=scale*value;