Click or drag to resize

ILayerGeoSearchNearestSearch Method (Point, Int32, Int32, Boolean)

Search for layer objects nearest to a point specified in point.

Namespace:  Ptv.XServer.Controls.Map.Gadgets
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
ICollection<NearestSearchResult> NearestSearch(
	Point point,
	int minNumElements,
	int maxNumElements,
	bool includeAllOfSameDistance
)

Parameters

point
Type: System.WindowsPoint
Point used as 'kick-off' of this search.
minNumElements
Type: SystemInt32
Minimal number of results to look for. This parameter acts as a delimiter for terminating the search.
maxNumElements
Type: SystemInt32
Maximal number of results to look for.
includeAllOfSameDistance
Type: SystemBoolean
Flag indicating that the sorted list can exceed the maximal number of elements, when one or more objects exist having the same distance as the element at the maxNumElements position. Especially when only the nearest object should be returned (maxNumElements equals 1), all objects at the same location should be returned too.

Return Value

Type: ICollectionNearestSearchResult
Collection of nearest layer objects, provided with additional distance information.
See Also