Documentation | Samples | Zooming
How to perform zooming using mouse movement and mouse wheel. Also how to change a mode of mouse operation: zoom vs drag.
This sample illustrates use of:
Name | Description |
---|---|
TGIS_Viewer.Open | Open project. |
TGIS_Viewer.FullExtent | Calculate the screen origin, zoom, and viewport to place the whole map in the window. |
TGIS_ViewerWnd.Mode | Mode of reaction to mouse events. |
TGIS_ViewerWnd.ZoomBy | Zoom the viewer. |
This sample is available on following platforms (click to see source code):