2

I got OsmDroid log like this:

OsmDroid: TileLoader failed to load tile due to mWriter being null (map shutdown?)

OsmDroid: Tile cache increased from 9 to 24

What is the reason I am getting OsmDroid's log like this enter image description here

How to fix it?

enter image description here

  // open street map
    implementation 'org.osmdroid:osmdroid-android:6.1.11'

enter image description here

enter image description here

Bolt UIX
  • 5,988
  • 6
  • 31
  • 58

1 Answers1

1

Let's check this out https://github.com/osmdroid/osmdroid/wiki/FAQ

Coz it helped me when I had the same issue.

--

  1. send user agent
Configuration.getInstance().setUserAgentValue(context.getPackageName());
  1. use zoom level < 20 by default.
  2. add network_security_config.xml into your AndroidManifest.xml
<network-security-config>
   <domain-config cleartextTrafficPermitted="true">
       <domain includeSubdomains="true">openptmap.org</domain>
   </domain-config>
</network-security-config>```