Solved issue with async function call on map-view.js