Grid layers don’t contain actual data. Their main purpose is to provide a visual, usually uniform reference that makes it easier to locate data. You can add such layers to the view using a layer builder.
Creating a predefined military grid
LuciadLightspeed offers these grid layer builders:
-
TLspMGRSGridLayerBuilder
creates an MGRS grid. If necessary, you can change what grid lines and labels are displayed and how they are visualized, by configuring aTLspMGRSGridStyle
object on the layer builder. -
TLspGARSGridLayerBuilder
creates a GARS grid. If necessary, you can change what grid lines and labels are displayed and how they’re visualized, by configuring aTLspGARSGridStyle
object on the layer builder. -
TLspCGRSGridLayerBuilder
creates a CGRS grid. If necessary, you can change what grid lines and labels are displayed and how they’re visualized, by configuring aTLspCGRSGridStyle
object on the layer builder.
For a demonstration of these grid types, see the Lightspeed military grid sample.
Creating a custom military grid
The TLspXYGridLayerBuilder
creates custom Cartesian grids. You can define it in the current world reference of the view, which results in an axis-aligned
grid, or in any reference of your choosing.