GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Converts lat/lng to XYZ tile coordinates (Web Mercator projection).

      Parameters

      • lat: number

        Latitude in degrees; clamped to the Web Mercator range.

      • lng: number

        Longitude in degrees; clamped to [-180, 180].

      • zoom: number

        Zoom level.

      • maxLat: number = WEB_MERCATOR_MAX_LAT

        Latitude cutoff. Passed explicitly by CacheCalculator so that mutating its defaults.webMercatorMaxLat stays effective.

      Returns TileCoord

      Tile coordinates { x, y }.