@versatiles/map-state
    Preparing search index...

    Function encodeState

    • Encode a map state document into the compact base64 representation. resolution: the precision of the element coordinates in meters. Coarser is shorter, e.g. for sharing. Default: 1 m.

      Parameters

      • state: MapState
      • options: { resolution?: number } = {}

      Returns string