I am using Bing Map API v7 and I am trying to make it responsive. My initial idea was the typical
I do it with map.SetView:
map.SetView
addEvent(window, 'resize', function() { var width = $(window).width(); map.setView({ width: width, height: 400 }) });