NetworkMap bugfix 47/115947/1
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>
Tue, 1 Dec 2020 09:56:31 +0000 (10:56 +0100)
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>
Tue, 1 Dec 2020 09:56:31 +0000 (10:56 +0100)
Fix networkmap zooming in further than expected

Issue-ID: CCSDK-2906
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: I5e8c5a484705538722ad364619e605cf0c5a2c30

sdnr/wt/odlux/apps/networkMapApp/src/components/map.tsx
sdnr/wt/odlux/apps/networkMapApp/src/config.ts

index 1bc2ed4..b6e1d9c 100644 (file)
@@ -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)=>{
index e2e5718..a85259d 100644 (file)
@@ -38,8 +38,8 @@ export const OSM_STYLE = {
             'id': 'simple-tiles',
             'type': 'raster',
             'source': 'raster-tiles',
-            'minzoom': 0,
-            'maxzoom': 18
+            'minZoom': 0,
+            'maxZoom': 18
         }
     ]
 };