Trying to colour items on a custom map #19102
Replies: 3 comments 4 replies
-
Hi Rachel Usually when this happens it is because you are relying on a tag that is present in the *.osm data but is not present in the *.obf file. OsmAndMapCreator uses an XML file (the default one can be found at In your case you are using a custom tag "color" to specify some additional style. This tag is not passed through into the obf by default, looking at the default render_types.xml. You have two options:
Let me know if you need more help with either of these two methods, I do both of these regularly! |
Beta Was this translation helpful? Give feedback.
-
Aha! This was the level of detail I needed to figure this out - thank you! By adding a few directives to a copy of rendering_types.xml:
and altering my rendering a little to more like:
I have exactly the map I needed!!! Again, thank you so much!! |
Beta Was this translation helpful? Give feedback.
-
On a side note that looks like an UK OS style. s that home cooked or from somewhere? |
Beta Was this translation helpful? Give feedback.
-
I have a custom map, created from a fairly large geojson dataset.
I’ve imported the data into JOSM and the data exists as ways, an example of which looks like this:
I then used OsmAndMapCreator to turn that into an .obf and loaded into Osmand.
I have then created my own custom version of the “off-road” map renderer that includes the following added snippet:
and I was hoping for a grey/color dotted line - either green/red/blue/grey
but I get this:
Pretty but the grey lines are not highlighted in the specific green/red/blue/grey colours I’d hoped for.
I’m pretty sure I’m getting something wrong in the rendering but not sure what?
Beta Was this translation helpful? Give feedback.
All reactions