Working with 2D Gis Layers

Note: you will need to include GisData and Gis2D in your Module Dependencies list in addition to Viewer2D.

Creating a GIS 2D layer for a Map window

In this example, we assume you have already created a GIS dataset gisData and a Map window mapWindow.

NamedProps layerProperties = new NamedProps();
layerProperties.putProperty(IGisLayer.FILL_BG_COLOR, Color.RED);
IGisLayer layer = IGisLayer.factory.createLayer(mapWindow, gisData, layerProperties, false);