energyplug / geobeagle

Automatically exported from code.google.com/p/geobeagle
0 stars 0 forks source link

Performance: Load caches in greater area in MapView #89

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When zooming out, the cache list is currently retrieved many times, each
time for a different stage in the zooming animation. Don't use the current
Projection object for the MapView to calculate the bounds of the area to
load since this object measures a snapshot of the view.

Instead, calculate an area to load based on getZoomLevel() and the center
point (It is ok to get the center coordinates using Projection).

Furthermore, a greater area than what is visible should always be loaded
whenever a geocache reload must be carried out. This will reduce the number
of load occurrences necessary while scrolling in the MapView.

Since the code structure has changed in andpet branch, the best solution
might be to address this after a 1.0 release.

Original issue reported on code.google.com by andpet@gmail.com on 3 Oct 2009 at 11:22