Kevin_Williams
01-10-2007, 05:58 PM
The FindNearby() method draws a circle on the map.
But is there a way to remove the circle when you're done?
I'm trying to make it act like "Find Nearby Places"
When you call "Find Nearby Places", it draws the circle
And when you close the panel, the circle is removed.
Wilfried
01-11-2007, 11:36 AM
Hi Kevin,
you can make it very small doing a new findnearby, then zoom again to the original alt. you can also do a new findnearby (with very small distance) somewhere in the middle of the ocean. then again zoom and pan to original position. On some system map will possible flikker for a moment.
Kevin_Williams
01-11-2007, 12:42 PM
thanks Wilfried
below is what i did
// work around code to remove the FindNearby circle
MapPoint.Location tempLocation = objMap.GetLocation(80, 0, 0); // get location over the arctic ocean
tempLocation.FindNearby(0.1);
objMap.GoBack(); // go back to previous position
Wilfried
01-12-2007, 02:01 PM
Hi Kevin,
thanks for feedback. I think you can speed up to have the radius as small as possible. I think it is 0.01.
Kevin_Williams
01-15-2007, 12:13 PM
when i try 0.01, i get a "ArgumentException was unhandled" error (i'm using MapPoint 2006)
double radius = 0.01;
tempLocation.FindNearby(radius);