question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow loading of map tiles in 6.0.2

See original GitHub issue

I use version 6.0.2. Compared to version 6.0.1, version 6.0.2 takes a long time to download map tiles, especially noticeable on Android 8.
I use
Configuration.getInstance().setUserAgentValue(getContext().getPackageName()); mapView.setTileSource(TileSourceFactory.MAPNIK);

implementation group: 'org.osmdroid', name: 'osmdroid-android', version: '6.0.2'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
monsieurtanukicommented, Dec 17, 2018

@chrisss404 I’ve just PR’ed #1235, which includes a MapTileProviderBasic.setOfflineFirst(boolean) method. In your case you need to call it with false. And you won’t need your GitHubIssueMapTileProviderBasic class anymore. Tell me if it works.

@s-ilnar Feel free to test and close the issue if relevant.

0reactions
chrisss404commented, Dec 16, 2018

@monsieurtanuki thank you for your detailed instructions.

I can confirm that I’m getting the same behavior as with 6.0.1 using the adapted map tile provider. See 6.0.3-with-adapted-tile-provider.

Just for reference, here are my changes: GitHubIssueMapTileProviderBasic.txt

map.setTileProvider(new GitHubIssueMapTileProviderBasic(this));
map.getTileProvider().getTileCache().getProtectedTileComputers().clear();
map.getTileProvider().getTileCache().setAutoEnsureCapacity(false);

Thanks again and best regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tiles loading extremaly slow - CesiumJS - Cesium Community
Tiles, especially the most used ones - The Open Street maps loading extremely slow. Is there a way to speed it up ?...
Read more >
Manually building a tile server (20.04 LTS) - Switch2OSM
This page describes how to install, setup and configure all the necessary software to operate your own tile server. These step-by-step instructions were ......
Read more >
Installing an OpenStreetMap Tile Server on Ubuntu
The OSM Tile Server is a web server specialized in delivering raster maps, ... (might be slow, depending on the network). carto; openstreetmap-carto....
Read more >
How to Set Up OpenStreetMap Tile Server on Ubuntu 18.04
Learn how to build your own OpenStreetMap tile server on Ubuntu 18.04. ... Run the following command to load map stylesheet and map...
Read more >
OSMDroid loads tiles extremely slowly - Stack Overflow
Do the tiles load faster in your browser on openstreetmap.org? You could try a different tile source. There can be many reasons for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found