DK for Java | tatukgis.jdk.IGIS_Viewer.MapToScreen | Methods | Properties
Converts point coordinates from map coordinates to screen coordinates.
// Java public abstract TPoint MapToScreen( TGIS_Point _ptg );
// Oxygene public function MapToScreen( _ptg : TGIS_Point ) : TPoint;
| Name | Type | Description |
|---|---|---|
| _ptg | TGIS_Point | Coordinate in map units. |
| Type | Description |
|---|---|
| TPoint | Screen coordinates converted from the map coordinate. |
See TGIS_LayerVector.DrawLabel for an example.
USAGE: Convert map coordinates to screen pixels for custom drawing.
screen_pt = GIS.MapToScreen(shape.PointOnShape)