User Tools

Site Tools


samples:samples:addlayer

Table of Contents

AddLayer sample

Documentation | Samples | AddLayer

Summary

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

Description

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.

Code

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

2020/05/26 09:38

Page Tools