diff --git a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.html b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.html index 462180d..1c13e7d 100644 --- a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.html +++ b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.html @@ -10,7 +10,7 @@
Back

{{item.name}}

View - Download + Edit Add as overlay diff --git a/projects/common-map/src/fm-map/reducers/map.reducer.ts b/projects/common-map/src/fm-map/reducers/map.reducer.ts index 6d5cdd5..57d4914 100644 --- a/projects/common-map/src/fm-map/reducers/map.reducer.ts +++ b/projects/common-map/src/fm-map/reducers/map.reducer.ts @@ -164,7 +164,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo var itemLayer = null; if (a.item && "vnd.farmmaps.itemtype.layer,vnd.farmmaps.itemtype.shape.processed,vnd.farmmaps.itemtype.geotiff.processed".indexOf(a.item.itemType) >=0 ) { itemLayer = new ItemLayer(a.item); - itemLayer.layerIndex = a.item.data.layers[0].index; + itemLayer.layerIndex = a.item.data.layers?a.item.data.layers[0].index:-1; } else if (a.item && a.item.itemType == "vnd.farmmaps.itemtype.temporal") { itemLayer = new TemporalItemLayer(a.item); }