User Tools

Site Tools


Table of Contents

Zooming sample

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.OpenOpen project.
TGIS_Viewer.FullExtentCalculate the screen origin, zoom, and viewport to place the whole map in the window.
TGIS_ViewerWnd.ModeMode of reaction to mouse events.
TGIS_ViewerWnd.ZoomByZoom the viewer.


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

2022/10/06 08:53

Page Tools