Can anyone tell me how to customise the rendering of a node (OSM) / point (OsmAnd) based on the name or brand of a shop (to display the brand logo, for example)?
Example, how would I render a different icon for Lidl supermarkets?
I can render different icons based on additional tags with an XML file like this (I took this from default.render.xml and it works for different types of parking so the additional tags are working as selectors):
<?xml version="1.0" encoding="UTF-8"?>
<renderingStyle name="My Custom Render" depends="default" defaultColor="#f1eae4" version="1">
<point>
<switch shield="blue_round_shield">
<case minzoom="16" tag="amenity" value="parking" icon="icon1" iconVisibleSize="38" iconOrder="151">
<case additional="parking=multi-storey" icon="icon2"/>
<case additional="parking=underground" icon="icon3"/>
<case additional="fee=yes" icon="icon4"/>
</case>
</switch>
</point>
</renderingStyle>
But I have tried lots of variations on:
<switch shield="blue_round_shield">
<case minzoom="16" tag="shop" value="supermarket" icon="icon1" iconVisibleSize="38" iconOrder="151">
<case additional="name=Lidl" icon="icon2"/>
<case additional="brand=Lidl" icon="icon3"/>
</case>
</switch>
and I have not found any way of doing this. In this case icon1 is displayed for all supermarkets since I cannot match name or brand to Lidl.
It seems like it should be trivial having got different icons displaying for different parking attributes but trial and error is not working for me! Does anyone know the correct XML to check additional tags such as name and brand?
Thanks,
Marcus