Tutorial: View.setZoomLevel

View.setZoomLevel

Sets the zoom level of the view

Example

async function setZoomLevel(number) {
    const view = await fin.View.getCurrent();
    return await view.setZoomLevel(number);
}

setZoomLevel(4).then(() => console.log('Setting a  zoom level')).catch(err => console.log(err));