User Tools

Site Tools


samples:samples:zooming

Table of Contents

Zooming sample

Documentation | Samples | Zooming

Summary

How to perform zooming using mouse movement and mouse wheel. Also how to change a mode of mouse operation: zoom vs drag.

Description

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.

Code

This sample is available on the following platforms (click to view the source code on GitHub):

2025/12/31 10:51

Page Tools