@meridian/web-sdk
    Preparing search index...

    Function latLngToMapPoint

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

      The basic formula to achieve this is as follows:

      x = radius(longitude - central meridian of map) * cos(standard parallels with scale)

      y = radius(latitude - central parallel of map)

      Parameters

      • floorData: Partial<FloorData>
      • __namedParameters: { lat: number; lng: number }

      Returns { x: number; y: number }