Replies: 1 comment
-
Icons for Map Rendering Engine Version 2 (OpenGL) are built into APK from dependency OsmAndCore_android-4.7.aar from folder assets/OsmAndCore_ResourcesBundle/map/icons |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the source of the POI Icons (amenity_parking, etc.) compiled into the Android apk for OpenGL?
I can see that for Map Rendering Engine Version 1 it is taking .xml files from "../../resources/rendering_styles/style-icons/map-icons-vector", copying them into OsmAnd/res/drawable and building from there.
But for Map Rendering Engine Version 2 (OpenGL) I cannot work out where they are coming from.
I assume that OsmAnd uses the SVG files extension .svg.qz in the .apk folder \assets\OsmAndCore_ResourcesBundle\map\icons but where are these SVG files coming from?
I have tried:
i) deleting the OsmAnd/build directory (the build process keeps putting the files back in OsmAnd/build/intermediates/assets/???/OsmAndCore_ResourcesBundle\map\icons)
ii) deleting 'resources' project so they cannot be coming from there
ii) switched off my Wi-fi connection so they cannot be downloaded
iii) deleting the .xml versions of icons from OsmAnd/res/drawable so they are not being converted from these .xml files
I now just have the OsmAnd project directory (no resources, core, core-legacy, etc.).
I cannot see where the .svg.qz files (amenity_parking.svg.qz, etc.) are coming from.
I cannot see anything relevant in the gradle scripts.
I have tried Googling this.
I can get new and amended icons to appear using Map Rendering Engine Version 1 and editing a render.xml file, but I have spent days trying to do this with Map Rendering Engine Version 2 (OpenGL).
I would really appreciate some advice on how to do this.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions