-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some tiles not refresh after zoom #52
Comments
Do you have this problem with the OpenStreetMapViewer app? If not, what are you doing differently? Are you using offline tiles? |
…etty invasive non-API compatible changes * removed slf4j logger from osmdroid and replace it with the mozilla logger * Aggressively prune down the osmdroid codebase to just the parts that are essential so that we can properly test components. * Fixed some bad exception logging in HttpUtil::get * Discarded the LRUMapTileCache::TileRemovedListener as it's never used * Removed < GINGERBREAD support from the LRUMapTileCache::remove method * Added some comments to recycling ReusableBitmapDrawable instances - I'm pretty sure we *only* use ReusableBitmapDrawable instances * Added more warning level logging to see what's going on with download errors in the TileDownloaderDelegate. * Removed useless logging message when the SmartFSProvider fails to load anything. * Threading has been simplified now so we don't have separate disk IO threads and network download IO threads. * We just have IO threads as networking and caching is tightly coupled together within the SmartFSProvider. * All threading is actually handled by an ExecutionService within the MapTileModuleProviderBase * Dropped MapTileFilesystemProvider as it's no longer used. * Dropped MapTileFileStorageProviderBase and adjusted the class inheritance. * All error logging now requires either an exception (possibly null) to be passed in as the last argument. * Some error logging events have been demoted to just warnings as no actual error has occurred. * Removed unused constants * changed noisey log level messages to debug * bump the size up of the size of the MapTileCache in the abstract TileProvider by 100 tiles. * In debug builds - I've added Map and Cover prefixes to the tile overlays so that you can see which tile are actually being used. * The BitmapTileSourceBase will now label tiles based on a BuildConfig parameter * Swapped out DefaultApacheHttpClient for HttpUrlConnection when downloading tiles * I've disabled the handleTile method in the ZoomInLooper as well as the ZoomOutLooper so that they no longer do anything. This forces tiles to load from disk or network instead of trying to rescale pre-existing tiles and storing/loading them from an LRU cache which may evict tiles. I believe the bugs in ZoomInLooper and ZoomOutLooper are causing the long standing bug in osmdroid listed here: osmdroid/osmdroid#52
I have the same problem. My problem is that when add another TilesOverlay, then when zoom in or zoom out, the map is incomplete. I move the map then all tile is shown. |
i've noticed that behavior too. maybe need to manually call refresh on secondary tile ovelrays |
@spyhunter99, do you know how to refresh the secondary tile ovelray manually? |
try mapview.invalidate |
@spyhunter99 ,I modify the source code, add mapview.invalidate() at the end of DefaultOverlayManager.onDraw() method, and solved my problem, thanks. |
although that solution may work, essentially, it should end up calling the On Thu, Jan 28, 2016 at 11:04 PM, secondflying notifications@github.com
|
Is there any solution provided for this problem? Because I propably encountered similar issue and I don't know if I should open new ticket. I described it on stackoverflow. http://stackoverflow.com/questions/35393295/zooming-in-out-some-tiles-not-rendering-osmdroid-offline-maps |
Having the same issue with MBTiles layers. I can try to solve this as you describe with a mapview.invalidate but I have a related issue where onZoom is not being fired if you do a double or a 2 finger pinch to zoom. |
please retry with 5.4.1 |
#496 related |
please retry with the latest version (after reading that related ticket). it may be related to threading and queue sizes. Since this ticket is now very old with no feedback. I'm going to close it. Reopen or comment back if this is still an issue for you @hlaurent |
same to me using 5.6.5. zoom, then move and have a lot gray area. zoon out and in...and shows.using offline map tiles |
the version of osmdroid is 4.3. I run the project on the Samsung t520, which the version of android is 4.4.2
mapView.getController().setZoom(5), then I wait for seconds, some tiles is not show, then i move the map, all tiles show.
someone meet this problems?
The text was updated successfully, but these errors were encountered: