|
| TalMap SDK Libary Reference |
| XLayerCustomList::IntersectRect |
| 지정된 Rect에 Intersection되는 지 확인합니다. |
|
|
|
|
Parameters
| |
| MapRect |
| MapRect 경위도 Rectangle |
|
|
|
|
Return Value
| |
0 : No, 1 : In, 2 : Intersection
|
|
|
|
Remarks
| |
IntersectRect 는 XLayerCustomList 의 Method로 제공됩니다.
사용자는 이 메소드를 호출함으로, 지정된 Rect에 Intersection 되는지 확인 할 수 있습니다.
|
|
|
|
Example
| |
|
|
var ctrlman = m_Map.GetCtrlMan();
var util = m_Map.GetUtility();
var layerman = ctrlman.GetLayerMan();
var mRect = util.GetMapRect();
mRect._LLong = 45730732;
mRect._LLat = 13499763;
mRect._RLong = 45732076;
mRect._ULat = 13500594;
var obj2 = layerman.FindLayer(1000);
var obj = obj2.FindObject(1);
if(obj != null)
{
var result = obj.IntersectRect(mRect);
alert(result);
}
|
|
|
|
|
|
|
|
|
See Also
|