Documentation | Samples | Viewer
How to create a quite complete map viewer with a legend, scale, north arrow (compass rose) and printing capabilities.
See also ViewerLite sample.
This sample illustrates use of:
Name | Description |
---|---|
TGIS_Viewer.Open | Open project. |
TGIS_Viewer.Close | Close a project. |
TGIS_Viewer.Items | All layers. |
TGIS_Viewer.UseRTree | True if RTree will be used by default upon creation of any layer. |
TGIS_Viewer.CS | Coordinate System assigned to the viewer. |
TGIS_Viewer.InvalidateWholeMap | Invalidate whole map. |
TGIS_Viewer.Extent | Map extent. |
TGIS_Viewer.InPaint | True if Viewer is busy in Paint procedure. |
TGIS_Viewer.IsEmpty | True if Viewer is empty (no layers). |
TGIS_Viewer.Locate | Locate a shape that is near _ptg, but is closer than _prec distance. |
TGIS_Viewer.ScreenToMap | Converts point coordinates from screen related to map related. |
TGIS_Viewer.FullExtent | Calculate the screen origin, zoom, and viewport to place the whole map in the window. |
TGIS_Viewer.Get | Retrieve the layer identified by a name. |
TGIS_ViewerWnd.Renderer | Currently operating renderer. |
TGIS_ViewerWnd.Mode | Mode of reaction to mouse events. |
TGIS_Utils.GisCreateLayer | Create a layer given by a name. |
TGIS_Layer.Path | Path to file holding the layer's data. |
TGIS_Layer.CS | Coordinate System that is assigned to the layer. |
TGIS_LayerVector.ImportLayer | Imports a layer from an existing layer. |
TGIS_LayerPixel.Build | Builds an in-memory layer. |
TGIS_LayerVector.DeselectAll | Clears selection of all shapes. |
TGIS_Shape.IsSelected | Is shape selected. |
TGIS_PixelExportManager.ExportFrom | Export a map given by the viewer using tiles. |
This sample is available on following platforms (click to see source code):