Hello,
Is there an easy way to get all the pushpins in the current map view? (Mappoint 2004)
Now I have the following solution:
MapPoint.Location[] locations = new MapPoint.Location[5];
locations[0] = myMap.XYToLocation(myMap.Left, myMap.Top);
locations[2] = myMap.XYToLocation(myMap.Left, myMap.Height);
locations[4] = myMap.XYToLocation(myMap.Width, myMap.Height);
locations[6] = myMap.XYToLocation(myMap.Width, myMap.Top);
locations[8] = myMap.XYToLocation(myMap.Left, myMap.Top);
and then a do a QueryPolygon on my dataset.
Is there another (better/easier) way to do this?
Thanks