|
| TalMap SDK Libary Reference |
| XUtility::GetDPOnMapRect |
| MapRect³»ÀÇ LonLatÁÂÇ¥¿¡ ÇØ´çÇÏ´Â DP PositionÀ» ±¸ÇÑ´Ù. |
|
XUtility::GetDPOnMapRect
XPoint GetDPOnMapRect(int LLon, int RLon, int LLat, int ULat, int DPWidth, int DPHeight, int Lon, int Lat);
|
|
|
Parameters
| |
| LLon |
| Left °æµµ |
| RLon |
| Right °æµµ |
| LLat |
| Lower À§µµ |
| ULat |
| Upper À§µµ |
| DPWidth |
| È¸é ³ÐÀÌ |
| DPHeight |
| È¸é ³ôÀÌ |
| Lon |
| È®ÀÎÇÒ °æµµ |
| Lat |
| È®ÀÎÇÒ À§µµ |
|
|
|
|
Return Value
|
|
Remarks
| |
GetDPOnMapRect ´Â XUtility ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿©, MapRect³»ÀÇ LonLatÁÂÇ¥¿¡ ÇØ´çÇÏ´Â DP PositionÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
Example
| |
|
|
var util = m_Map.GetUtility();
var point = util.GetDPOnMapRect(45771977, 45774177, 13513818, 13514911, 800, 600, 45773165, 13514073);
alert("DP X : " + point.GetX() + ", DP Y : " + point.GetY());
|
|
|
|
#include "CXUtility.h"
CXUtility util = m_Map.GetUtility();
CXPoint point = util.GetDPOnMapRect(45771977, 45774177, 13513818, 13514911, 800, 600, 45773165, 13514073);
CString msg;
msg.Format(_T("DP X : %d, DP Y : %d"), point.GetX(), point.GetY());
AfxMessageBox(msg);
|
|
|
|
TalMapXLib.IXCtrlMan ctrlman = m_Map.GetCtrlMan().
ctrlman.SetDefaultRes("C:\\temp");
|
|
|
|
Dim ctrlman As TalMapXLib.IXCtrlMan
Set ctrlman = m_Map.GetCtrlMan
ctrlman.SetDefaultRes("C:\\temp")
|
|
|
|
See Also
|
|