Skip to content

Change bounds from number to number[] #127370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion articles/azure-maps/zoom-levels-and-tile-grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ module AzureMaps {
* @param allowFloatZoom Specifies if the returned zoom level should be a float or rounded down to an whole integer zoom level.
* @returns The center and zoom level to best position the map view over the provided bounding box.
*/
public static BestMapView(bounds: number, mapWidth: number, mapHeight: number, padding: number = 0, tileSize: number = 512, maxZoom: number = 24, allowFloatZoom: boolean = true): { center: number[], zoom: number } {
public static BestMapView(bounds: number[], mapWidth: number, mapHeight: number, padding: number = 0, tileSize: number = 512, maxZoom: number = 24, allowFloatZoom: boolean = true): { center: number[], zoom: number } {
//Ensure valid bounds and map dimensions are provided.
if (bounds == null || bounds.length < 4 || !mapWidth || !mapHeight || mapWidth <= 0 || mapHeight <= 0) {
return {
Expand Down