Skip to content

Function: getTransformForBounds

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

Parameters

NameType
boundsRect
widthnumber
heightnumber
minZoomnumber
maxZoomnumber
padding?number
offset?Object
offset.x?number
offset.y?number

Returns

Viewport

Released under the MIT License.