Skip to content

Function: getTransformForBounds ​

â–¸ getTransformForBounds(bounds, width, height, minZoom, maxZoom, padding?, offset?): ViewportTransform

Parameters ​

NameTypeDefault value
boundsRectundefined
widthnumberundefined
heightnumberundefined
minZoomnumberundefined
maxZoomnumberundefined
paddingnumber0.1
offsetObjectundefined
offset.x?numberundefined
offset.y?numberundefined

Returns ​

ViewportTransform

Released under the MIT License.