Hello, I am seeking a solution to create a map with the interactive option set to false, but once in full screen mode, I need this parameter to be true. Do you have any suggestions or ideas on how to achieve this?
const _map = new MapGL({
container: elementName,
style: this.maplibreGlDataFromJsonService.getMapStyleConstants(),
// style: `${mapStyle}?apiKey=${myAPIKey}`,
center: [_lon, _lat],
zoom: 9,
interactive: false,
transformRequest: (url: string, resourceType: any) => {
return {
url: url,
headers: {
'Authorization': 'Bearer ' + this.authService.accessToken,
'mode': 'no-cors'
}
}
}
});
let marker = new Marker()
.setLngLat([_lon, _lat])
.addTo(_map);
var navigationBtns = new NavigationControl({showCompass: false, showZoom: false, visualizePitch: true});
_map.addControl(navigationBtns, 'top-left');
_map.addControl(new FullscreenControl({container: document.querySelector('.' + elementName)}));