terra-draw-monorepo
    Preparing search index...

    Hierarchy

    • unknown
      • TerraDrawArcGISMapsSDKAdapter
    Index

    Constructors

    Methods

    • Returns the longitude and latitude coordinates from a given PointerEvent on the map.

      Parameters

      • event: PointerEvent | MouseEvent

        The PointerEvent or MouseEvent containing the screen coordinates of the pointer.

      Returns { lat: number; lng: number }

      An object with 'lng' and 'lat' properties representing the longitude and latitude, or null if the conversion is not possible.

    • Converts longitude and latitude coordinates to pixel coordinates in the map container.

      Parameters

      • lng: number

        The longitude coordinate to project.

      • lat: number

        The latitude coordinate to project.

      Returns { x: number; y: number }

      An object with 'x' and 'y' properties representing the pixel coordinates within the map container.

    • Renders GeoJSON features on the map using the provided styling configuration.

      Parameters

      • changes: TerraDrawChanges

        An object containing arrays of created, updated, and unchanged features to render.

      • styling: TerraDrawStylingFunction

        An object mapping draw modes to feature styling functions

      Returns void

    • Converts pixel coordinates in the map container to longitude and latitude coordinates.

      Parameters

      • x: number

        The x-coordinate in the map container to unproject.

      • y: number

        The y-coordinate in the map container to unproject.

      Returns { lat: number; lng: number }

      An object with 'lng' and 'lat' properties representing the longitude and latitude coordinates.