We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, i can't seem to use a deep zoom map generated in .png format. I get the following errors:
W/BitmapFactory: bitmap marked for reuse (131072 bytes) can't fit new bitmap (262144 bytes)
Is there no support for .png maps or am i doing something wrong?
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val mapView = this.findViewById<MapView>(R.id.mapview) ?: return val tileStreamProvider = TileStreamProvider {row, col, zoomLvl -> try { this.assets?.open("tiles/esp/$zoomLvl/$row/$col.png") } catch (e: Exception) { null } } val config = MapViewConfiguration(levelCount = 6, fullWidth = 8192, fullHeight = 8192, tileSize = 256, tileStreamProvider)/*.setMinimumScaleMode(MinimumScaleMode.FILL)*/ mapView.configure(config) } }
Thanks you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, i can't seem to use a deep zoom map generated in .png format. I get the following errors:
W/BitmapFactory: bitmap marked for reuse (131072 bytes) can't fit new bitmap (262144 bytes)
Is there no support for .png maps or am i doing something wrong?
Thanks you.
The text was updated successfully, but these errors were encountered: