On this page

Function mercatorToTileIndex

  • From a given mercator coordinate and a zoom level, computes the tile index

    Parameters

    • position: Position

      Mercator coordinates (north-west is [0, 0], sourth-east is [1, 1])

    • zoom: number

      Zoom level

    • Optionalstrict: boolean

      Returns integer tile indices if true or floating-point values if false

    Returns Position

Was this helpful?
SDK JS
Reference
mercatorToTileIndex