Function mapPointToLatLng

  • Convert from a point on a referenced map to latitude and longitude. Uses mercator projection.

    The basic formula to achieve this is as follows:

    latitute = 2(tan^-1)[exp(y / radius)] longitude = central parallel of map + (x / radius) - PI / 2

    Parameters

    • floorData: Partial<FloorData>
    • __namedParameters: {
          x: number;
          y: number;
      }
      • x: number
      • y: number

    Returns {
        lat: number;
        lng: number;
    }

    • lat: number
    • lng: number

Generated using TypeDoc