@geogirafe/lib-geoportal
    Preparing search index...

    Function parseCoordinates

    • Will check if given coords can be mapped to a max extent if not, an empty array is returned

      Parameters

      • coords: number[]

        [lat, lon], [lon, lat], [east, north] accepted

      • extent: undefined | number[]

        bbox of 4 numbers, typically maxExtent defined in config

      • srid: string

      Returns number[]

      coords in provided srid if extent is given, otherwise, returns coords