User Tools

Site Tools


Table of Contents

AddLayer sample

Documentation | Samples | AddLayer


How to add a layer to the viewer and do few basic operations like zoom in/out or drag a map.


This is a very basic sample. Probably the first sample we ever created.

This sample illustrates use of:

Name Description
TGIS_Layer.ParamsParameters (colors, fills, etc.) object.
TGIS_Layer.PathPath to file holding the layer's data.
TGIS_LayerSHPLayer that can read SHP file.
TGIS_Layer.ParamsParameters (colors, fills, etc.) object.
TGIS_Viewer.AddAdd a layer to the Viewer.
TGIS_Utils.GisCreateLayerCreate a layer given by a name.


This sample is available on following platforms (click to see source code):

2022/10/06 08:53

Page Tools