Constructs a new MGRSOverlayTextProvider
The grid layer to provide overlay text for
Specifies what format string to use at what scale range. The supported formats are the same as MGRSGridSetting.labelFormat.
Options for this OverlayTextProvider.
This event fires whenever OverlayTextProvider.text changes.
This event fires whenever OverlayTextProvider.visible changes.
Returns the current overlay text. This changes whenever coordinate specified by OverlayTextProviderConstructorOptions.coordinate changes. Ie. the map is moved (or the mouse moves if OverlayTextProviderConstructorOptions.coordinate is OverlayTextCoordinateType.MOUSE_CURSOR.
Returns the current state of visibility. Visible is true when:
Destroy this OverlayTextProvider. This cleans up all map / layer listeners it has set up.
Call this to update text. For example, this is called when the map is moved.
A utility class for MGRS grid overlay text.
You can use this to implement a UI component that shows MGRS location info. For example, show in which MGRS zone / square the map is zoomed in on.
The supported formats are the same as MGRSGridSetting.labelFormat. The format is ignored when using COMMON_MAP_COORDINATE.