open-vector-tile - v1.8.0
    Preparing search index...

    Function encodeExtent

    • Parameters

      • extent: Extents

        number are in 512, 1024, 2048, 4096, 8192

      Returns number

      • remap to smaller values: 0 -> 512, 1 -> 1024, 2 -> 2048, 3 -> 4096, 4 -> 8192