diff options
Diffstat (limited to 'sdnr/wt/odlux/apps/networkMapApp/src/handlers')
-rw-r--r-- | sdnr/wt/odlux/apps/networkMapApp/src/handlers/mapReducer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/handlers/mapReducer.ts b/sdnr/wt/odlux/apps/networkMapApp/src/handlers/mapReducer.ts index a140e9b77..6f6277347 100644 --- a/sdnr/wt/odlux/apps/networkMapApp/src/handlers/mapReducer.ts +++ b/sdnr/wt/odlux/apps/networkMapApp/src/handlers/mapReducer.ts @@ -50,7 +50,7 @@ export const MapReducer: IActionHandler<mapState> = (state=initialState, action: if(action instanceof HighlightLinkAction){ - state = Object.assign({}, state, {selectedSite: null, selectedLink:{type: "Feature", geometry:{type:"LineString", coordinates:[[action.link.locationA.lon,action.link.locationA.lat ],[action.link.locationB.lon,action.link.locationB.lat ]]}}}) + state = Object.assign({}, state, {selectedSite: null, selectedLink:{type: "Feature", properties:{id:action.link.id, type: action.link.type}, geometry:{type:"LineString", coordinates:[[action.link.locationA.lon,action.link.locationA.lat ],[action.link.locationB.lon,action.link.locationB.lat ]]}}}) } |