|
| TalMap SDK Libary Reference |
| XUtility::GetLLOnMapRect |
| MapRect내의 DP좌표로 LonLat을 확인합니다. |
|
XUtility::GetLLOnMapRect
XPoint GetLLOnMapRect(int LLon, int RLon, int LLat, int ULat, int DPWidth, int DPHeight, int X, int Y);
|
|
|
Parameters
| |
| LLon |
| Left 경도 |
| RLon |
| Right 경도 |
| LLat |
| Lower 위도 |
| ULat |
| Upper 위도 |
| DPWidth |
| 화면 넓이 |
| DPHeight |
| 화면 높이 |
| X |
| 화면 X 좌표 |
| Y |
| 화면 Y 좌표 |
|
|
|
|
Return Value
|
|
Remarks
| |
GetLLOnMapRect 는 XUtility 의 Method로 제공됩니다.
사용자는 이 메소드를 이용하여, MapRect내의 DP좌표에 해당하는 LonLat을 확인할 수 있습니다.
|
|
|
|
Example
| |
|
|
var util = m_Map.GetUtility();
var point = util.GetLLOnMapRect(45771977, 45774177, 13513818, 13514911, 800, 600, 423, 123);
alert("Lon : " + point.GetX() + ", Lat : " + point.GetY());
|
|
|
|
#include "CXUtility.h"
CXUtility util = m_Map.GetUtility();
CXPoint point = util.GetLLOnMapRect(45771977, 45774177, 13513818, 13514911, 800, 600, 423, 123);
CString msg;
msg.Format(_T("Lon : %d, Lat : %d"), point.GetX(), point.GetY());
AfxMessageBox(msg);
|
|
|
|
TalMapXLib.IXUtility util = m_Map.GetUtility();
TalMapXLib.IXPoint point = util.GetLLOnMapRect(45771977, 45774177, 13513818, 13514911, 800, 600, 423, 123);
MessageBox.Show("Lon : " + point.GetX().ToString() + "Lat :" + point.GetY().ToString());
|
|
|
|
Dim util As TalMapXLib.IXUtility
Dim point As TalMapXLib.IXPoint
Set util = m_Map.GetUtility
Set point = util.GetLLOnMapRect(45771977, 45774177, 13513818, 13514911, 800, 600, 423, 123)
MsgBox ("Lon : " & point.GetX & " Lat :" & point.GetY)
|
|
|
|
See Also
|
|