Documentation | Samples | AddLayer
AddLayer sample — demonstrates dynamic layer addition and visual parameter configuration.
What the sample shows:
This is a very basic sample. Probably the first sample we ever created.
This sample illustrates use of:
| Name | Description |
|---|---|
| TGIS_Layer.Params | Parameters (colors, fills, etc.) object. |
| TGIS_Layer.Path | Path to file holding the layer's data. |
| TGIS_LayerSHP | Layer that can read SHP file. |
| TGIS_Layer.Params | Parameters (colors, fills, etc.) object. |
| TGIS_Viewer.Add | Add a layer to the Viewer. |
| TGIS_Utils.GisCreateLayer | Create a layer given by a name. |
This sample is available on the following platforms (click to view the source code on GitHub):