@geoblocks/ol-comfy
    Preparing search index...

    Function coordinatesToTemplate

    • Format coordinates to a template string.

      Parameters

      • coordinates: number[]

        with [x, y] in degrees.

      • Optionaltemplate: string

        a template string containing "{x}" and/or "{y}" to format the result.

      • OptionalformatXFn: (x: number) => string

        a function to format the x coordinate into a string.

      • OptionalformatYFn: (y: number) => string

        a function to format the y coordinate into a string.

      Returns string

      the formated coordinates.