Skip to main content
ZoomToExtentsOptions
Options for the zoomToExtents method
NameTypeDescription
doNotAnimate?booleanIf true, don't animate while centering. Defaults to false, ie. the operation will be animated.
doNotZoomIfVisible?booleanIf the given extents is all already visible, do not make any changes to zoom.
extentsRectangleXY | Array<RectangleXY>Extents to zoom to. Can be a single box or an array of boxes; in the latter case VisuallyJs will calculate a minimum bounding box for all the boxes provided.
fill?numberA decimal between 0 and 1, which indicates how much of the viewport size the given extents will take up. This value is applied as a ratio of the width or height of the viewport - whichever is smaller. The default is 0.9.
onComplete?(p:PointXY) => anyOptional function to call on operation complete.