aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-12-01 10:56:31 +0100
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-12-01 10:56:31 +0100
commite52eb5a37e107b49f0660fd22d9dcc1341a289bd (patch)
treede6a33edda58201da548ff23662f16064f81f180
parent640c4e96c0ea3bff8932436ab8227c89912b72f9 (diff)
NetworkMap bugfix
Fix networkmap zooming in further than expected Issue-ID: CCSDK-2906 Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com> Change-Id: I5e8c5a484705538722ad364619e605cf0c5a2c30
-rw-r--r--sdnr/wt/odlux/apps/networkMapApp/src/components/map.tsx1
-rw-r--r--sdnr/wt/odlux/apps/networkMapApp/src/config.ts4
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<mapProps, { isPopupOpen: boolean }> {
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
}
]
};