Finally fixed the issue with the map not rendering.