.setData({
                type: 'FeatureCollection',
                features: geojsonfeatures
            });

        if (map.getZoom()>8)
            map.easeTo({zoom: 8});
    }

    function prepareMap() {
        map = new maplibregl.Map({
            container: 'map',
            style: 'https://api.maptiler.com/maps/ch-swisstopo-lbm/style.json?key='+maptilerApiKey,
            center: [0,0],
            zoom: 1,
            touchPitch: false,
            maxPitch: 0,
            minZoom: 0,
       