same way to load the script & initialize
[ScriptLoadService object].loadScript(mapsApiUrl, 'map-script-id', () => { const ol = window['ol']; this.map = new ol.Map({ ...details... }); }