My app needs to find out whether a list of locations (lat,lon) are in the currently displayed screen.
The latest method involves making a location object for each list item's lat and lon, and then calling locationtox and locationtoy to find out the screen position of each lat/lon.
This method is very costly when performing this process for sizeable lists (gets painful after about 1000 at once), I guess mainly due to needing to call the interfaces for all those 1000+ times.
Can anyone suggest ways that I can cut down this painful delay time?
An idea is if I can work out the projection MapPoint uses, I should be able to use the map's altitude, centre lat/lon and the screen width/height to calculate the screen x/y for given lat/lons, taking the load off the interface between me and mappoint, and putting the blame on me if anything's slow
I browsed the forum and could not find any answers to this question.
Any ideas would be appreciated. If there's any more info you'd like me to provide, please don't hesitate to ask.
Thanks,
Fireball