DK for Delphi | GisInterfaces.IGIS_Viewer.MapToScreen | Methods | Properties
Converts point coordinates from map coordinates to screen coordinates.
// Delphi public function MapToScreen( const _ptg : TGIS_Point ) : TPoint;
// C++ Builder public: TPoint* MapToScreen( TGIS_Point* const _ptg ) = 0;
| Name | Type | Description |
|---|---|---|
| _ptg | TGIS_Point | Coordinate in map units. |
| Type | Description |
|---|---|
| TPoint | Map coordinates converted to screen coordinates. |
See TGIS_LayerVector.DrawLabel for an example.
USAGE: Convert map coordinates to screen pixels for custom drawing.
screen_pt = GIS.MapToScreen(shape.PointOnShape)