I tried extracting the osmarender.xml from OSMDroid_3_0_8_MapsForgeTileSource.jar together with its two corresponding folders ("patterns" and "symbols") and used this arrangement like this:
MapsForgeTileSource1.GetMapsForgeTileSourceOptions.SetRenderTheme(File.OpenInput(MapsForgeDatabasePath, "osmarender.xml"))
So it does work, that is if I'm trying to modify colors, line sizes, font sizes, zoom levels and so on.
What it
does not work is changing the patterns and symbols from the two folders. I've updated some files with the same size and filename, just to see if it works, also adjusted the path for them in osmarender.xml like:
from
<area src="jar:/assets/rendertheme/patterns/military.png" stroke="#e4e4e4" stroke-width="0.2" />
to
<area src="/patterns/military.png" stroke="#e4e4e4" stroke-width="0.2" />
When I set this modification, the map doesn't load at all. I figure this happens because the xml calls for a file (military.png) that was not called/loaded as an InputStream. I may be very wrong about this, too. So far I've tried all combinations I could think of, and the only way to change a pattern on that map is actually changing the specific png inside the MapsForgeTitleSource jar file.
Any help on how could this be done easier? Basically, if changing the colors and sizes works by loading a new xml from somewhere, the files that are called withing the xml (png-s) should load too considering the xml paths have been changed.
Thank you!