Skip to content

Function: getTransformForBounds

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

Parameters

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

Returns

Viewport

Released under the MIT License.