Function: getTransformForBounds ​
â–¸ getTransformForBounds(bounds
, width
, height
, minZoom
, maxZoom
, padding?
, offset?
): ViewportTransform
Parameters ​
Name | Type | Default value |
---|---|---|
bounds | Rect | undefined |
width | number | undefined |
height | number | undefined |
minZoom | number | undefined |
maxZoom | number | undefined |
padding | number | 0.1 |
offset | Object | undefined |
offset.x? | number | undefined |
offset.y? | number | undefined |