LuciadRIA (2026.0.07)
    Preparing search index...

    A utility class that can be used to implement a UI component that shows an overlay text for a layer, for example an overlay that shows the current MGRS grid zone.

    The text can be based on the following types of coordinates:

    This utility fires events whenever the text changes, or the visibility of the layer changes. You can use these events to update the state of your UI component.

    2022.0

    Hierarchy (View Summary)

    Implements

    Constructors

    Accessors

    • get visible(): boolean

      Returns the current state of visibility. Visible is true when:

      • the layer is added to a map
      • the layer's Layer.visible is true
      • labeling is turned on for the current layer

      Returns boolean

    Methods

    • Destroy this OverlayTextProvider. This cleans up all map / layer listeners it has set up.

      Returns void

    • Called whenever a common map coordinate (OverlayTextCoordinateType.COMMON_MAP_COORDINATE) needs to be formatted to a string.

      Parameters

      • map: RIAMap

        A reference to the map for which to determine the common map coordinate.

      • format: string

        The format string to use. This is the format string that matches the current scale range (as passed into the constructor), or the default format string if no matching scale range was found.

      Returns string

    • Called whenever a single (model) point needs to be formatted to a string.

      Parameters

      • modelPoint: Point

        The point to format to a string

      • format: string

        The format string to use. This is the format string that matches the current scale range (as passed into the constructor), or the default format string if no matching scale range was found.

      Returns string

    • Call this to update text. For example, this is called when the map is moved.

      Returns void

    • Protected

      Transform a view point (pixels) to the model reference

      Parameters

      • viewPoint: Point

        A view point (pixel coordinaes) to transform to the model reference

      Returns Point

    Events

    • This event fires whenever OverlayTextProvider.text changes.

      Parameters

      • event: "TextChanged"
      • callback: (newText: string) => void

      Returns Handle

    • This event fires whenever OverlayTextProvider.visible changes.

      Parameters

      • event: "VisibilityChanged"
      • callback: (newVisibility: boolean) => void

      Returns Handle