IlvGraphic
instances)
added to it, displays a grid adapted to the current zoom level of
the map.IlvMGRSGrid grid = new IlvMGRSGrid(); IlvMGRSGridZone.addAllZones(grid); view.addViewDecoration(grid);
view.getManager().addLayer(new IlvLatLonGrid()-1);
lgrid.setSmoothness(4);
GridManager
class.IlvMapLayerTreeModel ltm = IlvMapLayerTreeProperty.GetMapLayerTreeModel(view.getManager()); IlvMapLayer mapInsertionLayer = new IlvMapLayer(); mapInsertionLayer.setStyle(new IlvGridStyle()); ltm.addChild(null, mapInsertionLayer);
mapInsertionLayer.insert(grid);
IlvDelayedDecoration delayedGrid = new IlvDelayedDecoration(200); delayedGrid.setDecoration(grid); mapInsertionLayer.insert(delayedGrid);
Property name |
Content |
---|---|
GRID_COLOR |
The Color used
to display grid lines. |
TEXT_FONT |
The Font of grid
labels. |
TEXT_COLOR |
The Color used
to display grid labels. |
OUTLINE_COLOR |
The Color of the
outline of the grid labels. |