Hi Pascal - I developed a web app which had approximately 4000 points of interest (airports) to be overlayed on a Google map. This is obviously too much, so the strategly adopted was to filter from the list of airports any that were outside the view area. We also filtered the list depending on the zoom level - only large airpots were displayed when zoomed far out - this prevented displaying all airports in the world at zoom level 15. This strategy incurrs a performance hit of having to update the list on each map movement event, but this is negligble compared to the performance of trying to process 4000 overlay items. This web app was also ported to Android and the same strategy adpoted. The list was updated in the draw() method of the Overlay class
Depending on the density of your points of interest, this may work for you. Rgds, Kevin. SITA Lab. On Jan 8, 4:23 pm, sidecircle <[email protected]> wrote: > Hello, > > I'm using a MapView that shows about 1000 points of interest using a > class SitesOverlay that extends ItemizedOverlay<OverlayItem>. > There is a big performance problem, and the Map behaves slowly on > movements, scales etc. > > So I decided to distribute the points of interest into many smaller > Overlay tiles, each of them covering only a part of the map. > Now I'm looking into the most efficient way of telling the map > controller which of the areas to activate and deactivate when the > covered area, i.e. when MapView.getLatitudeSpan() or > MapView.getLongitudeSpan() changed. > > Where do you think would be the best place to handle a notification > when the MapView changed? I tried to override the draw() method of my > MapView, but it gets called more often than only on those changes, and > anyway I have the feeling that this is not the correct way to handle > the issue. > > Any suggestions or ideas are welcome! > > Thanks, > </Pascal> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

