User Tools

Site Tools


api:dk11:java:tatukgis.jdk.igis_viewer.centerviewport_tgis_point

Table of Contents



IGIS_Viewer.CenterViewport method

DK for Java | tatukgis.jdk.IGIS_Viewer.CenterViewport | Methods | Properties

Sets the viewport so that _ptg becomes visible at the center of the screen. Same as the Center property.

Available also on: Delphi | .NET | ActiveX | Python.

Syntax

// Java
public abstract void CenterViewport(
  TGIS_Point _ptg
);
// Oxygene
public
  procedure CenterViewport(
    _ptg : TGIS_Point
  );

Parameters

Name Type Description
_ptg TGIS_Point Coordinates in map units.

Remarks

USAGE: Center the current view on a specific map location.

pt = TGIS_Utils.GisPoint(-117.0208, 34.0629)
GIS.CenterViewport(pt)

2026/10/31 23:12

Page Tools