chart.zoomToZone()
Type: function(zoneKey)
Returns: Promise<void>
Zooms to the zone identified by zoneKey, adjusting zoom level and viewport position.
It works on charts with zones, and on charts with sections whose sections and general admission areas are put into zones. It works in 2D and in 3D.
zoneKey is the key of the zone, not its label.
chart.zoomToZone('north-stand');
- If no zone has that key, the returned promise is rejected.
- On multi-floor charts, it changes floors when the zone isn't shown, so you don't need to call
goToFloor()first. - If the zone is on more than one floor, it goes to the floor of the zone's first section or area.
- With
lockActiveFloor, it stays on the locked floor and zooms to the part of the zone on that floor. If the zone has nothing on that floor, it zooms out to the whole floor.