| MGMap.selectRadius |
|
boolean selectRadius(MGMapLayer layer, double lat, double lon, double radius, String units)
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.
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.
-1 (busy)
-3 (illegal argument)
boolean - Returns True if successful; otherwise, returns False.