Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
Regions
Clustering
GeoQuery
Behaviors and events
Search on a map
Traffic
User's location
Routing
YMapsML
GeoXML
ObjectManager
Modular system
Panoramas
External modules

Resizing the map

Save as filesEdit on JSFiddle

Map size is determined when it is created by the container manager. After this, the map does not track possible changes to its size. In order for the map to change its size to the current size, call the fitToViewport() function.

If you copy the full code of the example to a new HTML document, the opened map will take up the entire browser viewport.