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 following platforms (click to see source code):

2017/12/05 09:21