MGMap.selectRadius   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

boolean selectRadius(MGMapLayer layer, double lat, 
  double lon, double radius, String units)

Description

Selects all map features that fall within the specified radius.

Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" chapter in the Autodesk MapGuide Developer's Guide.

Parameters

layer - Map layer on which to select features. If null, all selectable layers are considered.

lat - Latitude (Y) center of search circle.

lon - Longitude (X) center of search circle. radius - Radius of search circle.

units - Unit of measure for the radius, either M (meters), KM (kilometers), FT (feet), MI (miles), "", or null. "" and null only work with the Autodesk MapGuide Viewer Plug-In and the Autodesk MapGuide Viewer, Java Edition. They use the current default units.

Error Codes

-1 (busy)

-3 (illegal argument)

Returns

boolean - Returns True if successful; otherwise, returns False.

See Also

selectRadiusMode