API Reference > imodeljs-frontend > Views > Viewport > zoomToElements zoomToElements Method Zoom the view to a show the tightest box around a given set of elements. Optionally, change view rotation. zoomToElements(ids: Id64Arg, options?: ViewChangeOptions & ZoomToOptions): Promise<void> Parameter Type Description ids Id64Arg the element id(s) to include. Will zoom to the union of the placements. options ViewChangeOptions & ZoomToOptions options that control how the view change works and whether to change view rotation. Returns - Promise<void> Defined in core/frontend/src/Viewport.ts Line 1974 Last Updated: 12 June, 2024