Usage of rendering.xml in the iOS app?

167 views
Skip to first unread message

JoKeehl

unread,
Nov 26, 2021, 8:02:33 AM11/26/21
to OsmAnd
Good afternoon, 

I am trying OsmAnd on iOS. Looks really good.

I would like to use a customized rendering.xml file, to change the rendering of the map. I would like to change the color of some mountain paths.

The announcement of OsmAnd version 4.0 (iOS) lists the following new feature::
Would someone please help me to understand, how I can force the OsmAnd iOS App to use a customized rendering.xml file?

That would be great!!

Thanks a lot!

Jo.

Dmitry Prodchenko

unread,
Nov 29, 2021, 5:45:51 AM11/29/21
to OsmAnd
Hi!
You need to import customized rendering.xml into OsmAnd Maps, next go to Menu – Configure Map – Map type, select imported map style (restarted of the app can be needed after file import).

JoKeehl

unread,
Nov 29, 2021, 8:00:57 AM11/29/21
to OsmAnd
Hey, thank you, dmpr !

I understand the second part, but I do not know how to "import customized rendering.xml into OsmAnd Maps".

Is that a step I do on my desktop computer?
Or is there a menu somewhere in the App - which I did not find so far - where I can import the rendering.xml file?

I need a little bit more help for this step ... sorry ... :-)

Cheers,
Jo.

Dmitry Prodchenko

unread,
Nov 29, 2021, 9:40:30 AM11/29/21
to OsmAnd
You can default OsmAnd Map style here https://github.com/osmandapp/OsmAnd-resources/blob/master/rendering_styles/default.render.xml, you can save it to a desktop computer, open on a text editor and make needed changes after that, you need to transfer it to your device, by using cloud services, mail or messengers, tap on file, and select share, in the list of supported apps you will find OsmAnd Maps. 

JoKeehl

unread,
Nov 29, 2021, 11:29:37 AM11/29/21
to OsmAnd
Thank you, dmpr ! That was the missing link :)

Unfortunately it does not work yet, but maybe I have to dig deeper....

I changed the file topo.render.xml. There is a constant defining the color of a mountain path: " <renderingConstant name="sacScaleColorT4" value="#6000ff"/>"

I changed the hex code of the color to something like pink (#f900f9). Then I used iCloud and asked OsmAnd Maps to open it (via share menu). No change in the line color so far. But maybe I just don't understand the rendering-xml good enough.

Any hints welcome .... Thanks again,

Jo.

JoKeehl

unread,
Dec 2, 2021, 4:38:00 PM12/2/21
to OsmAnd
Maybe someone has already successfully changed the topo.render.xml ?

I tried several times, but my changes do not have any effect.

Thanks for your ideas :-)

Cheers,
Jo.
Reply all
Reply to author
Forward
0 new messages