// привести свои размеры к размерам контейнера. myMap.container.fitToViewport(); // https://tech.yandex.ru/maps/jsbox/2.1/fillcontainer