LuciadCPillar C# 2023.1.04
|
An MGRS text provider that notifies callbacks whenever the currently visible zone/square of a given Map changes. More...
Classes | |
interface | ICallback |
This callback can be used to be notified whenever the currently visible zone/square changes, by giving you its formatted location text. More... | |
Public Member Functions | |
MgrsGridTextProvider (Luciad.Maps.Map map) | |
Constructs a new MgrsGridTextProvider for the given Map. More... | |
void | AddCallback (Luciad.Layers.Grids.Mgrs.MgrsGridTextProvider.ICallback callback) |
Adds the given callback to the MgrsGridTextProvider. More... | |
void | Dispose () |
void | RemoveCallback (Luciad.Layers.Grids.Mgrs.MgrsGridTextProvider.ICallback callback) |
Removes the given callback from the MgrsGridTextProvider. More... | |
An MGRS text provider that notifies callbacks whenever the currently visible zone/square of a given Map changes.
Typically used to update a UI element in combination with an MGRS grid on the map, although this is not mandatory. The text is formatted with a maximum precision of 100km squares. MgrsGridTextProvider must be instantiated on the UI thread, and its registered ICallbacks are only called on the UI thread. See the Working with MGRS article for more information. 2023.1
|
inline |
Constructs a new MgrsGridTextProvider for the given Map.
MgrsGridTextProvider must be instantiated on the UI thread.
map
the Map. Cannot be nullptr.
NullArgumentException
when the Map is nullptr.
|
inline |
Adds the given callback to the MgrsGridTextProvider.
After calling this method, the MgrsGridTextProvider starts calling the given callback instance.
callback
a callback instance. Cannot be nullptr.
NullArgumentException
when the callback is nullptr.
|
inline |
|
inline |
Removes the given callback from the MgrsGridTextProvider.
After calling this method, the MgrsGridTextProvider stops calling the given callback instance.
callback
a callback instance. Cannot be nullptr.
NullArgumentException
when the callback is nullptr.