s2maps-gpu - v0.18.0
    Preparing search index...

    Function adjustURL

    • Adjust a URL either using: the URL_MAP (replace "s2maps://", "opens2://", or "mapbox://") the apiURL (replace "apiURL://") or baseURL (replace "baseURL://") which is defined by the user in the MapOptions urlMap property.

      Parameters

      • input: string

        the input URL

      • userMap: UrlMap = {}

        the user defined guide on how to replace the URL_MAP

      Returns string

      the adjusted URL