Level Switch Example

Install

npm i -S @deepmap/hdm-web-map-sdk @deepmap/control-level-switch

code

            
<div style="height: 50%" id="deepMap-levelSwitch"></div>
            
            
            
import '@deepmap/hdm-web-map-sdk/styles/index.scss';
import '@deepmap/control-level-switch/styles/control-level-switch.scss';
            
                    
import {DeepMapFactory} from '@deepmap/hdm-web-map-sdk';
import {ControlLevelSwitch} from '@deepmap/control-level-switch';

const config = {
    projectName: 'mathematikon_basemap',
    mapServiceUrl: 'https://ssp.deepmap.de/geo',
    target: 'deepMap-levelSwitch'
};
const levelControl = new ControlLevelSwitch();
const map = DeepMapFactory.bootstrap(config);

map.addControl(levelControl);