|
| 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
|
|