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.
// Java public abstract void CenterViewport( TGIS_Point _ptg );
// Oxygene public procedure CenterViewport( _ptg : TGIS_Point );
| Name | Type | Description |
|---|---|---|
| _ptg | TGIS_Point | Coordinates in map units. |
USAGE: Center the current view on a specific map location.
pt = TGIS_Utils.GisPoint(-117.0208, 34.0629) GIS.CenterViewport(pt)