From e52eb5a37e107b49f0660fd22d9dcc1341a289bd Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Tue, 1 Dec 2020 10:56:31 +0100 Subject: [PATCH] NetworkMap bugfix Fix networkmap zooming in further than expected Issue-ID: CCSDK-2906 Signed-off-by: Aijana Schumann Change-Id: I5e8c5a484705538722ad364619e605cf0c5a2c30 --- sdnr/wt/odlux/apps/networkMapApp/src/components/map.tsx | 1 + sdnr/wt/odlux/apps/networkMapApp/src/config.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/components/map.tsx b/sdnr/wt/odlux/apps/networkMapApp/src/components/map.tsx index 1bc2ed49a..b6e1d9cd6 100644 --- a/sdnr/wt/odlux/apps/networkMapApp/src/components/map.tsx +++ b/sdnr/wt/odlux/apps/networkMapApp/src/components/map.tsx @@ -111,6 +111,7 @@ class Map extends React.Component { map.on('load', (ev) => { + map.setMaxZoom(18); addBaseSources(map, this.props.selectedSite, this.props.selectedLink); addImages(map, (result: boolean)=>{ diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/config.ts b/sdnr/wt/odlux/apps/networkMapApp/src/config.ts index e2e5718d5..a85259d47 100644 --- a/sdnr/wt/odlux/apps/networkMapApp/src/config.ts +++ b/sdnr/wt/odlux/apps/networkMapApp/src/config.ts @@ -38,8 +38,8 @@ export const OSM_STYLE = { 'id': 'simple-tiles', 'type': 'raster', 'source': 'raster-tiles', - 'minzoom': 0, - 'maxzoom': 18 + 'minZoom': 0, + 'maxZoom': 18 } ] }; -- 2.16.6