From e7008522602adbeb2a137a5477da4de27762d3c1 Mon Sep 17 00:00:00 2001 From: m0nac0 <58807793+m0nac0@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:15:25 +0100 Subject: [PATCH] Readme: add documentation about referencing assets (mbtiles/sprites etc.) This came up e.g. in https://github.com/maplibre/flutter-maplibre-gl/issues/338 and https://github.com/maplibre/flutter-maplibre-gl/issues/318 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e2a064d0d..6582960e4 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,10 @@ if you plan on committing from the Codespace. ## Fixing common issues + +### Loading .mbtiles tile files or sprites/glyphs from the assets shipped with the app +One approach that has been used successfully to do that is to copy the files from the app's assets directory to another directory, e.g. the app's cache directory, and then reference that location. +See e.g. issues https://github.com/maplibre/flutter-maplibre-gl/issues/338 and https://github.com/maplibre/flutter-maplibre-gl/issues/318 ### Avoid Android UnsatisfiedLinkError Update buildTypes in `android\app\build.gradle`