Skip to content

Instantly share code, notes, and snippets.

@goldfndr
Last active May 13, 2026 06:35
Show Gist options
  • Select an option

  • Save goldfndr/d03fc8346129a602ecb416bfae468b77 to your computer and use it in GitHub Desktop.

Select an option

Save goldfndr/d03fc8346129a602ecb416bfae468b77 to your computer and use it in GitHub Desktop.
OsmAnd more more details
<renderingStyle name="goldfndr" depends="default" defaultColor="#ebe7e4" version="1">
<renderingProperty attr="appMode" name="Rendering mode" description="Map optimization for respective User Profile"
type="string" possibleValues="browse map,car,bicycle,pedestrian"/>
<renderingProperty attr="baseAppMode" name="Default Rendering mode" description="Map optimization for respective User Profile based on base (parent) profile"
type="string" possibleValues="default, car, bicycle, pedestrian, public_transport, boat, ski"/>
<renderingAttribute name="defaultColor">
<case noPolygons="true" attrColorValue="#00ebe7e4"/>
<case attrColorValue="#ebe7e4">
<apply_if nightMode="true" attrColorValue="#121926"/>
</case>
</renderingAttribute>
<renderingAttribute name="surfaceAsphaltColor">
<case nightMode="true" attrColorValue="#6f687e"/>
<case attrColorValue="#6f687e"/>
</renderingAttribute>
<renderingAttribute name="surfaceConcreteColor">
<case attrColorValue="#a7ada8"/>
</renderingAttribute>
<renderingAttribute name="surfacePavingStonesColor">
<case attrColorValue="#e76db8"/>
</renderingAttribute>
<!-- Grass -->
<renderingAttribute name="grassColor">
<case attrColorValue="#a4d78b" />
</renderingAttribute>
<renderingAttribute name="litYesColor">
<case nightMode="true" attrColorValue="#11aeae00"/>
<case attrColorValue="#11ffeb00"/>
</renderingAttribute>
<renderingAttribute name="litNoColor">
<case nightMode="true" attrColorValue="#11d91500"/>
<case attrColorValue="#11ff0000"/>
</renderingAttribute>
<renderingConstant name="null" value="#00000000"/>
<!-- Example: modify route and gpx overlay style -->
<renderingAttribute name="route">
<case color="#ccaa0088" strokeWidth="7:6">
<apply_if nightMode="true" color="#ccff4400" strokeWidth="7:6"/>
</case>
</renderingAttribute>
<!--
<renderingAttribute name="gpx">
<case strokeWidth="7:6" cap="BUTT">
<case nightMode="true" color="#b4b319ff"/>
<case additional="routePoints=true" pathEffect="6_5" color="#b400ffff"/>
<case color="#b400ffff"/>
</case>
</renderingAttribute>
<renderingProperty attr="engine_v1" type="boolean"/>
-->
<order>
</order>
<text>
<switch>
<case minzoom="18" tag="amenity" value="bicycle_parking" nameTag="" nameTag2="operator" textOrder="152" textWrapWidth="16"/>
<case minzoom="14" tag="highway" value="milestone" nameTag="distance" nameTag2="ref" textOrder="46" textWrapWidth="4"/>
<case minzoom="15" tag="emergency" value="fire_hydrant" nameTag="ref"/>
<case moreDetailed="true" streetLighting="true" minzoom="16" tag="highway" value="street_lamp"/>
<case minzoom="16" tag="power" value="pole"/>
<case minzoom="14" tag="man_made" value="street_cabinet" nameTag="ref"/>
<!-- <apply textColor="#266579" textSize="13" textHaloRadius="2" textHaloColor="#ffffff"/> -->
<!-- use style from tag="highway" value="motorway_junction" -->
<apply textSize="13" textColor="#00008b" textHaloRadius="2" textHaloColor="#77ffffff" textMinDistance="10"/>
<apply_if nightMode="true" textColor="#dcdcff" textHaloColor="#77050547"/>
</switch>
</text>
<point>
<!-- highway=stop iconVisibleSize iconMinDistance intersectionSize intersectionMargin -->
<switch minzoom="14" moreDetailed="true" iconOrder="40" intersectionSizeFactor="0">
<case tag="highway" value="stop" icon="stop" shield="white_round_shield"/>
<case tag="highway" value="give_way" icon="give_way" shield="gray_round_shield"/>
<case tag="highway" value="traffic_signals" icon="highway_traffic_signals_map" shield="gray_round_shield"/>
<case tag="man_made" value="street_cabinet" icon="street_cabinet" shield="street_cabinet_shield"/>
<!-- <case tag="highway" value="turning_circle" icon="turning_circle"/> -->
<case tag="highway" value="turning_loop" icon="turning_loop"/>
<case tag="highway" value="milestone" icon="highway_milestone" shield="red_round_shield"/>
<case tag="highway" value="motorway_junction" icon="motorway_junction" shield="gray_round_shield"/>
<case tag="man_made" value="surveillance" icon="surveillance" shield="orange_round_shield"/>
<case tag="emergency" value="fire_hydrant" icon="emergency_fire_hydrant" shield="red_round_shield">
<apply_if additional="fire_hydrant:type=underground" icon="fire_hydrant_type_underground" shield="red_round_shield"/>
<apply_if additional="colour=yellow" icon__1="osmc_yellow_lower"/>
<apply_if additional="colour=white" icon__1="osmc_white_lower"/>
<apply_if additional="colour=red" icon__1="osmc_red_lower"/>
<apply_if additional="colour=green" icon__1="osmc_green_lower"/>
</case>
<case minzoom="15" tag="emergency" value="fire_service_inlet" icon="stop"/>
<case minzoom="15" tag="highway" value="turning_circle" icon="turning_circle">
<apply_if minzoom="17" shield="white_round_shield"/>
<apply_if minzoom="18" shield="white_red_round_big_shield"/>
<apply_if nightMode="true" icon="turning_circle_night"/>
</case>
<case minzoom="18" tag="amenity" value="waste_basket" icon="waste_basket2" shield="waste_basket_shield"/>
<case tag="amenity" value="clock" icon="clock" shield="orange_round_shield"/>
<case tag="barrier" value="bollard" icon="barrier_bollard" shield="barrier_bollard_shield">
<apply_if additional="colour=yellow" icon__1="osmc_yellow_lower"/>
<apply_if additional="colour=green" shield="osmc_green_stripe_2"/>
<apply_if additional="colour=red" shield="osmc_red_stripe_2"/>
<apply_if additional="colour=white" shield="osmc_white_stripe_2"/>
<apply_if additional="colour=brown" shield="osmc_brown_stripe_2"/>
<apply_if additional="colour=silver" shield="osmc_gray_stripe"/>
</case>
<case tag="barrier" value="swing_gate" icon="barrier_swing_gate" shield="barrier_swing_gate_shield">
<apply_if additional="colour=yellow" icon__1="osmc_yellow_lower"/>
<apply_if additional="colour=white" shield="white_round_shield"/>
</case>
</switch>
<switch>
<case minzoom="16" tag="power" value="pole"/>
<case moreDetailed="true" minzoom="17" tag="man_made" value="utility_pole"/>
<apply shield="power_tower_small2" icon="osmc_blue_rectangle_line"/>
<!-- <apply_if nightMode="true" icon="barrier_small_white_4"/> -->
</switch>
<switch>
<case minzoom="17" tag="amenity" value="bench" icon="bench" shield="bench_shield" iconOrder="70">
<apply_if additional="backrest=yes" icon="backrest_yes"/>
</case>
</switch>
<switch moreDetailed="true" streetLighting="true" minzoom="16" iconVisibleSize="10" intersectionSizeFactor="0">
<case tag="highway" value="street_lamp"/>
<case nightMode="false" streetLightingNight="false" tag="light_source" value=""/>
<apply icon="highway_street_lamp">
<case additional="lit_additional=yes" icon="highway_street_lamp_lit">
<apply_if nightMode="false" streetLightingNight="false" shield="street_lamp_lit_yes_shield"/>
<apply_if nightMode="true" shield="street_lamp_lit_yes_night_shield"/>
</case>
<case additional="lit_additional=no">
<apply_if nightMode="false" streetLightingNight="false" shield="street_lamp_lit_no_shield"/>
<apply_if nightMode="true" shield="street_lamp_lit_no_night_shield"/>
</case>
<case shield="street_lamp_lit_yes_shield">
<apply_if nightMode="true" shield="street_lamp_lit_yes_night_shield"/>
</case>
</apply>
<!-- <apply_if maxzoom="16" icon=""/> -->
</switch>
<switch minzoom="17" tag="natural" value="tree" iconOrder="150">
<case maxzoom="17" icon="tree_dot" intersectionMargin="5"/>
<switch minzoom="18">
<case additional="leaf_type=broadleaved" icon="natural_tree_broadleaved"/>
<case additional="leaf_type=needleleaved" icon="natural_tree_needleleaved"/>
<case additional="leaf_type=leafless" icon="natural_tree_leafless"/>
<case additional="tree:type=palm" icon="natural_tree_palm"/>
<case additional="tree:type=cypress" icon="natural_tree_cypress"/>
<case icon="natural_tree_leafless"/>
<apply iconVisibleSize="14" intersectionSizeFactor="0.1">
<apply_if moreDetailed="false" iconVisibleSize="17" intersectionSizeFactor="1.3"/>
</apply>
</switch>
</switch>
<switch minzoom="17">
<case tag="traffic_calming" value="bump" icon="traffic_calming_bump"/>
<case tag="traffic_calming" value="hump" icon="traffic_calming_hump"/>
<case tag="traffic_calming" value="cushion" icon="traffic_calming_cushion"/>
<case tag="traffic_calming" value="choker" icon="traffic_calming_choker"/>
<case tag="traffic_calming" value="chicane" icon="traffic_calming_chicane"/>
<case tag="traffic_calming" value="island" icon="traffic_calming_island"/>
<case tag="traffic_calming" value="table" icon="traffic_calming_table"/>
<case tag="traffic_calming" value="rumble_strip" icon="traffic_calming_rumble_strip"/>
<apply shield="blue_square_shield">
<apply_if nightMode="true" shield="blue_square_night_shield"/>
<apply_if additional="colour=yellow" icon__1="osmc_yellow_lower"/>
<apply_if additional="colour=black" shield="darkgray_round_small_shield"/>
<apply_if additional="colour=white" shield="lightgray_round_night_shield"/>
</apply>
</switch>
</point>
<polygon>
</polygon>
<line>
<!-- Barriers -->
<switch minzoom="15">
<case tag="barrier" value="yes"/>
<case tag="barrier" value="fence">
<!-- <entity_convert pattern="tag_transform" from_tag="barrier" from_value="guard_rail" to_tag1="barrier" to_value1="fence"/> -->
<apply_if minzoom="16" pathIcon="osmc_brown_diamond_left" pathIconStep="14"/>
<apply_if minzoom="16" nightMode="true" pathIcon="osmc_orange_diamond_left"/>
</case>
<case tag="barrier" value="jersey_barrier">
<apply_if minzoom="16" pathIcon="barrier_colored_jersey_barrier" pathIconStep="18"/>
<apply_if minzoom="16" nightMode="true" pathIcon="barrier_jersey_barrier_shield"/>
</case>
<case tag="barrier" value="wall">
<apply_if minzoom="16" pathIcon="osmc_brown_wheel" pathIconStep="15"/>
<apply_if minzoom="16" nightMode="true" pathIcon="osmc_orange_wheel"/>
</case>
<case tag="barrier" value="retaining_wall">
<apply_if minzoom="16" pathIcon="stroke_darkgreen" pathIconStep="15"/>
</case>
<case tag="barrier" value="bollard">
<apply_if minzoom="16" pathIcon="barrier_bollard" pathIconStep="15"/>
</case>
<case tag="barrier" value="cycle_barrier"/>
<case tag="barrier" value="block"/>
<case tag="barrier" value="cattle_grid"/>
<case tag="barrier" value="toll_booth"/>
<case tag="military" value="checkpoint"/>
<case tag="barrier" value="entrance"/>
<case tag="barrier" value="gate"/>
<case tag="barrier" value="lift_gate"/>
<case tag="barrier" value="hampshire_gate"/>
<case tag="barrier" value="stile"/>
<case tag="barrier" value="horse_stile"/>
<case tag="barrier" value="kissing_gate"/>
<case tag="barrier" value="sliding_gate"/>
<case tag="barrier" value="sally_port"/>
<case tag="barrier" value="turnstile"/>
<case tag="barrier" value="full-height_turnstile"/>
<case tag="barrier" value="kent_carriage_gap"/>
<case tag="man_made" value="snow_fence"/>
<case tag="whitewater" value="rapid" pathEffect="2_2"/>
<apply>
<case moreDetailed="true" maxzoom="15" strokeWidth="0.3"/>
<case minzoom="16" strokeWidth="0.6"/>
</apply>
<apply color="#333333">
<apply_if nightMode="true" color="#9b9d92"/>
<apply_if tag="barrier" value="fence" color="#bbbbbb" strokeWidth="2.0"/>
<apply_if tag="barrier" value="bollard" color="#00000000"/>
<apply_if tag="barrier" value="jersey_barrier" color="#00000000"/>
</apply>
</switch>
<switch minzoom="15" >
<case tag="power" value="minor_line" strokeWidth="0.7" pathIcon="osmc_teal_slash" pathIconStep="16"/>
<case tag="power" value="line" strokeWidth="1.1" pathIcon="osmc_teal_x" pathIconStep="18"/>
<apply color="#999999">
<apply_if nightMode="true" color="#777777"/>
<apply_if nightMode="true" value="minor_line" pathIcon="osmc_pink_slash"/>
<apply_if nightMode="true" value="line" pathIcon="osmc_pink_x"/>
</apply>
</switch>
</line>
</renderingStyle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment