Setting Scene Size for MapKit JS

I would love to know if there is a way to manipulate how the scene size is set initially.

I see that we have mapkit.MapSize(width, height) at our disposal but there isn't any clear documentation on its use case in the MapKit docs.

I had to do some hacky workaround where I had to set the size like this.

`

 size = new mapkit.MapSize(1000, 600)
map = new mapkit.Map("map");
map._impl._scene._size = size

`

Is there a better way to handle this? On safari it is not setting correctly.

Setting Scene Size for MapKit JS
 
 
Q