Constructs a new MGRSGrid
.
Optional
settings: MGRSGridSetting[]the styling configuration for this grid. See setSettings. Defaults to an empty array.
Returns the style settings currently configured on this MGRSGrid
.
Note that these settings are normalized. All fields of the settings are defined, even if they were
omitted in setSettings
Set styling configuration for this grid. The style settings in the grid may not overlap. Overlap occurs when the new style setting has the same type, same level and an overlapping scale range with an existing style setting.
describes the styling, per scale range and grid line type.
Fired when the style settings of this grid change. See getSettings.
the "SettingsChanged" event
the callback to be invoked when the style settings of the grid change. The callback is invoked without arguments.
Optional
context: anyvalue to use as this when executing callback.
An MGRS grid. This class contains specific information about the grid and various options for styling and labeling. To paint this grid on a map, create a new GridLayer with an object of this class as input.
You can define different styles for all (MGRSType, MGRSLevel) combinations. For every combination, it is also possible to define different scale intervals, in which different styles are used. This can be used to make lines or labels more prominent when zooming in.
Example usages:
Default styling: Create a default MGRS grid with predefined scale ranges and styling.Default styling with tweaks: Create a default MGRS grid, with some tweaks to the default styling and scale ranges.
Custom styling: Start from an empty MGRS grid and add custom scale ranges and styling for a few MGRS levels.
Limitations
Since
2022.0