unsigned long FindObjectByXTree(const int &iMinsize, CMapRect rec, bool (*IterationCallback)(CMapObject*));
Return Value
Number of objects found.
Parameters
iMinsize
Ignore all objects smaller then iMinsize pixels. This parameter used to filter small objects, e.g. when zoom scale is too large.
rec
Search map rectangle.
bool (*IterationCallback)(CMapObject*)
Search callback function. Should be global. Delete found object before exiting callback function to avoid memory leaks.
Remarks
Call this function to find the none-node object intersected with specific map rectangle. Callback function will be called for each found object.