Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • ensureProjection(epsgCode: number, locale: string, alias?: string, factoryIfNotFound?: () => Promise<string>): Promise<[number, string]>
  • Ensures the given projection (by EPSG code) exists and if not invokes the given factory function (or does an epsg.io lookup) to fetch the definition to be registered.

    Once registered, it will update the projection set within OpenLayers

    export
    since

    0.13

    Parameters

    • epsgCode: number
    • locale: string
    • Optional alias: string
    • Optional factoryIfNotFound: () => Promise<string>
        • (): Promise<string>
        • Returns Promise<string>

    Returns Promise<[number, string]>

  • resolveProjectionFromEpsgIoAsync(epsg: string | number, locale: string, mapDef: string): Promise<any>
  • Performs a projection definititon lookup at epsg.io for the given EPSG code

    export
    since

    0.13

    Parameters

    • epsg: string | number
    • locale: string
    • mapDef: string

    Returns Promise<any>

Generated using TypeDoc