2019-12-18 09:21:25 +00:00
< div class = "spacer" > < / div >
< div * ngIf = "item;let item" >
< div class = "card border-0" >
< div class = "card-body" >
2021-01-27 07:11:37 +00:00
< fm-back-button > < / fm-back-button >
2019-12-18 09:21:25 +00:00
< div class = "card menu-card" >
2020-07-15 21:15:31 +00:00
< h2 * ngIf = "parentItem" > {{parentItem.name}}< / h2 >
2020-07-15 21:35:22 +00:00
< h1 > {{item.name}}< / h1 >
2019-12-18 09:21:25 +00:00
< / div >
< div class = "legend-container" * ngIf = "item?.data.layers;let layers" >
< div class = "card menu-card" >
2020-02-19 09:57:11 +00:00
< div * ngIf = "layers.length>1" >
2020-05-27 07:14:43 +00:00
< select ( change ) = " onLayerChanged ( $ event . target . value ) " >
< option * ngFor = "let l of layers;" [ value ] = " l . index " [ selected ] = " itemLayer . layerIndex = = l . index " > {{l.name}}< / option >
2020-02-19 09:57:11 +00:00
< / select >
< / div >
2020-07-15 21:15:31 +00:00
< fm-map-layer-legend [ showTitle ] = " layers . length = = 1 "
[layer]="layer(layers,itemLayer.layerIndex)" [histogramenabled]="true">< / fm-map-layer-legend >
2019-12-18 09:21:25 +00:00
< / div >
< / div >
< div class = "card menu-card" >
< ul class = "p-0 mt-2" >
2021-01-24 08:09:43 +00:00
< li * ngIf = "item.isEditable" > < a href = "#" class = "mt-1 mr-1" ( click ) = " handleOnEdit ( item ) " > < i class = "fal fa-pencil" aria-hidden = "true" i18n-title title = "Edit" > < / i > < span i18n > Edit< / span > < / a > < / li >
2020-03-27 12:22:11 +00:00
< ng-container * ngIf = "itemTypeService.isLayer(item)" >
2021-01-22 13:52:10 +00:00
< li * ngIf = "!getItemLayer(item,itemLayer.layerIndex)" > < a href = "#" ( click ) = " handleAddAsLayer ( item , itemLayer . layerIndex ) " > < i class = "fas fa-layer-plus" aria-hidden = "true" i18n-title title = "Add as layer" > < / i > < span i18n > Add as overlay< / span > < / a > < / li >
< li * ngIf = "getItemLayer(item,itemLayer.layerIndex)" > < a href = "#" ( click ) = " handleRemoveLayer ( item , itemLayer . layerIndex ) " > < i class = "fas fa-layer-minus" aria-hidden = "true" i18n-title title = "Remove overlay" > < / i > < span i18n > Remove overlay< / span > < / a > < / li >
2020-03-27 12:22:11 +00:00
< / ng-container >
2019-12-18 09:21:25 +00:00
< / ul >
< / div >
2021-01-29 10:25:37 +00:00
< fm-map-zoom-to-show-alert [ layer ] = " itemLayer ? . layer " > < / fm-map-zoom-to-show-alert >
2019-12-18 09:21:25 +00:00
< / div >
< / div >
< / div >