• Given bounds in WSEN order and pixel dimensions, figure out what center and zoom will produce a map view with the same bounds and dimensions.

    Parameters

    • bounds: Bounds
    • dimensions: Dimensions
    • __namedParameters: {
          allowAntiMeridian?: boolean;
          allowFloat?: boolean;
          maxzoom?: number;
          minzoom?: number;
          tileSize?: number;
      } = {}
      • Optional allowAntiMeridian?: boolean
      • Optional allowFloat?: boolean

        Allow floating-point zoom levels. By default, only integer zoom levels are output.

      • Optional maxzoom?: number
      • Optional minzoom?: number

        Given a minimum or maximum zoom, the output zoom will be clamped between those numbers.

      • Optional tileSize?: number

        Tile size. By default, this is 256.

    Returns Viewport

Generated using TypeDoc