Function getWgs84CoordinatesForPoint

  • Sets the correct height on the wgs84Coords depending on the height info

    Parameters

    • geometry: Point
    • heightInfo:
          | {
              groundLevelOrMinHeight: number;
              heightReference: NONE;
              layout: GeometryLayout;
              perPositionHeight: boolean;
          } & ExtrusionHeightInfo
          | {
              heightReference: CLAMP_TO_GROUND;
              layout: GeometryLayout;
          }
          | {
              clampOrigin?: [number, number];
              groundLevel?: number;
              heightAboveGround?: number;
              heightReference: RELATIVE_TO_GROUND;
              layout: GeometryLayout;
              perPositionHeight: boolean;
          } & ExtrusionHeightInfo
          | {
              heightReference: CLAMP_TO_TERRAIN;
              layout: GeometryLayout;
          }
          | {
              clampOrigin?: [number, number];
              groundLevel?: number;
              heightAboveGround?: number;
              heightReference: RELATIVE_TO_TERRAIN;
              layout: GeometryLayout;
              perPositionHeight: boolean;
          } & ExtrusionHeightInfo
          | {
              heightReference: CLAMP_TO_3D_TILE;
              layout: GeometryLayout;
          }
          | {
              clampOrigin?: [number, number];
              groundLevel?: number;
              heightAboveGround?: number;
              heightReference: RELATIVE_TO_3D_TILE;
              layout: GeometryLayout;
              perPositionHeight: boolean;
          } & ExtrusionHeightInfo

    Returns Coordinate