Building Web Applications > The Equipment View Faces Component > Configuring an Equipment View Faces Component > Zoom Constraints

When the zoom level is equal to 1, the manager content is adjusted to the bounds of the JSF view so as to be displayed entirely. Consequently, a zoom level of n means that the content is scaled by a factor of n. For example, a zoom factor of 2 means that the manager content is displayed double its size.

By default, the view is constrained by the manager content bounds. The direct consequences are that:

This constraint can be removed by setting the constrainedOnContents property to false, as follows:

<jvtf:equipmentView constrainedOnContents="false" [...] />

Code Sample 3.2 Removing the Constraint on the Manager Content

The zoom level applied to the view by using the zoom interactor of JavaScript zoom actions can be free or constrained to specified zoom levels. In the free zoom mode, the only constraints are the minimum and maximum zoom levels. The default value of the minimum zoom level is set to 1 and the default value of the maximum zoom level is set to 10. These constraints can be customized with the minZoomLevel and the maxZoomLevel properties respectively.

<jvtf:equipmentView minZoomLevel="2" maxZoomLevel="20" [...] />

Code Sample 3.3 Customizing the Minimum and Maximum Zoom Levels in Free Zoom Mode

Note
By default, the minimum zoom level cannot be lower than 1.

To specify fixed zoom levels, use the zoomLevels property, as follows:

<jvtf:equipmentView zoomLevels="1.0, 2.0, 5.0, 10.0" [...] />

Code Sample 3.4 Specifying Fixed Zoom Levels

When this property is set:

Fixed zoom levels must be used in order for a tiled view to be cached on the client-side.

For more details on setting up zooming in the equipment view see How to Associate Interactors with Image Buttons in the Equipment View Component.