Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "api/registry/projections"

Index

Functions

ensureProjection

  • ensureProjection(epsgCode: number, locale: string, alias?: undefined | string, factoryIfNotFound?: undefined | function): 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: undefined | string
    • Optional factoryIfNotFound: undefined | function

    Returns Promise<[number, string]>

resolveProjectionFromEpsgIoAsync

  • 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