<?xml version="1.0" encoding="utf-8"?>
<renderingStyle name="marine" depends="" defaultColor="#fddb8f" version="1.3">
<!-- Version 1.3, 2023-05-07 adding nautical rendering for seamarks in INT-1 P, R, S sections Lights, Fog Signals, Radar -->

<!--	<renderingProperty attr="appMode" name="Rendering mode" description="Map optimization for respective User Profile"
		type="string" possibleValues="browse map,car,bicycle,pedestrian"/>-->
	<renderingProperty attr="noAdminboundaries" name="Hide boundaries" description="Suppress display of admin levels 5-9"
		type="boolean" possibleValues="" category="hide"/>
<!--	<renderingProperty attr="noPolygons" name="Hide polygons" description="Make all areal land features on map transparent"
		type="boolean" possibleValues="" category="hide"/>-->
	<renderingProperty attr="whiteWaterSports" name="Whitewater sports" description="Whitewater sports"
		type="boolean" possibleValues="" category="routes"/>
	<renderingProperty attr="lightDetail" name="Light detail" description="what light information to show"
 category="details" type="string" defaultValue="" defaultValueDescription="default" possibleValues="small,name_only,omit"/> <!-- used in INT-1 P, R, S Sections: Lights, Fog Signals, Radar -->
	<renderingProperty attr="seabedDetail" name="Seabed detail" description="Additional text information on seabed surface_qualification, combined surface types, category and taxon of weed or seagrass" category="details" type="string" defaultValue="" defaultValueDescription="simple" possibleValues="category,all,omit"/> <!-- used in INT-1 J Section: Nature of the Seabed -->
	<renderingProperty attr="currentTrackColor" name="Current GPX color" description="Color of the currently recording track"
		 type="string" possibleValues="red,orange,yellow,lightgreen,green,lightblue,blue,purple,translucent_red,translucent_orange,translucent_yellow,translucent_lightgreen,translucent_green,translucent_lightblue,translucent_blue,translucent_purple" defaultValueDescription="default"/>
	<renderingProperty attr="currentTrackWidth" name="Current GPX width" description="Width of the currently recording track"
		 type="string" possibleValues="thin,medium,bold" defaultValueDescription="default"/>
	<renderingProperty attr="noPolygons" name="Hide polygons" description="Make all areal land features on map transparent"
		 type="boolean" possibleValues="" category="hide"/>
	<renderingProperty attr="legend" name="Legend" type="boolean" possibleValues="" category="ui_hidden"/>

	<renderingProperty attr="watercolor" name="Water Color" description="Color of Water" type="string" defaultValueDescription="default" possibleValues="blue,white,gray"/>

	<renderingProperty attr="fairwayStyle" name="Fairway Color" description="Color of fairways" type="string" defaultValueDescription="white" possibleValues="whiter,gray,green,yellow"/>
	<renderingProperty attr="hideFairways" name="Fairways" description="" type="boolean" possibleValues="" category="hide"/>
	<renderingProperty attr="hideFerries" name="Ferry Routes" description="" type="boolean" possibleValues="" category="hide"/>

	<renderingProperty attr="tidalFlatStyle" name="Tidal Flat Style" description="Style of Tidal Flats" type="string" defaultValueDescription="lightgreen" possibleValues="darkgreen,wetland,tidal"/>

	<renderingProperty attr="hideTidalFlats" name="Tidal Flats" description="" type="boolean" possibleValues="" category="hide"/>

	<renderingProperty attr="hideLightSectors" name="Light Sectors" description="" type="boolean" possibleValues="" category="hide"/>

	<renderingProperty attr="hideLightSectorSources" name="Light Sector Sources" description="" type="boolean" possibleValues="" category="hide"/>

	<renderingProperty attr="hideNoLNAM" name="OSM Seamarks (some)" description="" type="boolean" possibleValues="" category="hide"/>

	<renderingProperty attr="showLNAMmarker" name="ENC marker" description="" type="boolean" possibleValues=""/>

	<renderingProperty attr="shellsStyle" name="Shells Style" description="Style for Shells on Seabed" type="string" defaultValueDescription="gray" possibleValues="rocks,stones,red"/>

	<renderingProperty attr="eleUnits" name="Elevation units" type="string" possibleValues="meters,feet" defaultValueDescription="default" category="ui_hidden"/>

	<renderingAttribute name="gpxColor"> <!-- deprecated -->
		<case attrColorValue="#b400ffff"/>
	</renderingAttribute>

	<renderingAttribute name="route">
		<case color="#ccaa0088" strokeWidth="7:6" color_3="#ffffff" strokeWidth_3="7:6">
			<apply_if nightMode="true" color="#FFFC1D" strokeWidth="7:6"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="shadowRendering">
	<!-- 0 - no shadow, 1 - one step, 2 - blur shadow, 3 - solid shadow -->
		<!-- next line ensures bridges stand out ok -->
		<case minzoom="14" nightMode="false" attrIntValue="3" shadowColor="#969696"/>
		<case minzoom="14" attrIntValue="3" shadowColor="#464646"/>
		<case minzoom="8" maxzoom="13" attrIntValue="3" shadowColor="#969696"/>
		<case attrIntValue="0"/>
	</renderingAttribute>

	<renderingAttribute name="gpx">
		<switch>
			<case currentTrackColor="red" color="#ff0000"/>
			<case currentTrackColor="orange" color="#ff7200"/>
			<case currentTrackColor="yellow" color="#edc300"/>
			<case currentTrackColor="lightgreen" color="#6cb52b"/>
			<case currentTrackColor="green" color="#00842b"/>
			<case currentTrackColor="lightblue" color="#2ec6ff"/>
			<case currentTrackColor="blue" color="#4e4eff"/>
			<case currentTrackColor="purple" color="#a71de1"/>
			<case currentTrackColor="translucent_red" color="#aaff0000"/>
			<case currentTrackColor="translucent_orange" color="#aaff7200"/>
			<case currentTrackColor="translucent_yellow" color="#aaedc300"/>
			<case currentTrackColor="translucent_lightgreen" color="#aa6cb52b"/>
			<case currentTrackColor="translucent_green" color="#aa00842b"/>
			<case currentTrackColor="translucent_lightblue" color="#aa00ffff"/>
			<case currentTrackColor="translucent_blue" color="#aa4e4eff"/>
			<case currentTrackColor="translucent_purple" color="#aaa71de1"/>
			<case color="#ff0000">
				<apply_if roadStyle="germanRoadAtlas" color="#aa0088"/> <!-- does not works -->
			</case>
			<apply cap="ROUND">
				<case currentTrackWidth="thin">
					<apply_if minzoom="3" maxzoom="5" strokeWidth="1"/>
					<apply_if minzoom="6" strokeWidth="2"/>
				</case>
				<case currentTrackWidth="medium">
					<apply_if minzoom="3" maxzoom="5" strokeWidth="1"/>
					<apply_if minzoom="6" maxzoom="11" strokeWidth="3"/>
					<apply_if minzoom="12" strokeWidth="5"/>
				</case>
				<case currentTrackWidth="bold">
					<apply_if minzoom="3" maxzoom="5" strokeWidth="1"/>
					<apply_if minzoom="6" maxzoom="7" strokeWidth="3"/>
					<apply_if minzoom="8" maxzoom="9" strokeWidth="5"/>
					<apply_if minzoom="10" maxzoom="11" strokeWidth="7"/>
					<apply_if minzoom="12" strokeWidth="11"/>
				</case>
				<case>
					<apply_if minzoom="3" maxzoom="5" strokeWidth="1"/>
					<apply_if minzoom="6" strokeWidth="2"/>
				</case>
			</apply>
			<apply_if additional="routePoints=true" pathEffect="6_2"/>
		</switch>
	</renderingAttribute>

	<renderingProperty attr="engine_v1" type="boolean"/>

	<renderingAttribute name="waterwayArrows">
		<case attrIntValue="1"/>
	</renderingAttribute>
	<renderingAttribute name="noHighwayOnewayArrows">
		<case attrIntValue="1"/>
	</renderingAttribute>

	<renderingAttribute name="defaultColor">
		<case legend="true" attrColorValue="#ffffff"/>
		<case noPolygons="true" attrColorValue="#00555555"/>
		<!--    <case depthColorScheme="ECDIS" attrColorValue="#C8B87A">-->
		<!--      <case nightMode="true" attrColorValue="#2C291B"/>-->
		<!--    </case>-->
		<case attrColorValue="#fddb8f">
			<apply_if nightMode="true" attrColorValue="#464234"/>
		</case>
	</renderingAttribute>

	<renderingAttribute name="rulerCircle">
		<case color="#000000" strokeWidth="1.5" shadowRadius="1" shadowColor="$defaultColor" strokeWidth_2="" color_2="#000000" strokeWidth_3="2" color_3="$defaultColor"/>
		<apply_if nightMode="true" color="#999999" color_2="#999999"/>
	</renderingAttribute>

	<renderingAttribute name="rulerLine">
		<case color="#000000" strokeWidth="4" pathEffect="4_4"/>
		<apply_if nightMode="true" color="#aaaaaa"/>
	</renderingAttribute>
	<renderingAttribute name="rulerLineFont">
		<!-- color - font color
		strokeWidth -
		color_2 - stroke color
		strokeWidth_2 - font stroke width
		-->
		<case color="#000000" strokeWidth="0" color_2="#99f1eae4" strokeWidth_2="4">
			<apply_if nightMode="true" color="#333333" color_2="#aaaaaa"/>
		</case>
	</renderingAttribute>

	<renderingAttribute name="measureDistanceLine">
		<case color="#536dfe" strokeWidth="2" pathEffect="5_3"/>
		<apply_if nightMode="true" color="#ff8800"/>
	</renderingAttribute>

	<renderingAttribute name="markerGuideline">
		<case color="#555555" strokeWidth="2" pathEffect="5_3"/>
		<apply_if nightMode="true" color="#55ff55" color_2="#aa66ff"/>
	</renderingAttribute>

	<renderingAttribute name="markerPlanRouteline">
	<!-- color - straight line color
		strokeWidth - straight line
		color_2 - route line
		strokeWidth_2 - route line
		-->
		<case color="#536dfe" strokeWidth="2" pathEffect="5_3" color_2="#CC536dfe" strokeWidth_2="3" pathEffect_2="10_3"/>
		<apply_if nightMode="true" color="#536dfe" color_2="#CC536dfe"/>
	</renderingAttribute>

	<renderingAttribute name="polygonMinSizeToDisplay">
	<!-- Minimum polygon size in pixels -->
		<case attrIntValue="10"/>
	</renderingAttribute>
	<renderingAttribute name="roadDensityZoomTile">
	<!-- 8 (=1 pixel tile) down to 0 (=large tile) -->
		<case minzoom="15" attrIntValue="4"/>
		<case attrIntValue="3"/>
	</renderingAttribute>

	<renderingAttribute name="roadsDensityLimitPerTile">
	<!-- Number of roads to display per tile -->
		<case attrIntValue="12"/>
	</renderingAttribute>

	<renderingAttribute name="defaultSymbolPathSpacing">
		<case attrFloatValue="5"/>
	</renderingAttribute>

	<renderingAttribute name="defaultBlockPathSpacing">
		<case attrFloatValue="100"/>
	</renderingAttribute>

	<renderingAttribute name="globalPathPadding">
		<case attrFloatValue="0"/>
	</renderingAttribute>


	<renderingConstant name="waterwayStrokeColorDay" value="#86c0e4"/>
	<renderingAttribute name="waterwayColor">
		<case nightMode="true" attrColorValue="#1c0f5e"/>
		<case attrColorValue="#76cbea"/>
	</renderingAttribute>

	<renderingAttribute name="watercolor">
		<case watercolor="blue" attrColorValue="$waterwayColor"/>
		<case watercolor="white" attrColorValue="#ffffff">
			<case nightMode="true" attrColorValue="#0A0A0A"/>
		</case>
		<case watercolor="gray" attrColorValue="#dddddd">
			<case nightMode="true" attrColorValue="#222222"/>
		</case>
		<case watercolor="hide" attrColorValue="#00ffffff"/>
		<case attrColorValue="#a8e6fd">
			<case nightMode="true" attrColorValue="#012f5c"/>
		</case>
	</renderingAttribute>

	<renderingAttribute name="waterwayStrokeColorNight">
		<switch>
			<case publicTransportMode="true"/>
			<case tramTrainRoutes="true"/>
			<case subwayMode="true"/>
			<apply attrColorValue="#2a3d50"/>
		</switch>
		<case attrColorValue="#511db8"/>
	</renderingAttribute>

	<!-- depthcontourslines -->
	<renderingProperty attr="depthContours" name="Depth contours" description="Show depth contours and points" type="boolean" possibleValues="" category="details"/>
	<renderingProperty attr="hideSpots" name="Spot Soundings" description="" type="boolean" possibleValues="" category="hide"/>
	<renderingProperty attr="hideContours" name="Depth Contours" description="" type="boolean" possibleValues="" category="hide"/>
	<renderingProperty attr="hideMinorContours" name="Minor Depth Contours" description="" type="boolean" possibleValues="" category="hide"/>
	<renderingProperty attr="hideAreas" name="Depth Areas" description="" type="boolean" possibleValues="" category="hide"/>

	<renderingProperty attr="depthContourWidth" name="Line Width" description="Depth contour lines width" type="string" possibleValues="thin,medium,thick" defaultValueDescription="default"/>

	<renderingProperty attr="depthContoursDashed" name="Dashed Depth Contours" description="" type="boolean" possibleValues="" defaultValueDescription=""/>

	<renderingProperty attr="depthColorScheme" name="Depth Color Scheme" description="depth color scheme" type="string" possibleValues="ECDIS" defaultValueDescription="PAPER"/>

	<renderingProperty attr="spotSize" name="Spot Sounding Size" description="" type="string" possibleValues="10,12,14,16" defaultValueDescription="default"/>

	<renderingProperty attr="spotDistance" name="Spot Sounding Distance" description="" type="string" possibleValues="0,5,10,15,30,60,120" defaultValueDescription="default"/>

	<renderingProperty attr="safetyContour" name="Safety Depth Contour" description="" type="string" possibleValues="0m,1m,2m,3m,4m,5m,10m" defaultValueDescription="off"/>

	<renderingAttribute name="color0">
		<!--  zero  -->
		<case depthColorScheme="ECDIS" attrColorValue="#525A5C">
			<case nightMode="true" attrColorValue="#363C3D"/>
		</case>
		<case attrColorValue="#cc000000">
			<case nightMode="true" attrColorValue="#ccaaaaaa"/>
		</case>
	</renderingAttribute>

	<renderingAttribute name="color1">
		<!--  drying  -->
		<case depthColorScheme="ECDIS" attrColorValue="#7D888B">
			<case nightMode="true" attrColorValue="#292E2E"/>
		</case>
		<case attrColorValue="#cc18992c"/>
	</renderingAttribute>

	<renderingAttribute name="color2">
		<!--  underwater  -->
		<case depthColorScheme="ECDIS" attrColorValue="#7D888B">
			<case nightMode="true" attrColorValue="#292E2E"/>
		</case>
		<case attrColorValue="#cc545C62"/>
	</renderingAttribute>

	<renderingAttribute name="depthTextColor">
		<case nightMode="true" attrColorValue="#aaaaaa"/>
		<case attrColorValue="#333333"/>
	</renderingAttribute>

	<renderingAttribute name="safetyLineType">
		<case safetyContour="0m" attrStringValue="contourtype=0m"/>
		<case safetyContour="1m" attrStringValue="contourtype=1m"/>
		<case safetyContour="2m" attrStringValue="contourtype=2m"/>
		<case safetyContour="3m" attrStringValue="contourtype=3m"/>
		<case safetyContour="4m" attrStringValue="contourtype=4m"/>
		<case safetyContour="5m" attrStringValue="contourtype=5m"/>
		<case safetyContour="10m" attrStringValue="contourtype=10m"/>
		<case attrStringValue="contourtype=x"/>
	</renderingAttribute>
	<!-- depthcontourslines -->

	<renderingAttribute name="boundaryColorInner">
		<case attrColorValue="#35ffffff">
			<apply_if nightMode="true" attrColorValue="#30ffffff"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="boundaryColorOuter">
		<case attrColorValue="#60ffffff">
			<apply_if nightMode="true" attrColorValue="#40ffffff"/>
		</case>
	</renderingAttribute>

	<renderingAttribute name="placeCountryTextColor">
		<case attrColorValue="#635700">
			<apply_if nightMode="true" attrColorValue="#fffccc"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="placeCountryTextHaloColor">
		<case attrColorValue="#aaf7ebf7">
			<apply_if nightMode="true" attrColorValue="#77777545"/>
		</case>
	</renderingAttribute>

	<renderingConstant name="placeCityVillageTextColorDay" value="#000000"/>
	<renderingConstant name="placeCityVillageTextHaloColorDay" value="$defaultColor"/>
	<renderingConstant name="placeSuburbLocalityTextColorDay" value="#222222"/>
	<renderingConstant name="placeTextHaloRadiusDay" value=":1"/>
	<renderingConstant name="placeTextHaloColorDay" value="#bbfddb8f"/>

	<renderingConstant name="textHaloRadiusDay" value=":1"/>
	<renderingConstant name="textHaloRadiusNight" value=":2"/>
	<renderingConstant name="defaultTextHaloColorDay" value="#bbfddb8f"/>

	<renderingConstant name="black" value="#000000"/>
	<renderingConstant name="white" value="#ffffff"/>
	<renderingConstant name="null" value="#00000000"/>

	<renderingAttribute name="motorwayRoadLowZoomColor">
		<case attrColorValue="#fdf2d9">
			<apply_if nightMode="true" attrColorValue="#93916d"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="motorwayRoadColor">
		<case attrColorValue="#fdf2d9">
			<apply_if nightMode="true" attrColorValue="#93916d"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="trunkRoadColor">
		<case attrColorValue="#fdf2d9">
			<apply_if nightMode="true" attrColorValue="#93916d"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="trunkRoadLowZoomColor">
		<case attrColorValue="#fdf2d9">
			<apply_if nightMode="true" attrColorValue="#93916d"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="motorwayRoadShadowColor">
		<case attrColorValue="#9c7136">
			<apply_if nightMode="true" attrColorValue="#b7b07b"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="trunkRoadShadowColor">
		<case attrColorValue="#9c7136">
			<apply_if nightMode="true" attrColorValue="#b7b07b"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="primaryRoadColor">
		<case attrColorValue="#fdebc4">
			<apply_if nightMode="true" attrColorValue="#797759"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="primaryRoadLowZoomColor">
		<case attrColorValue="#fdebc4">
			<apply_if nightMode="true" attrColorValue="#797759"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="secondaryRoadColor">
		<case attrColorValue="#fdebc4">
			<apply_if nightMode="true" attrColorValue="#797759"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="secondaryRoadLowZoomColor">
		<case attrColorValue="#fdebc4">
			<apply_if nightMode="true" attrColorValue="#797759"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="tertiaryRoadColor">
		<case attrColorValue="#fde4ac">
			<apply_if nightMode="true" attrColorValue="#595842"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="tunnelColor">
		<case attrColorValue="#33fde4ac">
			<apply_if nightMode="true" attrColorValue="#88595842"/>
		</case>
	</renderingAttribute>
	<renderingConstant name="residentialRoadColor" value="#fddb8f"/>
	<renderingConstant name="residentialRoadColorNight" value="#464234"/>
	<renderingAttribute name="residentialRoadShadowColor">
		<case attrColorValue="#969696">
			<apply_if nightMode="true" attrColorValue="#77b7b07b"/>
		</case>
	</renderingAttribute>
	<renderingConstant name="serviceRoadColorNight" value="#727272"/>
	<renderingAttribute name="serviceRoadColor">
		<case attrColorValue="#fddb8f">
			<apply_if nightMode="true" attrColorValue="#464234"/>
		</case>
	</renderingAttribute>

	<renderingAttribute name="roadRoadColor">
		<case attrColorValue="#E9D3A3">
			<apply_if nightMode="true" attrColorValue="#80795F"/>
		</case>
	</renderingAttribute>

	<renderingConstant name="roadMinZoom" value="14"/>
	<renderingConstant name="serviceDrivewayRoadColor" value="#fddb8f"/>
	<renderingConstant name="serviceDrivewayRoadColorNight" value="#464234"/>
	<renderingConstant name="pedestrianRoadModeColorDay" value="#fddb8f"/>
	<renderingConstant name="pedestrianRoadModeColorNight" value="#464234"/>
	<renderingConstant name="pedestrianRoadShadowColorDay" value="#777d6212"/>
	<renderingConstant name="pedestrianRoadShadowColorNight" value="#8a7f5e"/>
	<renderingAttribute name="trackColor">
		<case attrColorValue="#998100">
			<apply_if nightMode="true" attrColorValue="#cbc896"/>
		</case>
	</renderingAttribute>
	<renderingConstant name="trackStrokeWidth" value="1:1"/>
	<renderingConstant name="trackLowZoomStrokeWidth" value="0.8"/>
	<renderingConstant name="trackBridgeWidth" value="3:3"/>
	<renderingConstant name="trackBridgeInnerWidth" value="2:2"/>
	<renderingConstant name="trackTunnelPathEffect" value="6_4"/>
	<renderingAttribute name="pathColor">
		<case nightMode="true" attrColorValue="#645638"/>
		<case attrColorValue="#787878"/>
	</renderingAttribute>
	<renderingConstant name="pathStrokeWidth" value="0.9"/>
	<renderingConstant name="pathPathEffect" value="4_2"/>
	<renderingAttribute name="footwayColor">
		<case nightMode="true" attrColorValue="#dadada"/>
		<case attrColorValue="#645638"/>
	</renderingAttribute>
	<renderingConstant name="footwayStrokeWidth" value="0.9"/>
	<renderingConstant name="bridgeColorNight" value="#ffe9b5"/>
	<renderingConstant name="railwayRailColorDay" value="#97957d"/>
	<renderingConstant name="railwayRailColorNight" value="#665f45"/>
	<renderingAttribute name="pierColor">
		<case attrColorValue="#e9ca84">
			<apply_if nightMode="true" attrColorValue="#67614c"/>
		</case>
	</renderingAttribute>
	<renderingAttribute name="accessPrivateColor">
		<case nightMode="true" attrColorValue="#cc4747"/>
		<case attrColorValue="#fe5757"/>
	</renderingAttribute>
	<renderingAttribute name="woodColor">
		<case nightMode="true" attrColorValue="#3d5030"/>
		<case attrColorValue="#e3d07b"/>
	</renderingAttribute>
	<renderingAttribute name="naturalTextColor">
		<case nightMode="true" attrColorValue="#dae09f"/>
		<case attrColorValue="#3a4c00"/>
	</renderingAttribute>

	<renderingConstant name="buildingTextHaloRadiusDay" value="1"/>
	<renderingConstant name="buildingTextHaloColorDay" value="#ddfddb8f"/>
	<renderingConstant name="landuseIndustrialColorDay" value="#dfd1d6"/>
	<renderingConstant name="landuseIndustrialColorNight" value="#3b3b3b"/>
	<renderingConstant name="landuseResidentialColorDay" value="#e3c580"/>
	<renderingConstant name="landuseResidentialColorNight" value="#52513d"/>
	<renderingConstant name="landuseResidentialRuralColorDay" value="#cdd5cd"/>
	<renderingConstant name="landuseManmadeTextHaloRadiusDay" value=":1"/>
	<renderingConstant name="landuseManmadeTextColorDay" value="#000000"/>
	<renderingConstant name="landuseManmadeTextHaloColorDay" value="#aafddb8f"/>
	<renderingConstant name="waterTextHaloRadiusDay" value="1"/>
	<renderingConstant name="waterTextColorDay" value="#2375aa"/>
	<renderingConstant name="waterTextColorNight" value="#95e7ff"/>
	<renderingConstant name="waterTextHaloColorDay" value="#99ddf1fd"/>

	<renderingConstant name="textHaloRadiusDay" value=":1"/>
	<renderingConstant name="textHaloRadiusNight" value=":2"/>
	<renderingConstant name="defaultTextColorNight" value="#ffe9b5"/>
	<renderingConstant name="highwayResidentialTextHaloColorDay" value="#ffffff"/>
	<renderingConstant name="highwayServiceTextHaloColorDay" value="#ffffff"/>
	<renderingConstant name="highwayResidentialServiceTextColorNight" value="#ffe9b5"/>
	<renderingConstant name="highwayTrackTextHaloRadiusDay" value=":1"/>
	<renderingConstant name="highwayTrackTextHaloColorDay" value="#aaf1eae4"/>
	<renderingAttribute name="fairwayColor">
		<case fairwayStyle="whiter" attrColorValue="#99ffffff">
			<case nightMode="true" attrColorValue="#55ffffff"/>
		</case>
		<case fairwayStyle="gray" attrColorValue="#88888888"/>
		<case fairwayStyle="green" attrColorValue="#76f17b">
		<case nightMode="true" attrColorValue="#7700ff00"/>
		</case>
		<case fairwayStyle="yellow" attrColorValue="#77fcf177"/>
		<case nightMode="true" attrColorValue="#22ffffff"/>
		<case attrColorValue="#33ffffff"/>
	</renderingAttribute>
	<renderingAttribute name="tidalFlatColor">
		<case tidalFlatStyle="darkgreen" attrColorValue="#aa82B194">
			<case nightMode="true" attrColorValue="#aa085e0c"/>
		</case>
		<case attrColorValue="#ddcceccd">
			<case nightMode="true" attrColorValue="#dd046b09"/>
		</case>
	</renderingAttribute>

	<renderingAttribute name="depthTextColor">
		<case nightMode="true" attrColorValue="#aaaaaaaa"/>
		<case attrColorValue="#333333"/>
	</renderingAttribute>

	<renderingAttribute name="whiteColor">
		<case attrColorValue="#88ffffff"/>
	</renderingAttribute>
	<renderingAttribute name="redColor">
		<case attrColorValue="#88ff0000"/>
	</renderingAttribute>
	<renderingAttribute name="orangeColor">
		<case nightMode="true" attrColorValue="#88ffb631"/>
		<case attrColorValue="#88ff7200"/>
	</renderingAttribute>
	<renderingAttribute name="brownColor">
		<case nightMode="true" attrColorValue="#88b46100"/>
		<case attrColorValue="#88ba7007"/>
	</renderingAttribute>
	<renderingAttribute name="darkyellowColor">
		<case nightMode="true" attrColorValue="#88737812"/>
		<case attrColorValue="#88afb61c"/>
	</renderingAttribute>
	<renderingAttribute name="yellowColor">
		<case attrColorValue="#88edc300"/>
	</renderingAttribute>
	<renderingAttribute name="lightgreenColor">
		<case nightMode="true" attrColorValue="#8895ff79"/>
		<case attrColorValue="#886cb52b"/>
	</renderingAttribute>
	<renderingAttribute name="greenColor">
		<case nightMode="true" attrColorValue="#8838c012"/>
		<case attrColorValue="#8800842b"/>
	</renderingAttribute>
	<renderingAttribute name="lightblueColor">
		<case nightMode="true" attrColorValue="#887fe5ff"/>
		<case attrColorValue="#882ec6ff"/>
	</renderingAttribute>
	<renderingAttribute name="blueColor">
		<case nightMode="true" attrColorValue="#886d74ff"/>
		<case attrColorValue="#884e4eff"/>
	</renderingAttribute>
	<renderingAttribute name="purpleColor">
		<case nightMode="true" attrColorValue="#88cd5efb"/>
		<case attrColorValue="#88a71de1"/>
	</renderingAttribute>
	<renderingAttribute name="grayColor">
		<case nightMode="true" attrColorValue="#aa999999"/>
		<case attrColorValue="#aa999999"/>
	</renderingAttribute>
	<renderingAttribute name="blackColor">
		<case nightMode="true" attrColorValue="#aa666666"/>
		<case attrColorValue="#aa000000"/>
	</renderingAttribute>

	<renderingAttribute name="whitewaterSectionGrade0Color">
		<case attrColorValue="#EE00A3FF"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterSectionGrade1Color">
		<case attrColorValue="#EE7FFF00"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterSectionGrade2Color">
		<case attrColorValue="#EEFFE455"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterSectionGrade3Color">
		<case attrColorValue="#EEFFA500"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterSectionGrade4Color">
		<case attrColorValue="#EEFF0000"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterSectionGrade5Color">
		<case attrColorValue="#EEBF3EFF"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterSectionGrade6Color">
		<case nightMode="true" attrColorValue="#111111"/>
		<case attrColorValue="#EE494949"/>
	</renderingAttribute>

	<renderingAttribute name="whitewaterRapidGrade0Color">
		<case attrColorValue="#0078BA"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterRapidGrade1Color">
		<case attrColorValue="#53A600"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterRapidGrade2Color">
		<case nightMode="true" attrColorValue="#B5A23D"/>
		<case attrColorValue="#D2BC47"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterRapidGrade3Color">
		<case nightMode="true" attrColorValue="#B47400"/>
		<case attrColorValue="#CF8500"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterRapidGrade4Color">
		<case attrColorValue="#B10000"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterRapidGrade5Color">
		<case attrColorValue="#822AAD"/>
	</renderingAttribute>
	<renderingAttribute name="whitewaterRapidGrade6Color">
		<case nightMode="true" attrColorValue="#555555"/>
		<case attrColorValue="#888888"/>
	</renderingAttribute>

	<order>
		<!-- depthcontourslines -->
		<switch area="false" objectType="2" order="80">
			<case tag="contour" value="depth" order="15"/>
		</switch>
		<switch point="false" addPoint="true" objectType="3">
			<case tag="contourarea" value="depth" order="4"/>
		</switch>
		<!-- depthcontourslines -->
	<!-- Point -->
	<switch>
		<switch area="false" point="true" objectType="1" order="128">
			<case tag="" value=""/>
			<case tag="natural" value=""/>
			<case tag="waterway" value="waterfall"/>
			<case tag="whitewater" value="rapid"/>
			<case tag="whitewater" value="hazard"/>
			<case tag="waterway" value="lock_gate"/>
			<case tag="waterway" value=""/>
			<case tag="natural" value="strait"/>
			<case tag="natural" value="bay"/>
			<case tag="natural" value="fjord"/>
			<case tag="natural" value="hot_spring"/>
			<case tag="natural" value="geyser"/>
			<case tag="aeroway" value=""/>
			<case tag="place" value=""/>
			<case tag="railway" value="station"/>
			<case tag="railway" value=""/>
			<case tag="power" value=""/>
			<case tag="osmand" value="file_waypoint"/>
			<case tag="seamark:type" value="anchorage"/>
			<case tag="seamark:type" value="anchor_berth"/>
			<case tag="seamark:type" value="berth"/>
			<case tag="seamark:type" value="gate"/>
			<case tag="seamark:type" value="production_area"/>
			<case tag="seamark:type" value="harbour"/>
			<case tag="leisure" value="marina"/>
			<case tag="seamark:type" value="hulk"/>
			<case tag="seamark:type" value="marine_farm"/>
			<case tag="seamark:type" value="waterfall"/>
			<case tag="seamark:type" value="wreck"/>
			<case tag="seamark:type" value="rock"/>
			<case tag="seamark:type" value="obstruction" order="4"/>
			<case tag="seamark" value=""/>
			<case tag="seamark" value="light"/> <!-- for INT-1 P -->
			<case tag="seamark:type" value="fishing_facility"/>
			<case tag="seamark:type" value="seabed_area"/>
			<case tag="seamark:type" value="weed"/>
			<case tag="seamark:type" value="seagrass"/>
			<case tag="seamark:type" value="sand_waves"/>
			<case tag="seamark:type" value="spring"/>
		</switch>
	<!-- Polygon -->
		<switch area="true" point="false" addPoint="true" objectType="3" order="5">
			<switch>
				<case tag="natural" value="coastline"/>
				<case tag="natural" value="land"/>
				<case tag="place" value="island"/>
				<case tag="place" value="islet"/>
				<case tag="" value=""/>
				<apply_if layer="-1" order="2"/>
				<apply_if additional="layer=-2" order="2"/>
			</switch>
			<case tag="military" value="danger_area" order="8"/>
			<case tag="railway" value="" order="4"/>
			<case tag="historic" value="ship"/>
			<case tag="barrier" value="city_wall"/>
			<case tag="seamark:type" value="fortified_structure"/>
			<case tag="seamark:type" value="inshore_traffic_zone"/>
			<case tag="seamark:type" value="military_area" order="8"/>
			<case tag="seamark:type" value="cable_area" order="8"/>
			<case tag="man_made" value="breakwater"/>
			<case tag="man_made" value="groyne"/>
			<case tag="man_made" value="bridge"/>
		</switch>
		<switch cycle="true" point="false" addPoint="true" objectType="3" order="5">
			<case tag="area:highway" value="primary"/>
			<case tag="area:highway" value="secondary"/>
			<case tag="area:highway" value="tertiary"/>
			<case tag="area:highway" value="pedestrian"/>
			<case tag="area:highway" value="service"/>
			<case tag="area:highway" value="road"/>
			<case tag="area:highway" value="unclassified"/>
			<case tag="area:highway" value="service"/>
			<case tag="highway" value="rest_area"/>
			<case tag="area:highway" value="residential"/>
			<case tag="area:highway" value="footway"/>
			<case tag="leisure" value="nature_reserve" order="9"/>
			<case tag="landuse" value="military" order="8"/>
			<case tag="military" value="danger_area" order="8"/>
			<case tag="waterway" value="dock"/>
			<case tag="waterway" value="wadi"/>
			<case tag="seamark:type" value="anchorage"/>
			<case tag="seamark:type" value="anchor_berth"/>
			<case tag="seamark:type" value="berth"/>
			<case tag="seamark:type" value="fairway"/>
			<case tag="seamark:type" value="fishing_facility"/>
			<case tag="seamark:type" value="production_area" order="8"/>
			<case tag="seamark:type" value="restricted_area" order="8"/>
			<case tag="seamark:type" value="obstruction" order="8"/>
			<case tag="seamark:type" value="harbour" ignorePolygonArea="true" ignorePolygonAsPointArea="true"/>
			<case tag="leisure" value="marina" ignorePolygonArea="true" ignorePolygonAsPointArea="true"/>
			<case tag="seamark:type" value="light_minor" ignorePolygonAsPointArea="true"/>
			<case tag="seamark:type" value="seamark" ignorePolygonAsPointArea="true"/>
			<case tag="seamark:type" value="hulk"/>
			<case tag="seamark:type" value="inshore_traffic_zone"/>
			<case tag="seamark:type" value="marine_farm"/>
			<case tag="seamark:type" value="military_area" order="8"/>
			<case tag="seamark:type" value="pipeline_area" order="8"/>
			<case tag="seamark:type" value="cable_area" order="8"/>
			<case tag="seamark:type" value="seabed_area" order="8"/>
			<case tag="seamark:seabed_area:surface" value=""/>
			<case tag="seamark:type" value="weed"/>
			<case tag="seamark:type" value="seagrass"/>
			<case tag="seamark:type" value="sand_waves"/>
			<case tag="seamark:type" value="spring"/>
			<case tag="natural" value="cliff"/>
			<case tag="natural" value="crater"/>
			<case tag="natural" value="hot_spring"/>
			<case tag="natural" value="geyser"/>
			<case tag="natural" value="wetland"/>
			<case tag="natural" value="bay"/>
			<case tag="man_made" value="pier" order="10"/>
			<case tag="man_made" value="bridge" order="10"/>
			<case tag="building" value="no" order="-1"/>
			<switch>
				<case tag="military" value="bunker"/>
				<case tag="military" value="barracks"/>
				<case tag="man_made" value="chimney"/>
				<case tag="building" value="" order="41"/>
			</switch>
			<case tag="waterway" value="dam" order="10"/>
			<case tag="waterway" value="weir" order="10"/>
			<case tag="landuse" value="residential" order="4"/>
			<switch order="5">
				<case tag="natural" value="water" order="3"/>
				<case tag="waterway" value="riverbank"/>
				<case tag="aeroway" value="runway"/>
				<case tag="aeroway" value="aerodrome"/>
				<case tag="aeroway" value="apron"/>
				<case tag="aeroway" value="terminal"/>
				<case tag="aeroway" value="helipad"/>
			</switch>
			<case tag="landuse" value="basin" additional="basin=detention" order="-1"/>
			<case tag="" value="" order="5"/>
		</switch>
	<!-- Line -->
		<switch area="false" objectType="2" order="80">
			<!-- default line -->
			<case layer="-1" tag="" value="" order="11"/>
			<case tag="" value="" order="12"/>
			<case tag="power" value="line" order="96"/>
			<case tag="power" value="minor_line" order="96"/>
			<case tag="railway" value="" order="86">
				<apply_if layer="-1" order="-1"/>
				<apply_if additional="layer=-2" order="-1"/>
				<apply_if layer="1" order="108"/>
				<apply_if additional="layer=2" order="138"/>
				<apply_if additional="layer=3" order="167"/>
				<apply_if additional="service=spur" order="-1"/>
			</case>
			<case tag="amenity" value="ferry_terminal"/>

			<case tag="natural" value="cliff"/>
			<case tag="natural" value="crater"/>
			<case tag="natural" value="strait"/>
			<case tag="natural" value="bay"/>
			<switch order="40">
				<case tag="seamark:type" value="lock_basin"/>
			</switch>
			<case tag="barrier" value="city_wall"/>
			<case tag="seamark:type" value="fortified_structure"/>
			<case tag="seamark:type" value="fairway" order="8"/>
			<case tag="seamark:type" value="fishing_facility"/>
			<case tag="seamark:type" value="gate"/>
			<case tag="seamark:type" value="inshore_traffic_zone"/>
			<case tag="seamark:type" value="pipeline_area"/>
			<case tag="seamark:type" value="waterfall"/>
			<case tag="seamark:type" value="recommended_track" order="81"/>
			<case tag="seamark:type" value="recommended_traffic_lane" order="81"/>
			<case tag="seamark:type" value="navigation_line" order="81"/>
			<case tag="seamark:type" value="separation_line"/>
			<case tag="seamark:type" value="separation_lane"/>
			<case tag="seamark:type" value="separation_boundary"/>
			<case tag="seamark:type" value="obstruction"/>
			<case tag="seamark:type" value="seabed_area"/>

			<case tag="waterway" value="dam"/>
			<case tag="waterway" value="weir" order="19"/>
			<case tag="waterway" value="lock_gate"/>
			<case tag="waterway" value="wadi" order="35"/>
			<case tag="waterway" value="waterfall" order="35"/>
			<case tag="whitewater" value="rapid" order="35"/>
			<case tag="waterway" value="" order="9">
				<apply_if layer="1" order="68"/>
			</case>
			<case tag="admin_level" value="" order="62"/>
			<case tag="administrative" value="" order="62"/>
			<case tag="boundary" value="" order="62"/>
			<!-- Highways: 35-57, bridges 70-88 -->
			<switch>
				<case tag="highway" value="motorway" order="84">
					<apply_if layer="1" order="107"/>
					<apply_if additional="layer=2" order="137"/>
					<apply_if additional="layer=3" order="165"/>
					<apply_if layer="-1" order="62"/>
					<apply_if additional="layer=-2" order="41"/>
				</case>
				<case tag="highway" value="motorway_link" order="71">
					<apply_if layer="1" order="94"/>
					<apply_if additional="layer=2" order="124"/>
					<apply_if additional="layer=3" order="152"/>
					<apply_if layer="-1" order="49"/>
					<apply_if additional="layer=-2" order="25"/>
				</case>
				<case tag="highway" value="trunk" order="83">
					<apply_if layer="1" order="106"/>
					<apply_if additional="layer=2" order="136"/>
					<apply_if additional="layer=3" order="164"/>
					<apply_if layer="-1" order="61"/>
					<apply_if additional="layer=-2" order="40"/>
				</case>
				<case tag="highway" value="trunk_link" order="70">
					<apply_if layer="1" order="93"/>
					<apply_if additional="layer=2" order="123"/>
					<apply_if additional="layer=3" order="151"/>
					<apply_if layer="-1" order="48"/>
					<apply_if additional="layer=-2" order="24"/>
				</case>
				<case tag="highway" value="primary" order="82">
					<apply_if layer="1" order="105"/>
					<apply_if additional="layer=2" order="135"/>
					<apply_if additional="layer=3" order="163"/>
					<apply_if layer="-1" order="60"/>
					<apply_if additional="layer=-2" order="39"/>
				</case>
				<case tag="highway" value="primary_link" order="69">
					<apply_if layer="1" order="92"/>
					<apply_if additional="layer=2" order="122"/>
					<apply_if additional="layer=3" order="150"/>
					<apply_if layer="-1" order="47"/>
					<apply_if additional="layer=-2" order="23"/>
				</case>
				<case tag="highway" value="secondary" order="81">
					<apply_if layer="1" order="104"/>
					<apply_if additional="layer=2" order="134"/>
					<apply_if additional="layer=3" order="162"/>
					<apply_if layer="-1" order="59"/>
					<apply_if additional="layer=-2" order="38"/>
				</case>
				<case tag="highway" value="secondary_link" order="68">
					<apply_if layer="1" order="91"/>
					<apply_if additional="layer=2" order="121"/>
					<apply_if additional="layer=3" order="149"/>
					<apply_if layer="-1" order="46"/>
					<apply_if additional="layer=-2" order="22"/>
				</case>
				<case tag="highway" value="tertiary" order="80">
					<apply_if layer="1" order="103"/>
					<apply_if additional="layer=2" order="133"/>
					<apply_if additional="layer=3" order="161"/>
					<apply_if layer="-1" order="58"/>
					<apply_if additional="layer=-2" order="37"/>
				</case>
				<case tag="highway" value="tertiary_link" order="67">
					<apply_if layer="1" order="90"/>
					<apply_if additional="layer=2" order="120"/>
					<apply_if additional="layer=3" order="148"/>
					<apply_if layer="-1" order="45"/>
					<apply_if additional="layer=-2" order="21"/>
				</case>
				<case tag="highway" value="road" order="79">
					<apply_if layer="1" order="102"/>
					<apply_if additional="layer=2" order="132"/>
					<apply_if additional="layer=3" order="160"/>
					<apply_if layer="-1" order="57"/>
					<apply_if additional="layer=-2" order="36"/>
				</case>
				<case tag="highway" value="unclassified" order="79">
					<apply_if layer="1" order="102"/>
					<apply_if additional="layer=2" order="132"/>
					<apply_if additional="layer=3" order="160"/>
					<apply_if layer="-1" order="57"/>
					<apply_if additional="layer=-2" order="36"/>
				</case>
				<case tag="highway" value="residential" order="78">
				<apply_if layer="1" order="101"/>
					<apply_if additional="layer=2" order="131"/>
					<apply_if additional="layer=3" order="159"/>
					<apply_if layer="-1" order="56"/>
					<apply_if additional="layer=-2" order="35"/>
				</case>
				<case tag="highway" value="service" order="77">
					<apply_if layer="1" order="100"/>
					<apply_if additional="layer=2" order="130"/>
					<apply_if additional="layer=3" order="158"/>
					<apply_if layer="-1" order="55"/>
					<apply_if additional="layer=-2" order="34"/>
				</case>
				<case tag="highway" value="busway" order="77">
					<apply_if layer="1" order="100"/>
					<apply_if additional="layer=2" order="130"/>
					<apply_if additional="layer=3" order="158"/>
					<apply_if layer="-1" order="55"/>
					<apply_if additional="layer=-2" order="34"/>
				</case>
				<case tag="highway" value="living_street" order="77">
					<apply_if layer="1" order="100"/>
					<apply_if additional="layer=2" order="130"/>
					<apply_if additional="layer=3" order="158"/>
					<apply_if layer="-1" order="55"/>
					<apply_if additional="layer=-2" order="34"/>
				</case>
				<case tag="highway" value="pedestrian" order="76">
					<apply_if layer="1" order="99"/>
					<apply_if additional="layer=2" order="129"/>
					<apply_if additional="layer=3" order="157"/>
					<apply_if layer="-1" order="54"/>
					<apply_if additional="layer=-2" order="33"/>
				</case>
				<apply_if additional="construction=yes" order="-1"/>
			</switch>
			<case tag="highway" value="track" order="64">
				<apply_if layer="1" order="89"/>
				<apply_if additional="layer=2" order="119"/>
				<apply_if additional="layer=3" order="147"/>
				<apply_if layer="-1" order="20"/>
				<apply_if additional="layer=-2" order="19"/>
			</case>
			<switch>
				<switch>
					<case tag="highway" value="path" order="37">
						<apply_if layer="1" order="110"/>
						<apply_if additional="layer=2" order="140"/>
						<apply_if additional="layer=3" order="166"/>
						<case maxzoom="16" order="-1"/>
					</case>
					<case tag="highway" value="footway" order="64">
						<apply_if layer="1" order="110"/>
						<apply_if additional="layer=2" order="140"/>
						<apply_if additional="layer=3" order="166"/>
						<case maxzoom="16" order="-1"/>
					</case>
					<case tag="highway" value="cycleway" order="65">
						<apply_if layer="1" order="109"/>
						<apply_if additional="layer=2" order="139"/>
						<apply_if additional="layer=3" order="146"/>
						<case maxzoom="16" order="-1"/>
					</case>
					<apply_if maxzoom="15" layer="1" order="58"/>
				</switch>
				<case tag="highway" value="steps" order="65">
					<apply_if layer="1" order="111"/>
					<apply_if additional="layer=2" order="140"/>
					<apply_if additional="layer=3" order="166"/>
					<apply_if layer="1" maxzoom="15" order="58"/>
					<apply_if additional="layer=2" order="140"/>
					<apply_if additional="layer=3" order="166"/>
					<apply_if maxzoom="16" order="-1"/>
				</case>
				<apply_if layer="-1" order="-1"/>
				<apply_if additional="layer=-2" order="-1"/>
			</switch>
			<case tag="route" value="ferry" order="63"/>
			<case tag="aeroway" value="" order="62"/>
			<case tag="aeroway" value="runway"/>
			<case tag="contour" value="depth"/>
			<case tag="contour" value="elevation" order="15">
				<apply_if contourDensity="medium_w" additional="contourtype=5m" order="-1"/>
				<apply_if contourDensity="medium_w" additional="contourtype=10m" order="-1"/>
				<apply_if contourDensity="medium_w" additional="contourtype=50m" order="-1"/>
				<apply_if contourDensity="low" additional="contourtype=5m" order="-1"/>
				<apply_if contourDensity="low" additional="contourtype=10m" order="-1"/>
				<apply_if contourDensity="low" additional="contourtype=20m" order="-1"/>
				<apply_if contourDensity="low" additional="contourtype=20f" order="-1"/>
				<apply_if contourDensity="low" additional="contourtype=40f" order="-1"/>
			</case>

			<case tag="barrier" value="" order="20"/>
			<case tag="man_made" value="embankment" order="11"/>
			<case tag="embankment" value="yes" order="11"/>
			<case tag="osmand" value="file_trackline"/>
			<case tag="osmand" value="file_routeline"/>
			<case tag="lightsector" value="arc"/>
			<case tag="lightsector" value="limit"/>
			<case tag="lightsector" value="orientation"/>
		 </switch>
		 <apply_if additional="proposed=yes" order="-1"/>
		</switch>
	</order>


	<text>
		<!-- depthcontourslines -->
		<!-- contour line labels -->
		<case minzoom="6" depthContours="true" tag="contour" value="depth" textColor="$depthTextColor" textOnPath="true" textSize="14" textMinDistance="30">
			<apply_if spotSize="10" textSize="10"/>
			<apply_if spotSize="12" textSize="12"/>
			<apply_if spotSize="14" textSize="14"/>
			<apply_if spotSize="16" textSize="16"/>
		</case>

		<!-- spot soundings -->
		<case minzoom="6" depthContours="true" hideSpots="false" tag="point" value="depth" textColor="$depthTextColor" textSize="14" textOrder="128" intersectionMargin="30">
			<apply_if spotSize="10" textSize="10"/>
			<apply_if spotSize="12" textSize="12"/>
			<apply_if spotSize="14" textSize="14"/>
			<apply_if spotSize="16" textSize="16"/>
			<apply_if spotDistance="0" intersectionMargin="0"/>
			<apply_if spotDistance="5" intersectionMargin="5"/>
			<apply_if spotDistance="10" intersectionMargin="10"/>
			<apply_if spotDistance="15" intersectionMargin="15"/>
			<apply_if spotDistance="30" intersectionMargin="30"/>
			<apply_if spotDistance="60" intersectionMargin="60"/>
			<apply_if spotDistance="120" intersectionMargin="120"/>
		</case>
		<!-- depthcontourslines -->
		<!--    <case minzoom="10" tag="seamark:type" value="sea_area" additional="seamark:sea_area:category=shoal" textColor="$depthTextColor" textOnPath="true" textSize="12" textMinDistance="100"/>-->
		<case minzoom="11" tag="osmand" value="file_waypoint"> <!-- for new OpenGL engine -->
			<case additional="file_has_waypoints=true" textWrapWidth="25" textHaloRadius=":1" textColor="#000000" textHaloColor="#ffc8c8" textOrder="1">
				<case maxzoom="12" textSize="11"/>
				<case minzoom="14" textSize="12"/>
				<apply_if nightMode="true" textColor="#dddddd" textHaloColor="#5f0000"/>
			</case>
		</case>
		<switch>
			<!-- Location names -->
			<switch minzoom="3" nameTag="">
				<case tag="natural" value="coastline"/>
				<case tag="natural" value="land"/>
				<apply textSize="14" textColor="#883287" textWrapWidth="35" textHaloRadius="$textHaloRadiusDay" textHaloColor="$defaultTextHaloColorDay"/>
				<apply_if nightMode="true" textColor="#ffb9fe" textHaloColor="#77333333"/>
			</switch>
			<!-- continent not really useful here: filter minzoom="2" maxzoom="2" textSize="14" textColor="#9d6c9d" textWrapWidth="20" tag="place" value="continent"/ -->
			<case minzoom="1" maxzoom="2" tag="place" value="continent" nameTag="" textSize="13" textColor="$placeCountryTextColor" textHaloColor="$placeCountryTextHaloColor" textHaloRadius="3" textBold="true" textWrapWidth="15" textOrder="1"/>
			<case minzoom="3" tag="place" value="country" nameTag="" textColor="$placeCountryTextColor" textHaloColor="$placeCountryTextHaloColor" textHaloRadius="3" textWrapWidth="15" textOrder="5">
				<case maxzoom="3" textSize="12"/>
				<case maxzoom="4" textSize="14" textBold="true"/>
				<case maxzoom="5" textSize="16" textBold="true"/>
				<case minzoom="6" textSize="14" textBold="true" textOrder="33"/>
				<apply_if maxzoom="6">
					<case additional="population_rounded=1500000000" textOrder="6"/>
					<case additional="population_rounded=400000000" textOrder="7"/>
					<case additional="population_rounded=200000000" textOrder="8"/>
					<case additional="population_rounded=100000000" textOrder="9"/>
					<case additional="population_rounded=50000000" textOrder="10"/>
					<case additional="population_rounded=25000000" textOrder="11"/>
					<case additional="population_rounded=20000000" textOrder="12"/>
					<case additional="population_rounded=15000000" textOrder="13"/>
					<case additional="population_rounded=12000000" textOrder="14"/>
					<case additional="population_rounded=9000000" textOrder="15"/>
					<case additional="population_rounded=7000000" textOrder="16"/>
					<case additional="population_rounded=5000000" textOrder="17"/>
					<case additional="population_rounded=3000000" textOrder="18"/>
					<case additional="population_rounded=2000000" textOrder="19"/>
					<case additional="population_rounded=1000000" textOrder="20"/>
					<case additional="population_rounded=700000" textOrder="21"/>
					<case additional="population_rounded=400000" textOrder="22"/>
					<case additional="population_rounded=200000" textOrder="32"/>
					<case additional="population_rounded=100000" textOrder="33"/>
					<case additional="population_rounded=70000" textOrder="34"/>
					<case additional="population_rounded=40000" textOrder="35"/>
					<case additional="population_rounded=20000" textOrder="36"/>
					<case additional="population_rounded=10000" textOrder="37"/>
					<case additional="population_rounded=5000" textOrder="38"/>
					<case additional="population_rounded=2500" textOrder="39"/>
					<case additional="population_rounded=1000" textOrder="40"/>
					<case additional="population_rounded=500" textOrder="41"/>
					<case additional="population_rounded=200" textOrder="42"/>
					<case additional="population_rounded=100" textOrder="43"/>
				</apply_if>
			</case>

			<switch minzoom="5" textSize="13" textColor="#9d6c9d" textWrapWidth="20" textHaloRadius="$textHaloRadiusDay" textHaloColor="#88ffffff">
				<switch engine_v1="true">
					<case maxzoom="10" tag="place" value="state">
						<case maxzoom="5" nameTag="" textOrder="24"/>
						<case maxzoom="5" nameTag="ref" textOrder="24"/>
						<case minzoom="6" nameTag="" textOrder="33"/>
					</case>
					<case tag="place" value="region">
						<case maxzoom="5" nameTag="ref" textOrder="25"/>
						<case minzoom="6" nameTag="" textOrder="33"/>
					</case>
					<case tag="place" value="province">
						<case maxzoom="5" nameTag="ref" textOrder="25"/>
						<case minzoom="6" nameTag="" textOrder="33"/>
					</case>
				</switch>
				<switch maxzoom="10" tag="place" value="state">
					<case maxzoom="5" nameTag="" textOrder="24"/>
					<case maxzoom="5" nameTag="ref" textOrder="24"/>
					<case minzoom="6" nameTag="" textOrder="33"/>
				</switch>
				<switch tag="place" value="region">
					<case maxzoom="5" nameTag="ref" textOrder="25"/>
					<case minzoom="6" nameTag="" textOrder="33"/>
				</switch>
				<switch tag="place" value="province">
					<case maxzoom="5" nameTag="ref" textOrder="25"/>
					<case minzoom="6" nameTag="" textOrder="33"/>
				</switch>
				<apply textItalic="true" textWrapWidth="15"/>
				<apply_if textColor="#635700" textHaloRadius="$textHaloRadiusDay" textHaloColor="$defaultTextHaloColorDay">
					<apply_if nightMode="true" textColor="#fffccc" textHaloColor="#77777545"/>
				</apply_if>
			</switch>


			<switch minzoom="3" textColor="$placeCityVillageTextColorDay" textWrapWidth="20" textHaloRadius="$placeTextHaloRadiusDay" textHaloColor="$placeCityVillageTextHaloColorDay" textBold="true" textDy="-4">
				<case minzoom="5" tag="place" value="city" nameTag="" intersectionMargin="25" textOrder="32" textPlacement="bottom|top">
					<case minzoom="6" maxzoom="7" textSize="17"/>
					<case minzoom="8" textSize="20"/>
					<apply>
						<switch>
							<case additional="population_rounded=1500000000" textOrder="6"/>
							<case additional="population_rounded=400000000" textOrder="7"/>
							<case additional="population_rounded=200000000" textOrder="8"/>
							<case additional="population_rounded=100000000" textOrder="9"/>
							<case additional="population_rounded=50000000" textOrder="10"/>
							<case additional="population_rounded=25000000" textOrder="11"/>
							<case additional="population_rounded=20000000" textOrder="12"/>
							<case additional="population_rounded=15000000" textOrder="13"/>
							<case additional="population_rounded=12000000" textOrder="14"/>
							<case additional="population_rounded=9000000" textOrder="15"/>
							<case additional="population_rounded=7000000" textOrder="16"/>
							<case additional="population_rounded=5000000" textOrder="17"/>
							<case additional="population_rounded=3000000" textOrder="18"/>
							<apply_if maxzoom="5" textSize="13"/>
						</switch>
						<case additional="population_rounded=2000000" textOrder="19"/>
						<case additional="population_rounded=1000000" textOrder="20"/>
						<case additional="population_rounded=700000" textOrder="21"/>
						<case additional="population_rounded=400000" textOrder="22"/>
						<case additional="population_rounded=200000" textOrder="32"/>
						<case additional="population_rounded=100000" textOrder="33"/>
						<case additional="population_rounded=70000" textOrder="34"/>
						<case additional="population_rounded=40000" textOrder="35"/>
						<case additional="population_rounded=20000" textOrder="36"/>
						<case additional="population_rounded=10000" textOrder="37"/>
						<case additional="population_rounded=5000" textOrder="38"/>
						<case additional="population_rounded=2500" textOrder="39"/>
						<case additional="population_rounded=1000" textOrder="40"/>
						<case additional="population_rounded=500" textOrder="41"/>
						<case additional="population_rounded=200" textOrder="42"/>
						<case additional="population_rounded=100" textOrder="43"/>
					</apply>
					<apply_if additional="capital=yes" textOrder="15">
						<switch>
							<case maxzoom="5" textSize="13" textOrder="25" textDy="0"/>
							<case maxzoom="7" textSize="20"/>
							<case minzoom="8" textSize="22"/>
							<apply>
								<case additional="population_rounded=20000000" textOrder="13"/>
								<case additional="population_rounded=15000000" textOrder="13"/>
								<case additional="population_rounded=12000000" textOrder="14"/>
								<case additional="population_rounded=9000000" textOrder="14"/>
								<case additional="population_rounded=7000000" textOrder="15"/>
								<case additional="population_rounded=5000000" textOrder="15"/>
								<case additional="population_rounded=3000000" textOrder="16"/>
								<case additional="population_rounded=2000000" textOrder="16"/>
								<case additional="population_rounded=1000000" textOrder="17"/>
								<case additional="population_rounded=700000" textOrder="18"/>
								<case additional="population_rounded=400000" textOrder="19"/>
								<case additional="population_rounded=200000" textOrder="20"/>
								<case additional="population_rounded=100000" textOrder="21"/>
								<case additional="population_rounded=70000" textOrder="21"/>
								<case additional="population_rounded=40000" textOrder="21"/>
								<case additional="population_rounded=20000" textOrder="21"/>
							</apply>
						</switch>
					</apply_if>
				</case>

				<switch>
					<case minzoom="8" tag="place" value="town" textSize="16" textOrder="36" nameTag="" intersectionMargin="15" textPlacement="bottom|top"/>
					<case minzoom="11" tag="place" value="village" textSize="14" textOrder="40" nameTag="" intersectionMargin="15">
						<apply_if minzoom="16" textSize="16"/>
						<apply_if minzoom="17" textSize="17"/>
					</case>
					<apply>
						<case additional="population_rounded=1500000000" textOrder="6"/>
						<case additional="population_rounded=400000000" textOrder="7"/>
						<case additional="population_rounded=200000000" textOrder="8"/>
						<case additional="population_rounded=100000000" textOrder="9"/>
						<case additional="population_rounded=50000000" textOrder="10"/>
						<case additional="population_rounded=25000000" textOrder="11"/>
						<case additional="population_rounded=20000000" textOrder="12"/>
						<case additional="population_rounded=15000000" textOrder="13"/>
						<case additional="population_rounded=12000000" textOrder="14"/>
						<case additional="population_rounded=9000000" textOrder="15"/>
						<case additional="population_rounded=7000000" textOrder="16"/>
						<case additional="population_rounded=5000000" textOrder="17"/>
						<case additional="population_rounded=3000000" textOrder="18"/>
						<case additional="population_rounded=2000000" textOrder="19"/>
						<case additional="population_rounded=1000000" textOrder="20"/>
						<case additional="population_rounded=700000" textOrder="21"/>
						<case additional="population_rounded=400000" textOrder="22"/>
						<case additional="population_rounded=200000" textOrder="32"/>
						<case additional="population_rounded=100000" textOrder="33"/>
						<case additional="population_rounded=70000" textOrder="34"/>
						<case additional="population_rounded=40000" textOrder="35"/>
						<case additional="population_rounded=20000" textOrder="36"/>
						<case additional="population_rounded=10000" textOrder="37"/>
						<case additional="population_rounded=5000" textOrder="38"/>
						<case additional="population_rounded=2500" textOrder="39"/>
						<case additional="population_rounded=1000" textOrder="40"/>
						<case additional="population_rounded=500" textOrder="41"/>
						<case additional="population_rounded=200" textOrder="42"/>
						<case additional="population_rounded=100" textOrder="43"/>
					</apply>
				</switch>
				<apply_if nightMode="true" textColor="#ffffff" textHaloRadius="$textHaloRadiusNight" textHaloColor="#77444444"/>
				<apply_if engine_v1="false" textDy="-3"/>
			</switch>

			<switch textColor="$placeSuburbLocalityTextColorDay" textWrapWidth="20" textHaloRadius="$placeTextHaloRadiusDay" textHaloColor="$placeTextHaloColorDay" intersectionMargin="15">
				<case minzoom="12" maxzoom="17" tag="place" value="suburb" nameTag="" textSize="15" textItalic="true" textOrder="37" intersectionMargin="25">
					<apply_if minzoom="16" textSize="17"/>
				</case>
				<switch nameTag="">
					<case minzoom="13" tag="place" value="neighbourhood" textOrder="39"/>
					<case minzoom="12" tag="place" value="borough" textItalic="true" textOrder="38"/>
					<case minzoom="13" tag="place" value="quarter" textItalic="true" textOrder="137"/>
					<case minzoom="14" tag="place" value="city_block" textItalic="true" textOrder="136"/>
					<case minzoom="12" tag="place" value="hamlet" textOrder="42"/>
					<case minzoom="13" tag="place" value="farm" textOrder="109"/>
					<case minzoom="13" tag="place" value="allotments" textOrder="110"/>
					<case minzoom="13" tag="place" value="isolated_dwelling" textOrder="111"/>
					<case minzoom="13" tag="place" value="locality" textOrder="112"/>
					<apply textSize="13"/>
					<apply_if minzoom="16" textSize="15"/>
					<apply_if minzoom="17" textSize="16"/>
				</switch>
				<apply_if nightMode="true" textColor="$defaultTextColorNight" textHaloRadius="$textHaloRadiusNight" textHaloColor="#77777777"/>
				<apply_if engine_v1="false" textDy="-5"/>
				<apply>
					<case additional="population_rounded=1500000000" textOrder="6"/>
					<case additional="population_rounded=400000000" textOrder="7"/>
					<case additional="population_rounded=200000000" textOrder="8"/>
					<case additional="population_rounded=100000000" textOrder="9"/>
					<case additional="population_rounded=50000000" textOrder="10"/>
					<case additional="population_rounded=25000000" textOrder="11"/>
					<case additional="population_rounded=20000000" textOrder="12"/>
					<case additional="population_rounded=15000000" textOrder="13"/>
					<case additional="population_rounded=12000000" textOrder="14"/>
					<case additional="population_rounded=9000000" textOrder="15"/>
					<case additional="population_rounded=7000000" textOrder="16"/>
					<case additional="population_rounded=5000000" textOrder="17"/>
					<case additional="population_rounded=3000000" textOrder="18"/>
					<case additional="population_rounded=2000000" textOrder="19"/>
					<case additional="population_rounded=1000000" textOrder="20"/>
					<case additional="population_rounded=700000" textOrder="21"/>
					<case additional="population_rounded=400000" textOrder="22"/>
					<case additional="population_rounded=200000" textOrder="32"/>
					<case additional="population_rounded=100000" textOrder="33"/>
					<case additional="population_rounded=70000" textOrder="34"/>
					<case additional="population_rounded=40000" textOrder="35"/>
					<case additional="population_rounded=20000" textOrder="36"/>
					<case additional="population_rounded=10000" textOrder="37"/>
					<case additional="population_rounded=5000" textOrder="38"/>
					<case additional="population_rounded=2500" textOrder="39"/>
					<case additional="population_rounded=1000" textOrder="40"/>
					<case additional="population_rounded=500" textOrder="41"/>
					<case additional="population_rounded=200" textOrder="42"/>
					<case additional="population_rounded=100" textOrder="43"/>
				</apply>
			</switch>
			<switch minzoom="11" nameTag="">
				<case tag="place" value="island">
					<apply_if maxzoom="12" textOrder="24"/>
					<apply_if minzoom="13" textOrder="37"/>
				</case>
				<case minzoom="13" tag="place" value="islet"/>
				<apply textWrapWidth="20" textHaloRadius="$placeTextHaloRadiusDay" textHaloColor="$placeCityVillageTextHaloColorDay" intersectionMargin="15" textItalic="true" textSize="14"/>
				<apply_if minzoom="16" textSize="16"/>
				<apply_if nightMode="true" textColor="#ffffff" textHaloColor="#77777777"/>
			</switch>

			<switch textHaloRadius="$buildingTextHaloRadiusDay">
				<switch minzoom="17" nameTag="">
					<case tag="military" value="barracks"/>
					<case tag="military" value="bunker"/>
					<case tag="man_made" value="storage_tank"/>
					<case tag="man_made" value="silo"/>
					<case tag="man_made" value="chimney"/>
					<case tag="man_made" value="gasometer"/>
					<case tag="aeroway" value="terminal"/>
					<case tag="building" value="" nameTag2="addr:housenumber"/>
					<apply_if maxzoom="17" textSize="13" textMinDistance="40"/>
					<apply_if minzoom="18" textSize="15"/>
					<apply textWrapWidth="20" textOrder="66"/>
					<apply textColor="#404040" textHaloColor="$buildingTextHaloColorDay">
						<apply_if nightMode="true" textColor="$defaultTextColorNight" textHaloRadius="$textHaloRadiusNight" textHaloColor="#77666666"/>
					</apply>
				</switch>
				<switch minzoom="18">
					<case tag="addr:housenumber" value="" nameTag="addr:housenumber"/>
					<case tag="addr:housenumber" value="" nameTag=""/>
					<apply textColor="#404040" textWrapWidth="25" textOrder="67" textSize="15" intersectionSizeFactor="1.4"/>
					<apply textColor="#404040" textHaloColor="$buildingTextHaloColorDay">
						<apply_if nightMode="true" textColor="$defaultTextColorNight" textHaloRadius="$textHaloRadiusNight" textHaloColor="#77666666"/>
					</apply>
				</switch>
			</switch>
			<case minzoom="16" tag="man_made" value="pier" nameTag="" textSize="11" textColor="#1f62ae" textHaloRadius="$textHaloRadiusDay" textHaloColor="#ccffffff" textOnPath="true" textWrapWidth="30">
				<apply_if nightMode="true" textColor="#a3c8ff" textHaloRadius="$textHaloRadiusNight" textHaloColor="#66002357"/>
			</case>

			<!-- Highway text -->
			<switch textHaloRadius="$textHaloRadiusDay" textOnPath="true" nameTag="">
				<case tag="highway" value="motorway" textHaloColor="$motorwayRoadColor" textOrder="100"/>
				<case tag="highway" value="motorway_link" textHaloColor="$motorwayRoadColor" textOrder="101"/>
				<case tag="highway" value="trunk" textHaloColor="$trunkRoadColor" textOrder="103"/>
				<case tag="highway" value="trunk_link" textHaloColor="$trunkRoadColor" textOrder="104"/>
				<case tag="highway" value="primary" textHaloColor="$primaryRoadColor" textOrder="106"/>
				<case minzoom="16" tag="area:highway" value="primary" textHaloColor="$primaryRoadColor" textWrapWidth="25" textOrder="107"/>
				<case tag="highway" value="primary_link" textHaloColor="$primaryRoadColor" textOrder="108"/>
				<case tag="highway" value="secondary" textHaloColor="$secondaryRoadColor" textOrder="110"/>
				<case minzoom="16" tag="area:highway" value="secondary" textHaloColor="$secondaryRoadColor" textWrapWidth="25" textOrder="111"/>
				<case tag="highway" value="secondary_link" textHaloColor="$secondaryRoadColor" textOrder="112"/>
				<apply_if minzoom="13">
					<case maxzoom="13" textSize="12"/>
					<case maxzoom="14" textSize="13"/>
					<case maxzoom="15" textSize="14"/>
					<case maxzoom="16" textSize="15"/>
					<case maxzoom="17" textSize="17"/>
					<case minzoom="18" textSize="19"/>
				</apply_if>
				<apply_if nightMode="true" textColor="$defaultTextColorNight" textBold="true"/>
			</switch>

			<switch textHaloRadius="$textHaloRadiusDay" textOnPath="true" textHaloColor="$tertiaryRoadColor" nameTag="">
				<case tag="highway" value="tertiary" textOrder="144"/>
				<case minzoom="16" tag="area:highway" value="tertiary" textWrapWidth="25" textOrder="145"/>
				<case tag="highway" value="tertiary_link" textOrder="146"/>
				<apply_if minzoom="14">
					<case maxzoom="14" textSize="12"/>
					<case maxzoom="15" textSize="13"/>
					<case maxzoom="16" textSize="14"/>
					<case maxzoom="17" textSize="16"/>
					<case minzoom="18" textSize="18"/>
				</apply_if>
				<apply_if nightMode="true" textColor="$defaultTextColorNight" textBold="true"/>
			</switch>

			<switch nameTag="">
				<switch>
					<switch textHaloRadius="$textHaloRadiusDay" textOrder="175">
						<case tag="highway" value="road"/>
						<case minzoom="16" tag="area:highway" value="road" textWrapWidth="25"/>
						<case tag="highway" value="unclassified"/>
						<case minzoom="16" tag="area:highway" value="unclassified" textWrapWidth="25"/>
						<case tag="highway" value="residential"/>
						<case minzoom="16" tag="area:highway" value="residential" textWrapWidth="25"/>
						<case tag="man_made" value="bridge"/>
						<apply_if nightMode="true" textBold="true"/>
					</switch>
					<switch textHaloRadius="$textHaloRadiusDay">
						<case tag="highway" value="service" textOrder="178"/>
						<case tag="highway" value="busway" textOrder="128"/>
						<case minzoom="17" tag="area:highway" value="service" textOrder="179" textWrapWidth="25"/>
						<case tag="highway" value="living_street" textOrder="180"/>
						<apply_if nightMode="true"/>
					</switch>
					<apply textColor="#222222" textHaloColor="$residentialRoadColor">
						<apply_if nightMode="true" textColor="$highwayResidentialServiceTextColorNight" textHaloColor="#464234" textHaloRadius="$textHaloRadiusNight"/>
					</apply>
				</switch>
				<switch textHaloRadius="$textHaloRadiusDay" textHaloColor="$pedestrianRoadModeColorDay">
					<case tag="highway" value="pedestrian" textOrder="176"/>
					<case minzoom="16" tag="area:highway" value="pedestrian" textWrapWidth="25" textOrder="113"/>
					<apply textColor="#000000">
						<apply_if nightMode="true" textColor="$defaultTextColorNight" textHaloRadius="$textHaloRadiusNight" textHaloColor="$pedestrianRoadModeColorNight"/>
					</apply>
				</switch>
				<apply minzoom="14" textOnPath="true">
					<case maxzoom="14" textSize="12"/>
					<case maxzoom="15" textSize="13"/>
					<case maxzoom="16" textSize="14"/>
					<case maxzoom="17" textSize="16"/>
					<case minzoom="18" textSize="18"/>
				</apply>
			</switch>

			<switch minzoom="14" nameTag="">
				<switch nameTag="">
					<case tag="highway" value="track" textOrder="238"/>
					<case tag="highway" value="steps" textOrder="244"/>
				</switch>
				<case tag="highway" value="path" textOrder="243"/>
				<case tag="highway" value="footway" textOrder="240"/>
				<case tag="highway" value="cycleway" textOrder="244"/>
				<apply textColor="#000000" textHaloRadius="$highwayTrackTextHaloRadiusDay" textHaloColor="#fddb8f" textOnPath="true"/>
				<apply_if minzoom="15">
					<case maxzoom="15" textSize="13"/>
					<case maxzoom="16" textSize="14"/>
					<case maxzoom="17" textSize="16"/>
					<case minzoom="18" textSize="18"/>
					<apply_if nightMode="true" textColor="$defaultTextColorNight" textHaloRadius="$textHaloRadiusNight" textHaloColor="#77777777"/>
				</apply_if>
			</switch>
			<switch minzoom="15" textOrder="65" nameTag="">
				<case minzoom="16" tag="area:highway" value="footway" textOrder="241" textWrapWidth="25"/>
				<apply>
					<case maxzoom="15" textSize="13"/>
					<case maxzoom="16" textSize="14"/>
					<case maxzoom="17" textSize="16"/>
					<case minzoom="18" textSize="18"/>
				</apply>
				<apply textColor="#000000" textHaloRadius="$highwayTrackTextHaloRadiusDay" textHaloColor="$pedestrianRoadModeColorDay" textOnPath="true"/>
				<apply_if nightMode="true" textColor="$defaultTextColorNight" textHaloRadius="$textHaloRadiusNight" textHaloColor="$pedestrianRoadModeColorNight"/>
			</switch>

			<switch nameTag="" textSize="12" textColor="$landuseManmadeTextColorDay" textHaloRadius="$landuseManmadeTextHaloRadiusDay" textHaloColor="$landuseManmadeTextHaloColorDay" textWrapWidth="20" textOrder="250">
				<switch>
					<case minzoom="15" tag="landuse" value="industrial"/>
					<case minzoom="15" tag="landuse" value="garages"/>
					<case minzoom="13" tag="landuse" value="railway"/>
					<case minzoom="13" tag="landuse" value="residential"/>
					<case minzoom="13" tag="landuse" value="quarry"/>
				</switch>
				<case minzoom="17" textSize="12" tag="man_made" value="windmill"/>
				<!-- <case minzoom="17" tag="man_made" value="tower"/> nameTag applied for seamark in INT-1 P Section Lights -->
				<!-- <case minzoom="17" tag="man_made" value="mast"/> nameTag applied for seamark in INT-1 P Section Lights -->
				<case minzoom="17" tag="man_made" value="monitoring_station"/>
				<case minzoom="16" tag="man_made" value="petroleum_well"/>
				<case minzoom="18" tag="man_made" value="crane"/>
				<case minzoom="15" tag="man_made" value="observatory"/>
				<case minzoom="17" tag="man_made" value="survey_point"/>
				<case minzoom="17" tag="seamark:type" value="control_point"/>
				<case minzoom="17" tag="man_made" value="water_tower"/>
				<case minzoom="15" tag="power" value="generator">
					<apply_if additional="generator:source=wind" nameTag2="height"/>
				</case>
				<apply_if nightMode="true" textColor="$defaultTextColorNight" textHaloColor="#77464234"/>
			</switch>
			<switch minzoom="16" nameTag="">
				<case tag="whitewater" value="put_in" textDy="-4"/>
				<case tag="whitewater" value="egress" textDy="-4"/>
				<case tag="whitewater" value="put_in;egress" textDy="-4"/>
				<case tag="whitewater" value="rapid" nameTag="whitewater:rapid_name" textOnPath="true"/>
				<case tag="whitewater" value="rapid" nameTag="" nameTag2="whitewater:rapid_name" textOnPath="true"/>
				<case minzoom="15" tag="whitewater" value="portage_way" textBold="true" textOnPath="true" textDy="0" textHaloColor="$defaultColor"/>
				<apply textSize="12" textColor="#0400ab" textHaloColor="$defaultColor" textHaloRadius="1"/>
				<apply_if nightMode="true" textColor="$defaultTextColorNight"/>
				<apply_if whiteWaterSports="true" textOrder="10"/>
			</switch>
			<case whiteWaterSports="true" minzoom="16" textSize="12" tag="whitewater" value="hazard" textOrder="12"/>

			<switch nameTag="">
				<case minzoom="15" tag="landuse" value="military"/>
				<case minzoom="15" tag="seamark:type" value="military_area"/>
				<apply textSize="12" textColor="#990d2a" textHaloRadius="$textHaloRadiusDay" textHaloColor="#ffd9e6" textWrapWidth="20" textOrder="60"/>
				<apply_if nightMode="true" textColor="#ffd3dc" textHaloRadius="$textHaloRadiusNight" textHaloColor="#77724456"/>
			</switch>
			<switch nameTag="" textHaloRadius="$textHaloRadiusDay" textSize="13" textColor="#ff0255" textBold="true" textWrapWidth="20">
				<case minzoom="13" tag="military" value="danger_area"/>
				<apply_if nightMode="true" textColor="#f6dada" textHaloRadius="$textHaloRadiusNight" textHaloColor="#88a20035"/>
			</switch>
			<switch textSize="12" textColor="$naturalTextColor" textWrapWidth="20" textHaloRadius="$textHaloRadiusDay" textHaloColor="#ccfddb8f" nameTag="">
				<switch textItalic="true">
					<case minzoom="16" tag="natural" value="wood" textOrder="60"/>
					<case minzoom="17" tag="natural" value="wetland" textOrder="70"/>
					<case minzoom="17" tag="natural" value="shoal" textOrder="70"/>
					<case minzoom="16" tag="landuse" value="forest" textOrder="60"/>
					<case minzoom="12" tag="leisure" value="nature_reserve" textOrder="60"/>
					<case minzoom="12" tag="boundary" value="national_park" textOrder="61" textOnPath="true"/>
					<case minzoom="9" tag="natural" value="reef" nameTag2="depth"/>
					<case minzoom="14" textSize="12" tag="natural" value="ridge" textOnPath="true" textDy="0"/>
				</switch>
				<apply_if nightMode="true" textColor="$naturalTextColor" textHaloRadius="$textHaloRadiusNight" textHaloColor="#88464234"/>
			</switch>

			<switch textColor="#654321" textWrapWidth="25" textHaloColor="#aafddb8f" textHaloRadius="$textHaloRadiusDay" textItalic="true">
				<switch>
					<switch minzoom="10" tag="natural" additional="osmand_prominent_peak=yes" nameTag="">
						<case value="peak"/>
						<case value="volcano" textHaloColor="#99ffd6c0"/>
						<apply textSize="11" intersectionMargin="5" textOrder="38" textDy="0"/>
					</switch>
					<switch>
						<case minzoom="12" tag="natural" value="peak" textOrder="80"/>
						<case minzoom="12" tag="natural" value="volcano" textOrder="79"/>
						<apply>
							<switch>
								<case eleUnits="feet" nameTag="ele_feet"/>
								<case eleUnits="feet" nameTag="" nameTag2="ele_feet"/>
								<case eleUnits="meters" nameTag="ele" />
								<case eleUnits="meters" nameTag="" nameTag2="ele"/>
								<case eleUnits="" nameTag="ele" />
								<case eleUnits="" nameTag="" nameTag2="ele"/>
								<apply_if maxzoom="12" textSize="11" intersectionMargin="15"/>
								<apply_if minzoom="13" maxzoom="14" textSize="12"/>
								<apply_if minzoom="15" maxzoom="16" textSize="13"/>
								<apply_if minzoom="17" textSize="15"/>
								<apply_if maxzoom="14" engine_v1="true" textDy="-2"/>
								<apply_if minzoom="15" engine_v1="true" textDy="-1"/>
							</switch>
						</apply>
					</switch>
					<case minzoom="14" textSize="12" tag="natural" value="ridge" nameTag="" textOnPath="true" textDy="0"/>
					<case minzoom="13" textSize="14" tag="natural" value="crater" nameTag="" textColor="#4e0d0d" textDy="-4"/>
					<apply_if nightMode="true" textHaloRadius="$textHaloRadiusNight" textColor="#ffcc9b" textHaloColor="#77464234"/>
				</switch>
				<apply_if engine_v1="false" textDy="0"/>
			</switch>
			<case minzoom="9" tag="natural" value="cape" nameTag="" textSize="12" textColor="#510060" textHaloColor="#55fbe2ff" textWrapWidth="25" textHaloRadius="$textHaloRadiusDay" textItalic="true" textOrder="140">
				<apply_if nightMode="true" textHaloRadius="$textHaloRadiusNight" textColor="#fadcff" textHaloColor="#55570067"/>
			</case>

			<!-- Water -->
			<switch textColor="$waterTextColorDay" textHaloRadius="$waterTextHaloRadiusDay" textHaloColor="$waterTextHaloColorDay" textSize="12" textItalic="true">
				<case minzoom="2" tag="place" value="ocean" nameTag="" textWrapWidth="20" textOrder="53"/>
				<case minzoom="5" tag="place" value="sea" nameTag="" textWrapWidth="20" textOrder="83"/>
				<case minzoom="6" tag="natural" value="water" nameTag="" textWrapWidth="17" textOrder="228" intersectionSizeFactor="1.4">
					<case engine_v1="true" textDy="13"/>
				</case>
				<case minzoom="8" tag="seamark:type" value="sea_area" nameTag="" textWrapWidth="20" textOrder="228"/>
				<case minzoom="8" tag="natural" value="bay" nameTag="" textOnPath="true" textWrapWidth="17" textOrder="229"/>
				<case minzoom="8" tag="natural" value="strait" nameTag="" textOnPath="true" textWrapWidth="25" textOrder="230"/>
				<case minzoom="13" tag="waterway" value="stream" nameTag="" textOnPath="true" textOrder="256"/>
				<case minzoom="11" tag="waterway" value="flowline" nameTag="" textOnPath="true" textOrder="256"/>
				<case minzoom="13" tag="waterway" value="wadi" nameTag="" textOnPath="true" textOrder="263"/>
				<case minzoom="11" tag="waterway" value="river" nameTag="" textOnPath="true" textMinDistance="80" textOrder="234"/>
				<case minzoom="13" tag="waterway" value="canal" nameTag="" textOnPath="true" textMinDistance="80" textOrder="235"/>
<!--				<case minzoom="14" tag="lock" value="yes" textOnPath="true" textMinDistance="80" textOrder="184" nameTag="lock_name" nameTag2="lock_ref"/>-->
				<case minzoom="15" tag="waterway" value="ditch" nameTag="" textOnPath="true" textOrder="260"/>
				<case minzoom="15" tag="waterway" value="drain" nameTag="" textOnPath="true" textOrder="261"/>
				<case minzoom="19" textSize="12" tag="waterway" value="fish_pass" nameTag="" textOnPath="true" textOrder="78" textDy="0"/>
	<!--			<case minzoom="15" tag="waterway" value="lock_gate" textDy="7" textWrapWidth="30" textOrder="15"/>-->
				<!-- not a conventional tag: case minzoom="15" textDy="7" textWrapWidth="30" tag="waterway" value="lock" textOrder="15"/ -->
				<case minzoom="16" tag="natural" value="spring" nameTag="" textDy="7" textWrapWidth="20" textOrder="254"/>
				<case minzoom="16" tag="natural" value="hot_spring" nameTag="" textDy="7" textWrapWidth="20" textOrder="254"/>
				<case minzoom="16" tag="natural" value="geyser" nameTag="" textDy="7" textWrapWidth="20" textOrder="254"/>
				<case minzoom="17" tag="man_made" value="breakwater" nameTag="" textWrapWidth="20" textOnPath="true" textOrder="255"/>
				<case minzoom="17" tag="man_made" value="groyne" nameTag="" textWrapWidth="20" textOnPath="true" textOrder="255"/>
				<switch minzoom="15">
					<case tag="waterway" value="waterfall" nameTag2="height"/>
					<case tag="seamark:type" value="waterfall" nameTag2="height"/>
					<apply textWrapWidth="20" textOnPath="true" textOrder="255"/>
				</switch>
				<case minzoom="17" tag="seamark:waterway" value="rapids" nameTag="" textSize="11" textOnPath="true"/>

				<case minzoom="13" tag="landuse" value="water" nameTag="" textWrapWidth="20"/>
				<case minzoom="13" tag="landuse" value="reservoir" nameTag="" textWrapWidth="20"/>
				<case minzoom="13" tag="landuse" value="basin" nameTag="" textWrapWidth="20"/>
				<case minzoom="17" tag="leisure" value="swimming_pool" nameTag="" textWrapWidth="20"/>
				<case minzoom="16" tag="landuse" value="salt_pond" nameTag="" textWrapWidth="20"/>
				<case minzoom="13" tag="natural" value="glacier" nameTag="" textWrapWidth="20" textDy="-9"/>
				<apply_if nightMode="true" textHaloRadius="$textHaloRadiusNight" textColor="$waterTextColorNight" textHaloColor="#994563a7"/>
			</switch>
			<switch>
				<case engine_v1="true" minzoom="16" tag="lock" value="yes" nameTag="osmand_lock_stub" textColor="#00ff0000" textSize="11" textShield="blue_round_shield" icon="lock_gate"/>
				<switch>
					<case engine_v1="false" minzoom="16" tag="lock" value="yes" nameTag="lock_name" nameTag2="lock_ref" textShield="blue_round_shield" icon="lock_gate" textDy="25"/>
					<case minzoom="14" tag="lock" value="yes" textOnPath="true" textMinDistance="80" nameTag="lock_name" nameTag2="lock_ref"/>
					<apply textColor="$waterTextColorDay" textHaloRadius="$waterTextHaloRadiusDay" textHaloColor="$waterTextHaloColorDay" textSize="12" textItalic="true"/>
					<apply_if nightMode="true" textHaloRadius="$textHaloRadiusNight" textColor="$waterTextColorNight" textHaloColor="#994563a7"/>
				</switch>
				<apply textOrder="184"/>
				<apply_if nightMode="true" shield="blue_round_night_shield"/>
			</switch>

			<!-- Seamarks -->
			<switch minzoom="8" textColor="#0400ab" textHaloColor="#66dddddd" textHaloRadius="2">
				<!-- INT-1 P, R, S Sections: Lights, Fog Signals, Radar. seamark:name and seamark:light tags as nameTag2 (as far as possible today). The OSMAND display was validated at Texel, Den Helder, Helgoland, Elbe and Weser Approaches, Rotterdam, Cherbourg.
				default: 		name (light:character.group.period[in seconds].fog_signal:category.group.period[in seconds].radar_transponder:category.group)
								e.g. T6-VH 1 (Fl.2+1.10)= Buoy T6-VH 1 with light flashes in groups of 2 and 1. This is repeated after 10 seconds.
								name (light:character.period[in seconds]) or name (light:character.group), with only one number element.
								sectors: 		name (sector1start[bearing in degree]-end[bearing in degree]-colour-sector2 ... -sector3 ... -lightcategory)
				sector1...5:	name (sector1character.group.colour.period[in seconds].start[bearing in degree].end[bearing in degree].category[dircetional,upper].exhibition[night,fog,etc.].visibilitydistance[in nautical miles])
				Note1: In the default, a single number remains ambiguous, because the group brackets and the unit cannot be added to the nameTag2, so far.
				Note2: The group tag is/cannot? be attributed correctly, e.g. for seamarks cardinal south.
				More specific formatting, inclusion of colours and combination of text elements in the nameTags in OSMAND will require amendments for parsing of commands from rendering_types.xml and rendering styles (nautical.render.xml).
				aiming at OSMAND text display according to IHO Chart INT-1 Section P: Lights and Section R Fog Signals, e.g. https://map.openseamap.org/?zoom=15&lon=4.79&lat=53.00 .
				An appropriate graphical display of sector lights with coloured circle sections requires further development of code in OSMAND. Feedback welcome: josail @ gmx.de -->

				<switch minzoom="12" additional="depth:exposition=shoaler" textColor="$depthTextColor" textSize="14" textBold="true" textOrder="128" intersectionMargin="10" textDy="-12" nameTag2="depth">
					<case tag="seamark:type" value="rock"/>
					<case tag="seamark:type" value="wreck" textDy="-10"/>
					<apply_if additional="seamark:lnam" textOrder="20"/>
				</switch>
				<switch minzoom="13" textColor="$depthTextColor" textSize="14" textItalic="true" textOrder="128" intersectionMargin="10" textDy="-12" nameTag2="depth">
					<case tag="seamark:type" value="rock"/>
					<case tag="seamark:type" value="wreck" textDy="-10"/>
					<apply_if additional="seamark:lnam" textOrder="25"/>
				</switch>
				<switch nameTag="seamark:name" nameTag2="seamark:light:character">
					<!-- empty nameTag="seamark:name" is filled with "." in rendering_types.xml in order to assure nameTag2 display. Check e.g. on buoy cardinal west: https://map.openseamap.org/?zoom=16&lon=8.170&lat=53.780 -->
					<switch textItalic="true">
						<case minzoom="12" tag="seamark:type" value="buoy_lateral"/>
						<case minzoom="12" tag="seamark:type" value="buoy_cardinal"/>
						<case minzoom="12" tag="seamark:type" value="buoy_isolated_danger"/>
						<case minzoom="12" tag="seamark:type" value="buoy_safe_water"/>
						<case minzoom="12" tag="seamark:type" value="buoy_special_purpose"/>
						<case minzoom="12" tag="seamark:type" value="buoy_installation"/>
					</switch>
					<case minzoom="12" tag="seamark:type" value="beacon_lateral"/>
					<case minzoom="12" tag="seamark:type" value="beacon_cardinal"/>
					<case minzoom="12" tag="seamark:type" value="beacon_isolated_danger"/>
					<case minzoom="12" tag="seamark:type" value="beacon_safe_water"/>
					<case minzoom="12" tag="seamark:type" value="beacon_special_purpose"/>
					<case minzoom="12" tag="seamark:type" value="light_float"/>
					<case minzoom="12" tag="seamark:type" value="light_vessel"/>
					<case minzoom="14" tag="seamark:type" value="radar_reflector"/>
					<case minzoom="14" tag="seamark:type" value="waterway_gauge"/>
					<case minzoom="15" tag="seamark:type" value="notice" nameTag="seamark:notice:information"/>
					<case minzoom="15" tag="seamark:type" value="notice" nameTag="seamark:notice:1:information"/>
					<case minzoom="16" tag="seamark:type" value="mooring" nameTag="name"/>
					<case minzoom="16" tag="seamark:type" value="mooring" nameTag="seamark:name"/>
					<case minzoom="16" tag="seamark:type" value="pile" nameTag="seamark:name"/>
					<switch minzoom="16" textOnPath="true" textOrder="130">
						<case tag="seamark:type" value="lock_basin"/>
						<case minzoom="17" tag="seamark:type" value="gate"/>
					</switch>
					<apply textWrapWidth="19"/>
					<apply_if textDy="-10"/> <!-- avoid large distance of nameTags due to light shield -->
					<apply_if additional="seamark:light:colour" textDy="-2"/> <!-- avoid large distance of nameTags due to light shield -->
					<!-- INT-1 P Section: Lights, lightDetail nameTag2 composed in rendering_types.xml -->
					<apply_if lightDetail="small" textSize="9" textColor="#bf0400ab"/> <!-- small and translucent dark blue for reduced impact -->
					<apply_if lightDetail="name_only" nameTag2="$null"/>
					<apply_if lightDetail="omit" disable="true"/>
				</switch>

				<switch> <!-- for big icons -->
					<switch>
						<!--            <apply textColor="#292929" textWrapWidth="22" textHaloColor="#ddffffff" textHaloRadius="2"/>-->
						<case minzoom="10" tag="seamark:type" value="light_major" additional="lightsector=source" textOrder="1" textHaloRadius="3">
							<apply_if minzoom="11" nameTag2="seamark:light:character"/>
						</case>
						<case minzoom="11" tag="seamark:type" value="light_minor" additional="lightsector=source" textOrder="2" textHaloRadius="3">
							<apply_if minzoom="12" nameTag2="seamark:light:character"/>
						</case>
						<switch minzoom="12" textOnPath="true">
							<case tag="lightsector" value="arc"/>
							<case tag="lightsector" value="limit"/>
							<case tag="lightsector" value="orientation"/>
						</switch>
					</switch>
					<switch>
						<case minzoom="11" tag="seamark:type" value="light_major" nameTag2="seamark:light:character" textOrder="50"/>
						<case minzoom="12" tag="seamark:type" value="light_minor" nameTag2="seamark:light:character" textOrder="55"/>
						<case minzoom="11" tag="seamark:type" value="landmark" nameTag2="seamark:light:character" textOrder="60"/>
						<case minzoom="12" tag="man_made" value="mast" nameTag2="seamark:light:character" textOrder="66"/>
						<case minzoom="12" tag="man_made" value="tower" nameTag2="seamark:light:character" textOrder="67"/>
						<case minzoom="11" tag="man_made" value="offshore_platform" nameTag2="seamark:light:character" textOrder="69"/>
						<case minzoom="11" tag="seamark:type" value="platform" nameTag2="seamark:light:character" textOrder="69"/>
						<case minzoom="11" tag="man_made" value="lighthouse" nameTag2="seamark:light:character" textOrder="70"/>
						<apply_if engine_v1="false" textDy="-10"/>
					</switch>
						<apply_if lightDetail="small" textSize="9" textColor="#bf0400ab"/> <!-- small and translucent dark blue for reduced visual impact -->
						<apply_if lightDetail="name_only" nameTag2="$null"/>
						<apply_if lightDetail="omit" disable="true"/>
					<case minzoom="12" tag="seamark:type" value="fog_signal" textOrder="70"/>
					<case minzoom="12" tag="seamark:type" value="radar_transponder" textOrder="71"/> <!-- INT-1 S Section Radar, Ramark, Racon -->
					<case minzoom="12" tag="seamark:type" value="radio_station" textOrder="71"/>
					<apply_if lightDetail="" additional="seamark:radio_station:category" value="ais" nameTag2="seamark:radio_station:category"/> <!-- INT-1 S Section Radar, AIS -->
					<apply_if lightDetail="" additional="seamark:radio_station:category" value="v-ais" nameTag2="seamark:radio_station:category"/> <!-- INT-1 S Section Radar, V-AIS -->
					<case minzoom="12" tag="seamark:type" value="radar_station" textOrder="71"/>
					<case minzoom="17" tag="seamark:type" value="signal_station_traffic" nameTag="seamark:name" nameTag2="seamark:signal_station_traffic:category_name" textOrder="71"/>
					<case minzoom="17" tag="seamark:type" value="signal_station_traffic" nameTag="seamark:signal_station_traffic:category_name" textOrder="71"/>
					<case minzoom="17" tag="seamark:type" value="signal_station_warning" nameTag="seamark:name" nameTag2="seamark:signal_station_warning:category_name" textOrder="71"/>
					<case minzoom="17" tag="seamark:type" value="signal_station_warning" nameTag="seamark:signal_station_warning:category_name" textOrder="71"/>
					<apply_if additional="seamark:light:colour" textDy="-28"/>
					<apply_if additional="seamark:light:1:colour" textDy="-28"/>
					<apply_if minzoom="11" maxzoom="13" tag="seamark:type" value="platform" textDy="-10"/>
					<apply_if minzoom="11" maxzoom="13" tag="man_made" value="offshore_platform" textDy="-10"/>
					<apply_if minzoom="11" maxzoom="11" tag="man_made" value="lighthouse" additional="seamark:light:colour" textDy="-14"/>
					<apply_if minzoom="11" maxzoom="11" tag="man_made" value="lighthouse" additional="seamark:light:1:colour" textDy="-14"/>
					<apply_if minzoom="11" tag="seamark:type:landmark:category" value="tower" additional="seamark:light:colour" textDy="-14"/>
					<apply_if minzoom="11" tag="seamark:type:landmark:category" value="tower" additional="seamark:light:1:colour" textDy="-14"/>
					<apply_if minzoom="11" tag="seamark:type" value="landmark" additional="seamark:light:colour" textDy="-14"/>
					<apply_if minzoom="11" tag="seamark:type" value="landmark" additional="seamark:light:1:colour" textDy="-14"/>
					<apply textWrapWidth="25"/>
					<apply_if hideLightSectorSources="true" additional="lightsector=source" textDy="30"/>
				</switch>

				<!-- INT-1 J Section: Nature of the Seabed -->
				<!-- INT-1 J1 to J12 Types of Seabed, OsmAnd nautical.render.xml renderingProperty options for seabedDetail nameTag: ""(default)=""= 1st surface type as letters according to INT-1 J1-J13, seabed_letters are generated in obf according to rendering_types.xml, nameTag2: "category"=surface tag in seamark_category, "all"=surface qualification and type included in seabed_surface_all, seagrass and weed in seabed_taxon_all including category, genus and taxon, "omit"=no display -->
				<!-- Tested 2022-05-30 together with version 1.1 of rendering_types.xml, e.g.  http://osmand.net/go.html?lat=36.65161&lon=25.37019&z=16, feedback welcome: josail @ gmx.de -->
				<switch minzoom="14" textWrapWidth="20" textOrder="14" textDy="10" textColor="#0400ab" textItalic="true" textHaloColor="$watercolor" textHaloRadius="2">
					<!-- seabedDetail="default" or "simple" display with letters only -->
					<switch seabedDetail="">
						<case tag="seamark:type" value="seabed_area" nameTag="seabed_surface_1"/>
						<case tag="seamark:type" value="weed" nameTag="seabed_letters" textDy="-15" />
						<case tag="seamark:type" value="seagrass" nameTag="seabed_letters" textDy="-15" />
					</switch>
					<!-- additional seabedDetail of seamark "category" or "all" surface type and qualification tags as nameTag2-->
					<switch seabedDetail="category">
						<case tag="seamark:type" value="seabed_area" nameTag="seabed_surface_1" nameTag2="seamark_category" />
						<case tag="seamark:type" value="weed" nameTag="seabed_letters" nameTag2="seamark_category" />
						<case tag="seamark:type" value="seagrass" nameTag="seabed_letters" nameTag2="seamark_category" />
					</switch>
					<switch seabedDetail="all" maxzoom="19">
						<case tag="seamark:type" value="seabed_area" nameTag="seabed_surface_1" nameTag2="seabed_surface_all"/>
						<case tag="seamark:type" value="weed" nameTag="seabed_letters" nameTag2="seabed_taxon_all"/>
						<case tag="seamark:type" value="seagrass" nameTag="seabed_letters" nameTag2="seabed_taxon_all"/>
					</switch>
					<switch seabedDetail="all" minzoom="20"> <!-- complete display of all text elements at very high zoom level -->
						<case tag="seamark:type" value="seabed_area"/>
						<case tag="seamark:type" value="weed"/>
						<case tag="seamark:type" value="seagrass"/>
					</switch>
					<!-- omit seabedDetail of seamark -->
					<switch seabedDetail="omit">
						<case tag="seamark:type" maxzoom="18" value="seabed_area" disable="true"/>
						<case tag="seamark:type" minzoom="19" value="seabed_area" nameTag="seabed_surface_1"/><!-- in case SeabedDetail="omit" text is omitted, but a simplified seabed letter display at very high zoom level is maintained-->
						<case tag="seamark:type" value="weed" disable="true"/>
						<case tag="seamark:type" value="seagrass" disable="true"/>
					</switch>
					<apply_if nightMode="true" textColor="#e4d0e3"/>
				</switch>

				<switch textBold="true">
					<case minzoom="15" tag="leisure" value="marina" textOrder="6" textHaloColor="#88d4ecff"/>
					<switch minzoom="10" tag="seamark:type" value="harbour" textOrder="52" textHaloColor="#88d4ecff">
						<case nameTag="seamark:name"/>
						<case nameTag=""/>
						<apply_if minzoom="11" textOrder="5"/>
					</switch>
					<case minzoom="12" tag="waterway" value="dock" textOrder="59"/>
					<case minzoom="16" tag="seamark:type" value="building" textOrder="63" textBold="false"/>
					<case minzoom="16" tag="seamark:type" value="rescue_station" textOrder="63" textBold="false"/>
					<case minzoom="16" tag="seamark:type" value="hulk" textOrder="64" textBold="false"/>
<!--					<apply_if engine_v1="true" textDy="15"/>-->
				</switch>
				<apply>
					<case lightDetail="small"/> <!-- no change of textSize when already defined before -->
					<case maxzoom="12" textSize="12"/>
					<case maxzoom="14" textSize="13"/>
					<case minzoom="15" textSize="14"/>
				</apply>
				<apply_if nightMode="true" textColor="#eaf6ff" textHaloColor="#5545a5e2"/>
				<apply_if hideNoLNAM="true">
					<case additional="seamark:lnam"/>
					<case disable="true"/>
				</apply_if>
				<apply>
					<case additional="lightsector=source"/>
					<case additional="seamark:lnam" textOrder="20"/>
				</apply>
			</switch>

			<switch>
				<switch textColor="#222222" textWrapWidth="19" textHaloColor="#aaffffff" textHaloRadius="2" textOnPath="true" textBold="true">
					<case minzoom="13" tag="seamark:type" value="recommended_track" nameTag2="seamark:recommended_track:orientation"/>
					<case minzoom="13" tag="seamark:type" value="recommended_traffic_lane" nameTag2="seamark:recommended_track:orientation"/>
					<case minzoom="13" tag="seamark:type" value="navigation_line" nameTag2="seamark:navigation_line:orientation"/>
					<case minzoom="8" tag="route" value="ferry" nameTag2="ref"/>
					<case minzoom="15" tag="seamark:type" value="dam" nameTag="seamark:name"/>
					<case minzoom="15" tag="seamark:type" value="dam" nameTag=""/>
					<case minzoom="15" tag="waterway" value="dam"/>
					<case minzoom="16" tag="waterway" value="weir"/>
					<apply_if nightMode="true" textColor="#dddddd" textHaloColor="#99333333"/>
				</switch>
				<switch minzoom="15" textColor="#444444" textWrapWidth="19" textHaloColor="#77ffffff" textHaloRadius="2" textOnPath="true">
					<case minzoom="16" tag="seamark:type" value="cable_overhead" nameTag="seamark:cable_overhead:vertical_clearance_safe"/>
					<case tag="seamark:type" value="cable_submarine" nameTag="seamark:name"/>
					<case tag="seamark:type" value="cable_submarine" nameTag=""/>
					<case tag="seamark:type" value="pipeline_submarine" textOnPath="true" nameTag="seamark:name"/>
					<case tag="seamark:type" value="pipeline_area" textDy="8" nameTag="seamark:name"/>
					<apply_if nightMode="true" textColor="#999999" textHaloColor="#55333333"/>
<!--					<apply_if engine_v1="false" textDy="0"/>-->
				</switch>

				<switch minzoom="11" textColor="#0400ab" textWrapWidth="19" textHaloColor="#88ffffff" textHaloRadius="2">
					<case minzoom="11" tag="seamark:type" value="landmark" textOrder="59" nameTag="seamark:name"/>
					<case minzoom="11" tag="seamark:type" value="landmark" textOrder="59" nameTag=""/>
					<case minzoom="17" tag="seamark:type" value="pylon" textOrder="59"/>
					<case minzoom="13" tag="seamark:type" value="production_area" textOrder="59"/>
					<case minzoom="16" tag="seamark:type" value="marine_farm" textOrder="59"/>
<!--					<apply_if engine_v1="true" textDy="8"/>-->
					<apply_if nightMode="true" textColor="#eaf6ff" textHaloColor="#5545a5e2"/>
				</switch>
				<switch textColor="#8c0000" textWrapWidth="19" textHaloColor="#99ffc9c9" textHaloRadius="2" textOrder="61">
					<case minzoom="13" tag="seamark:type" value="restricted_area" nameTag="seamark:name" nameTag2="seamark:restricted_area:information"/>
					<case minzoom="13" tag="seamark:type" value="restricted_area" nameTag="seamark:restricted_area:information" nameTag2="seamark:name"/>
					<case minzoom="15" tag="seamark:type" value="obstruction" nameTag2="depth" textDy="-13"/>
					<case minzoom="13" tag="seamark:type" value="cable_area" nameTag="seamark:name"/>
					<case minzoom="13" tag="seamark:type" value="precautionary_area" nameTag="seamark:name"/>
					<case minzoom="15" tag="seamark:type" value="seaplane_landing_area" nameTag="seamark:name"/>
					<case minzoom="11" tag="seamark:type" value="inshore_traffic_zone" nameTag="seamark:name" textOnPath="true"/>
					<apply_if nightMode="true" textColor="#ffe4e4" textHaloColor="#55971515"/>
					<apply_if maxzoom="13" additional="seamark:restricted_area:restriction" disable="true"/>
				</switch>
				<apply>
					<case maxzoom="12" textSize="12"/>
					<case maxzoom="14" textSize="12"/>
					<case minzoom="15" textSize="13"/>
				</apply>
			</switch>
			<switch>
				<switch>
					<case minzoom="11" tag="seamark:type" value="separation_zone" textBold="true"/>
					<case minzoom="14" tag="seamark:type" value="separation_roundabout" textBold="true"/>
					<case minzoom="14" tag="seamark:type" value="separation_crossing" textBold="true"/>
					<case minzoom="14" tag="seamark:type" value="turning_basin" textBold="true" textDy="10"/>
					<case minzoom="11" tag="seamark:type" value="fairway" textOnPath="true"/>
					<case minzoom="11" tag="waterway" value="fairway" textOnPath="true"/>
					<case minzoom="11" tag="waterway" value="flowline" textOnPath="true"/>
					<case minzoom="12" tag="seamark:type" value="anchorage" textDy="10" textBold="true"/>
					<case minzoom="14" tag="seamark:type" value="anchor_berth" textDy="10"/>
					<case minzoom="17" tag="seamark:type" value="small_craft_facility" textDy="-15">
						<case additional="seamark:small_craft_facility:category=slipway" textOnPath="true"/>
					</case>
					<case minzoom="17" tag="leisure" value="slipway" textDy="-15" textOnPath="true"/>
					<case minzoom="17" tag="seamark:type" value="fishing_facility" textDy="10"/>
					<switch minzoom="16" tag="seamark:type" value="berth" textDy="10">
						<case nameTag="seamark:name" nameTag2="seamark:berth:information"/>
						<case nameTag="" nameTag2="seamark:berth:information"/>
					</switch>
<!--					<apply_if engine_v1="false" textDy="-7"/>-->
				</switch>
				<switch>
					<case minzoom="16" tag="seamark:type" value="pilot_boarding"/>
				</switch>
				<apply textColor="#471c62" textWrapWidth="26" textHaloColor="#aae8d5ee" textHaloRadius="2">
					<case maxzoom="12" textSize="12"/>
					<case maxzoom="14" textSize="13"/>
					<case minzoom="16" textSize="14"/>
				</apply>
				<apply_if nightMode="true" textColor="#f3e1ff" textHaloColor="#5545a5e2"/>
			</switch>
			<switch>
				<switch>
					<case minzoom="16" tag="seamark:type" value="pilot_boarding"/>
					<switch minzoom="16" tag="seamark:type" value="bridge" textOrder="55" intersectionSizeFactor="0.5">
						<case additional="seamark:bridge:category=opening" nameTag="seamark:bridge:clearance_height_closed"/>
						<case additional="seamark:bridge:category=lifting" nameTag="seamark:bridge:clearance_height_closed" nameTag2="seamark:bridge:clearance_height_open"/>
						<case additional="seamark:bridge:category=fixed" nameTag="seamark:bridge:clearance_height"/>
					</switch>
				</switch>
				<apply textColor="#333333" textWrapWidth="26" textHaloColor="#ffffff" textHaloRadius="1" textSize="11"/>
				<apply_if engine_v1="true" textDy="-24"/>
				<apply_if engine_v1="false" textDy="-29"/>
<!--				<apply_if nightMode="true" textColor="#f3e1ff" textHaloColor="#5545a5e2"/>-->
			</switch>
			<switch minzoom="15" textSize="10" textColor="#5a0461" textWrapWidth="7" textHaloColor="#33ffffff" textHaloRadius="1" textOrder="150">
				<case tag="seamark:type" value="distance_mark" nameTag="seamark:distance_mark:distance" nameTag2="seamark:distance_mark:units"/>
				<apply_if nightMode="true" textColor="#e4d0e3"/>
			</switch>

			<switch textSize="12" textColor="#ffffff" textHaloRadius="$textHaloRadiusDay" textHaloColor="#7b7463" textWrapWidth="20" textOnPath="true" textDy="0">
				<case minzoom="17" tag="barrier" value="city_wall"/>
				<case minzoom="17" tag="seamark:type" value="fortified_structure"/>
				<apply_if nightMode="true" textHaloRadius="$textHaloRadiusNight" textColor="#ffe7c2" textHaloColor="#88644e2c"/>
			</switch>
			<apply_if legend="true" minzoom="18" maxzoom="18" textSize="16"/>
			<apply legend="true" textWrapWidth="26"/>
		</switch>
		<switch textColor="#000000" intersectionMargin="-10">
			<case tag="osmand_legend" value="header" textOrder="1" nameTag="" textBold="true" textDy="-11" textHaloRadius=":1" textHaloColor="$defaultTextHaloColorDay">
				<case minzoom="16" maxzoom="16" textSize="18"/>
				<case minzoom="17" maxzoom="17" textSize="19"/>
				<case minzoom="18" textSize="20"/>
				<apply legend="true" textWrapWidth="48"/>
			</case>
			<case tag="osmand_legend" value="element" textOrder="5" textHaloRadius="$textHaloRadiusDay" textHaloColor="$defaultTextHaloColorDay" nameTag="">
				<case minzoom="17" maxzoom="17" textSize="11"/>
				<case minzoom="18" textSize="12" textWrapWidth="30"/>
			</case>
			<apply_if nightMode="true" textColor="#ffffff" textHaloRadius="$textHaloRadiusNight" textHaloColor="#77777777"/>
			<apply_if legend="true" textHaloColor="$defaultColor"/>
		</switch>
	</text>


	<point>
		<case minzoom="5" tag="osmand" value="file_waypoint"> <!-- for new OpenGL engine -->
			<case additional="file_has_waypoints=true" icon="osmand_waypoint" iconVisibleSize="5" iconOrder="1">
				<case additional="color=orange" shield="waypoint_orange_shield"/>
				<case additional="color=yellow" shield="waypoint_yellow_shield"/>
				<case additional="color=green" shield="waypoint_green_shield"/>
				<case additional="color=lightblue" shield="waypoint_lightblue_shield"/>
				<case additional="color=blue" shield="waypoint_blue_shield"/>
				<case additional="color=purple" shield="waypoint_purple_shield"/>
				<case additional="color=gray" shield="waypoint_gray_shield"/>
				<case shield="waypoint_red_shield"/>
			</case>
		</case>
	<!-- Seamarks -->
		<switch>
			<switch>
				<!-- INT-1 Q Section: Buoys -->
				<switch iconVisibleSize="9" intersectionSizeFactor="0.3" iconOrder="100" icon_shift_py="-0.8">
					<case minzoom="12" tag="seamark:type" value="buoy_lateral" icon="seamark_buoy_pillar">
						<case additional="seamark:buoy_lateral:colour=red" icon="seamark_buoy_red_pillar">
							<case additional="seamark:buoy_lateral:shape=conical" icon="seamark_buoy_red_conical"/>
							<case additional="seamark:buoy_lateral:shape=barrel" icon="seamark_buoy_red_barrel"/>
							<case additional="seamark:buoy_lateral:shape=can" icon="seamark_buoy_red_can"/>
							<case additional="seamark:buoy_lateral:shape=pillar" icon="seamark_buoy_red_pillar"/>
							<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_red_spar"/>
							<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_red_spherical"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=green" icon="seamark_buoy_green_pillar">
							<case additional="seamark:buoy_lateral:shape=conical" icon="seamark_buoy_green_conical"/>
							<case additional="seamark:buoy_lateral:shape=barrel" icon="seamark_buoy_green_barrel"/>
							<case additional="seamark:buoy_lateral:shape=can" icon="seamark_buoy_green_can"/>
							<case additional="seamark:buoy_lateral:shape=pillar" icon="seamark_buoy_green_pillar"/>
							<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_green_spar"/>
							<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_green_spherical"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=yellow" icon="seamark_buoy_yellow_pillar">
							<case additional="seamark:buoy_lateral:shape=conical" icon="seamark_buoy_yellow_conical"/>
							<case additional="seamark:buoy_lateral:shape=can" icon="seamark_buoy_yellow_can"/>
							<case additional="seamark:buoy_lateral:shape=barrel" icon="seamark_buoy_yellow_barrel"/>
							<case additional="seamark:buoy_lateral:shape=pillar" icon="seamark_buoy_yellow_pillar"/>
							<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_yellow_spar"/>
							<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_yellow_spherical"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=white" icon="seamark_buoy_white_conical">
							<case additional="seamark:buoy_lateral:shape=conical" icon="seamark_buoy_white_conical"/>
							<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_white_spherical"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=red;green;red" icon="seamark_buoy_redgreenred_pillar_horizontal">
							<case additional="seamark:buoy_lateral:colour_pattern=horizontal">
								<case additional="seamark:buoy_lateral:shape=can" icon="seamark_buoy_redgreenred_can_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=pillar" icon="seamark_buoy_redgreenred_pillar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_redgreenred_spar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_redgreenred_spherical_horizontal"/>
							</case>
						</case>
						<case additional="seamark:buoy_lateral:colour=green;red" icon="seamark_buoy_greenred_spar_horizontal">
							<case additional="seamark:buoy_lateral:colour_pattern=horizontal">
								<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_greenred_spar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_greenred_spherical_horizontal"/>
							</case>
						</case>
						<case additional="seamark:buoy_lateral:colour=red;white;red;white" icon="seamark_buoy_redwhiteredwhite_spar_horizontal">
							<case additional="seamark:buoy_lateral:colour_pattern=horizontal">
								<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_redwhiteredwhite_spar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=can" icon="seamark_buoy_redwhiteredwhite_can_horizontal"/>
							</case>
						</case>
						<case additional="seamark:buoy_lateral:colour=red;green;red;green" icon="seamark_buoy_redgreenredgreen_spar_horizontal">
							<case additional="seamark:buoy_lateral:colour_pattern=horizontal">
								<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_redgreenredgreen_spar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_redgreenredgreen_spherical_horizontal"/>
							</case>
						</case>
						<case additional="seamark:buoy_lateral:colour=red;green" icon="seamark_buoy_redgreen_spar_horizontal">
							<case additional="seamark:buoy_lateral:colour_pattern=horizontal">
								<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_redgreen_spar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_redgreen_spherical_horizontal"/>
							</case>
						</case>
						<case additional="seamark:buoy_lateral:colour=white;red;white;red" icon="seamark_buoy_whiteredwhitered_spar_horizontal">
							<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_whiteredwhitered_spar_horizontal"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=red;white;red" icon="seamark_buoy_redwhitered_can_horizontal">
							<case additional="seamark:buoy_lateral:shape=can" icon="seamark_buoy_redwhitered_can_horizontal"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=green;white;green;white" icon="seamark_buoy_greenwhitegreenwhite_conical_horizontal">
							<case additional="seamark:buoy_lateral:colour_pattern=horizontal">
								<case additional="seamark:buoy_lateral:shape=conical" icon="seamark_buoy_greenwhitegreenwhite_conical_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_greenwhitegreenwhite_spar_horizontal"/>
							</case>
						</case>
						<case additional="seamark:buoy_lateral:colour=white;green;white;green" icon="seamark_buoy_whitegreenwhitegreen_spar_horizontal">
							<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_whitegreenwhitegreen_spar_horizontal"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=green;red;green" icon="seamark_buoy_greenredgreen_pillar_horizontal">
							<case additional="seamark:buoy_lateral:colour_pattern=horizontal">
								<case additional="seamark:buoy_lateral:shape=conical" icon="seamark_buoy_greenredgreen_conical_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=can" icon="seamark_buoy_greenredgreen_can_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=pillar" icon="seamark_buoy_greenredgreen_pillar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_greenredgreen_spar_horizontal"/>
								<case additional="seamark:buoy_lateral:shape=spherical" icon="seamark_buoy_greenredgreen_spherical_horizontal"/>
							</case>
						</case>
						<case additional="seamark:buoy_lateral:colour=red;white" icon="seamark_buoy_redwhite_spar_horizontal">
							<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_redwhite_spar_horizontal"/>
							<case additional="seamark:buoy_lateral:shape=pillar" icon="seamark_buoy_redwhite_pillar_horizontal"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=green;white" icon="seamark_buoy_greenwhite_spar_horizontal">
							<case additional="seamark:buoy_lateral:shape=spar" icon="seamark_buoy_greenwhite_spar_horizontal"/>
						</case>
						<case additional="seamark:buoy_lateral:colour=orange" icon="seamark_buoy_orange_spherical"/>
					</case>
					<case minzoom="11" tag="seamark:type" value="buoy_cardinal" icon="seamark_buoy_blackyellowblack_pillar">
						<case additional="seamark:buoy_cardinal:colour=yellow;black;yellow" icon="seamark_buoy_yellowblackyellow_pillar">
							<case additional="seamark:buoy_cardinal:shape=spar" icon="seamark_buoy_yellowblackyellow_spar"/>
							<case additional="seamark:buoy_cardinal:shape=pillar" icon="seamark_buoy_yellowblackyellow_pillar"/>
							<case additional="seamark:buoy_cardinal:shape=can" icon="seamark_buoy_yellowblackyellow_can"/>
							<case additional="seamark:buoy_cardinal:shape=conical" icon="seamark_buoy_yellowblackyellow_conical"/>
						</case>
						<case additional="seamark:buoy_cardinal:colour=black;yellow;black" icon="seamark_buoy_blackyellowblack_pillar">
							<case additional="seamark:buoy_cardinal:shape=spar" icon="seamark_buoy_blackyellowblack_spar"/>
							<case additional="seamark:buoy_cardinal:shape=pillar" icon="seamark_buoy_blackyellowblack_pillar"/>
							<case additional="seamark:buoy_cardinal:shape=can" icon="seamark_buoy_blackyellowblack_can"/>
							<case additional="seamark:buoy_cardinal:shape=conical" icon="seamark_buoy_blackyellowblack_conical"/>
						</case>
						<case additional="seamark:buoy_cardinal:colour=yellow;black" icon="seamark_buoy_yellowblack_pillar">
							<case additional="seamark:buoy_cardinal:shape=spar" icon="seamark_buoy_yellowblack_spar"/>
							<case additional="seamark:buoy_cardinal:shape=pillar" icon="seamark_buoy_yellowblack_pillar"/>
							<case additional="seamark:buoy_cardinal:shape=can" icon="seamark_buoy_yellowblack_can"/>
							<case additional="seamark:buoy_cardinal:shape=conical" icon="seamark_buoy_yellowblack_conical"/>
						</case>
						<case additional="seamark:buoy_cardinal:colour=black;yellow" icon="seamark_buoy_blackyellow_pillar">
							<case additional="seamark:buoy_cardinal:shape=spar" icon="seamark_buoy_blackyellow_spar"/>
							<case additional="seamark:buoy_cardinal:shape=pillar" icon="seamark_buoy_blackyellow_pillar"/>
							<case additional="seamark:buoy_cardinal:shape=can" icon="seamark_buoy_blackyellow_can"/>
							<case additional="seamark:buoy_cardinal:shape=conical" icon="seamark_buoy_blackyellow_conical"/>
						</case>
					</case>

					<case minzoom="10" tag="seamark:type" value="buoy_isolated_danger" icon="seamark_buoy_blackredblack_pillar">
						<case additional="seamark:buoy_isolated_danger:shape=pillar" icon="seamark_buoy_blackredblack_pillar"/>
						<case additional="seamark:buoy_isolated_danger:shape=spar" icon="seamark_buoy_blackredblack_spar"/>
						<case additional="seamark:buoy_isolated_danger:shape=spherical" icon="seamark_buoy_blackredblack_spherical"/>
						<case additional="seamark:buoy_isolated_danger:shape=conical" icon="seamark_buoy_blackredblack_conical"/>
					</case>
					<case minzoom="9" tag="seamark:type" value="buoy_safe_water" icon="seamark_buoy_redwhite_pillar_vertical">
						<case additional="seamark:buoy_safe_water:colour=red;white" icon="seamark_buoy_redwhite_pillar_vertical">
							<case additional="seamark:buoy_safe_water:shape=pillar" icon="seamark_buoy_redwhite_pillar_vertical"/>
							<case additional="seamark:buoy_safe_water:shape=spherical" icon="seamark_buoy_redwhite_spherical_vertical"/>
							<case additional="seamark:buoy_safe_water:shape=spar" icon="seamark_buoy_redwhite_spar_vertical"/>
						</case>
					</case>

					<case minzoom="12" tag="seamark:type" value="buoy_special_purpose" icon="seamark_buoy_yellow_spar">
						<case additional="seamark:buoy_special_purpose:colour=yellow" icon="seamark_buoy_yellow_pillar">
							<case additional="seamark:buoy_special_purpose:shape=conical" icon="seamark_buoy_yellow_conical"/>
							<case additional="seamark:buoy_special_purpose:shape=barrel" icon="seamark_buoy_yellow_barrel"/>
							<case additional="seamark:buoy_special_purpose:shape=can" icon="seamark_buoy_yellow_can"/>
							<case additional="seamark:buoy_special_purpose:shape=pillar" icon="seamark_buoy_yellow_pillar"/>
							<case additional="seamark:buoy_special_purpose:shape=spar" icon="seamark_buoy_yellow_spar"/>
							<case additional="seamark:buoy_special_purpose:shape=spherical" icon="seamark_buoy_yellow_spherical"/>
							<case additional="seamark:buoy_special_purpose:shape=super-buoy" icon="seamark_buoy_yellow_super_buoy"/>
						</case>
						<case additional="seamark:buoy_special_purpose:colour=white" icon="seamark_buoy_white_pillar">
							<case additional="seamark:buoy_special_purpose:shape=conical" icon="seamark_buoy_white_conical"/>
							<case additional="seamark:buoy_special_purpose:shape=barrel" icon="seamark_buoy_white_barrel"/>
							<case additional="seamark:buoy_special_purpose:shape=can" icon="seamark_buoy_white_can"/>
							<case additional="seamark:buoy_special_purpose:shape=pillar" icon="seamark_buoy_white_pillar"/>
							<case additional="seamark:buoy_special_purpose:shape=spar" icon="seamark_buoy_white_spar"/>
							<case additional="seamark:buoy_special_purpose:shape=spherical" icon="seamark_buoy_white_spherical"/>
							<case additional="seamark:buoy_special_purpose:shape=super-buoy" icon="seamark_buoy_white_super_buoy"/>
						</case>
						<case additional="seamark:buoy_special_purpose:colour=white;yellow" icon="seamark_buoy_yellow_spherical">
							<case additional="seamark:buoy_special_purpose:colour_pattern=cross">
								<case additional="seamark:buoy_special_purpose:shape=spherical" icon="seamark_buoy_whiteyellow_spherical_cross"/>
							</case>
						</case>
					</case>

					<case minzoom="10" tag="seamark:type" value="buoy_installation" icon="seamark_buoy_yellow_installation"/>

					<apply> <!-- When to topmark shape is set -->
						<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_sphere"/>
						<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_sphere"/>
						<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_oblique_black_sphere"/>
						<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_sphere"/>
					</apply>
					<apply> <!-- Topmarks -->
						<case additional="seamark:topmark:shape=cylinder" icon__1="seamark_topmark_oblique_black_cylinder">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_cylinder"/>
							<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_cylinder"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_oblique_black_cylinder"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_cylinder"/>
							<case additional="seamark:topmark:colour=red;white;red" icon__1="seamark_topmark_oblique_redwhitered_cylinder"/>
						</case>
						<switch>
							<case additional="seamark:topmark:shape=board" icon__1="seamark_topmark_oblique_black_cylinder"/>
							<case additional="seamark:topmark:shape=square" icon__1="seamark_topmark_oblique_black_cylinder"/>
							<case additional="seamark:topmark:shape=rectangle" icon__1="seamark_topmark_oblique_black_cylinder"/>
							<apply>
								<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_board"/>
								<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_board"/>
								<case additional="seamark:topmark:colour=red;white;red" icon__1="seamark_topmark_oblique_redwhitered_board"/>
								<case additional="seamark:topmark:colour=white;red">
									<case additional="seamark:topmark:colour_pattern=border" icon__1="seamark_topmark_oblique_whitered_board_border"/>
								</case>
							</apply>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone, point down" icon__1="seamark_topmark_oblique_black_conepointdown"/>
							<case additional="seamark:topmark:shape=triangle, point down" icon__1="seamark_topmark_oblique_black_conepointdown"/>
							<apply>
								<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_conepointdown"/>
								<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_conepointdown"/>
								<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_oblique_black_conepointdown"/>
								<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_conepointdown"/>
								<case additional="seamark:topmark:colour=red;white;red" icon__1="seamark_topmark_oblique_redwhitered_conepointdown"/>
							</apply>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone" icon__1="seamark_topmark_oblique_black_conepointup"/>
							<case additional="seamark:topmark:shape=cone, point up" icon__1="seamark_topmark_oblique_black_conepointup"/>
							<case additional="seamark:topmark:shape=triangle, point up" icon__1="seamark_topmark_oblique_black_conepointup"/>
							<apply>
								<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_conepointup"/>
								<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_conepointup"/>
								<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_oblique_black_conepointup"/>
								<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_conepointup"/>
							</apply>
						</switch>
						<case additional="seamark:topmark:shape=rhombus" icon__1="seamark_topmark_oblique_black_rhombus">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_rhombus"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_oblique_black_rhombus"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_rhombus"/>
						</case>
						<case additional="seamark:topmark:shape=sphere" icon__1="seamark_topmark_oblique_black_sphere">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_sphere"/>
							<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_sphere"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_oblique_black_sphere"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_sphere"/>
						</case>
						<case additional="seamark:topmark:shape=x-shape" icon__1="seamark_topmark_oblique_yellow_xshape">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_xshape"/>
							<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_xshape"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_oblique_black_xshape"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_xshape"/>
						</case>
						<case additional="seamark:topmark:shape=2 cones point together" icon__1="seamark_topmark_oblique_black_2conespointtogether">
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_oblique_yellow_2conespointtogether"/>
						</case>
						<case additional="seamark:topmark:shape=cone, point up over sphere">
							<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_oblique_green_conepointupoversphere"/>
						</case>
						<case additional="seamark:topmark:shape=cylinder over sphere">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_oblique_red_cylinderoversphere"/>
						</case>
						<case additional="seamark:topmark:shape=2 cones base together" icon__1="seamark_topmark_oblique_black_2conesbasetogether"/>
						<case additional="seamark:topmark:shape=2 cones up" icon__1="seamark_topmark_oblique_black_2conesup"/>
						<case additional="seamark:topmark:shape=2 cones down" icon__1="seamark_topmark_oblique_black_2conesdown"/>
						<case additional="seamark:topmark:shape=2 spheres" icon__1="seamark_topmark_oblique_black_2spheres"/>
					</apply>
				</switch>

				<!-- INT-1 Q Section: Beacons -->
				<switch iconVisibleSize="9" intersectionSizeFactor="0.3" iconOrder="100" icon_shift_py="-0.8">
					<case minzoom="12" tag="seamark:type" value="beacon_lateral" icon="seamark_beacon_pile">
						<switch>
							<case additional="seamark:beacon_lateral:shape=stake" icon="seamark_beacon_stake"/>
							<case additional="seamark:beacon_lateral:shape=pole" icon="seamark_beacon_stake"/>
							<case additional="seamark:beacon_lateral:shape=post" icon="seamark_beacon_stake"/>
							<apply>
								<case additional="seamark:beacon_lateral:colour=red" icon="seamark_beacon_red_stake"/>
								<case additional="seamark:beacon_lateral:colour=green" icon="seamark_beacon_green_stake"/>
								<case additional="seamark:beacon_lateral:colour=white;red" icon="seamark_beacon_whitered_stake"/>
								<case additional="seamark:beacon_lateral:colour=red;white" icon="seamark_beacon_redwhite_stake"/>
								<case additional="seamark:beacon_lateral:colour=white;green" icon="seamark_beacon_whitegreen_stake"/>
								<case additional="seamark:beacon_lateral:colour=green;white" icon="seamark_beacon_greenwhite_stake"/>
								<case additional="seamark:beacon_lateral:colour=green;white;green;white" icon="seamark_beacon_greenwhitegreenwhite_stake"/>
							</apply>
						</switch>
						<case additional="seamark:beacon_lateral:shape=tower" icon="seamark_beacon_tower">
							<case additional="seamark:beacon_lateral:colour=red" icon="seamark_beacon_red_tower"/>
							<case additional="seamark:beacon_lateral:colour=green" icon="seamark_beacon_green_tower"/>
							<case additional="seamark:beacon_lateral:colour=white;red" icon="seamark_beacon_whitered_tower"/>
							<case additional="seamark:beacon_lateral:colour=red;white" icon="seamark_beacon_redwhite_tower"/>
							<case additional="seamark:beacon_lateral:colour=white;green" icon="seamark_beacon_whitegreen_tower"/>
							<case additional="seamark:beacon_lateral:colour=green;white" icon="seamark_beacon_greenwhite_tower"/>
							<case additional="seamark:beacon_lateral:colour=green;white;green;white" icon="seamark_beacon_greenwhitegreenwhite_tower"/>
						</case>
						<case additional="seamark:beacon_lateral:shape=pillar" icon="seamark_beacon_pillar">
							<case additional="seamark:beacon_lateral:colour=black" icon="seamark_beacon_black_pillar"/>
							<case additional="seamark:beacon_lateral:colour=green" icon="seamark_beacon_green_pillar"/>
							<case additional="seamark:beacon_lateral:colour=red" icon="seamark_beacon_red_pillar"/>
						</case>
						<case additional="seamark:beacon_lateral:shape=perch">
							<case additional="seamark:beacon_lateral:category=port" icon="seamark_beacon_perch_port">
								<case additional="seamark:beacon_lateral:colour=red" icon="seamark_beacon_red_perch_port"/>
								<case additional="seamark:beacon_lateral:colour=green" icon="seamark_beacon_green_perch_port"/>
							</case>
							<case additional="seamark:beacon_lateral:category=starboard" icon="seamark_beacon_perch_starboard">
								<case additional="seamark:beacon_lateral:colour=red" icon="seamark_beacon_red_perch_starboard"/>
								<case additional="seamark:beacon_lateral:colour=green" icon="seamark_beacon_green_perch_starboard"/>
							</case>
						</case>
						<case>
							<case additional="seamark:beacon_lateral:colour=red" icon="seamark_beacon_red_pillar"/>
							<case additional="seamark:beacon_lateral:colour=green" icon="seamark_beacon_green_pillar"/>
							<case additional="seamark:beacon_lateral:colour=white;red" icon="seamark_beacon_whitered_stake"/>
							<case additional="seamark:beacon_lateral:colour=red;white" icon="seamark_beacon_redwhite_stake"/>
							<case additional="seamark:beacon_lateral:colour=white;green" icon="seamark_beacon_whitegreen_stake"/>
							<case additional="seamark:beacon_lateral:colour=green;white" icon="seamark_beacon_greenwhite_stake"/>
							<case additional="seamark:beacon_lateral:colour=green;white;green;white" icon="seamark_beacon_greenwhitegreenwhite_stake"/>
							<case additional="seamark:beacon_lateral:colour=black" icon="seamark_beacon_black_pillar"/>
						</case>
					</case>
					<case minzoom="11" tag="seamark:type" value="beacon_cardinal" icon="seamark_beacon_pile">
						<case additional="seamark:beacon_cardinal:colour=yellow;black;yellow" icon="seamark_beacon_yellowblackyellow_stake">
							<case additional="seamark:beacon_cardinal:shape=tower" icon="seamark_beacon_yellowblackyellow_tower"/>
							<case additional="seamark:beacon_cardinal:shape=stake" icon="seamark_beacon_yellowblackyellow_stake"/>
						</case>
						<case additional="seamark:beacon_cardinal:colour=black;yellow;black" icon="seamark_beacon_blackyellowblack_stake">
							<case additional="seamark:beacon_cardinal:shape=tower" icon="seamark_beacon_blackyellowblack_tower"/>
							<case additional="seamark:beacon_cardinal:shape=stake" icon="seamark_beacon_blackyellowblack_stake"/>
						</case>
						<case additional="seamark:beacon_cardinal:colour=black;yellow" icon="seamark_beacon_blackyellow_stake">
							<case additional="seamark:beacon_cardinal:shape=tower" icon="seamark_beacon_blackyellow_tower"/>
							<case additional="seamark:beacon_cardinal:shape=stake" icon="seamark_beacon_blackyellow_stake"/>
						</case>
						<case additional="seamark:beacon_cardinal:colour=yellow;black" icon="seamark_beacon_yellowblack_stake">
							<case additional="seamark:beacon_cardinal:shape=tower" icon="seamark_beacon_yellowblack_tower"/>
							<case additional="seamark:beacon_cardinal:shape=stake" icon="seamark_beacon_yellowblack_stake"/>
						</case>
					</case>
					<case minzoom="10" tag="seamark:type" value="beacon_isolated_danger" icon="seamark_beacon_blackredblack_pile">
						<case additional="seamark:beacon_isolated_danger:colour=black;red;black">
							<case additional="seamark:beacon_isolated_danger:shape=tower" icon="seamark_beacon_blackredblack_tower"/>
							<case additional="seamark:beacon_isolated_danger:shape=stake" icon="seamark_beacon_blackredblack_stake"/>
							<case additional="seamark:beacon_isolated_danger:shape=pile" icon="seamark_beacon_blackredblack_pile"/>
						</case>
					</case>
					<case minzoom="9" tag="seamark:type" value="beacon_safe_water" icon="seamark_beacon_redwhite_pole_vertical">
						<case additional="seamark:beacon_safe_water:colour=red;white">
							<case additional="seamark:beacon_safe_water:colour_pattern=vertical">
								<case additional="seamark:beacon_safe_water:shape=tower" icon="seamark_beacon_redwhite_tower_vertical"/>
								<case additional="seamark:beacon_safe_water:shape=pole" icon="seamark_beacon_redwhite_pole_vertical"/>
							</case>
						</case>
					</case>
					<case minzoom="12" tag="seamark:type" value="beacon_special_purpose" icon="seamark_beacon_yellow_pile">
						<case additional="seamark:beacon_special_purpose:colour=yellow">
							<case additional="seamark:beacon_special_purpose:shape=stake" icon="seamark_beacon_yellow_stake"/>
							<case additional="seamark:beacon_special_purpose:shape=pile" icon="seamark_beacon_yellow_pile"/>
							<case additional="seamark:beacon_special_purpose:shape=tower" icon="seamark_beacon_yellow_tower"/>
						</case>
						<case additional="seamark:beacon_special_purpose:colour=white" icon="seamark_beacon_white_stake">
							<case additional="seamark:beacon_special_purpose:shape=stake" icon="seamark_beacon_white_stake"/>
							<case additional="seamark:beacon_special_purpose:shape=pile" icon="seamark_beacon_white_pile"/>
							<case additional="seamark:beacon_special_purpose:shape=tower" icon="seamark_beacon_white_tower"/>
						</case>
						<case additional="seamark:beacon_special_purpose:colour=white;red;white;orange" icon="seamark_beacon_whiteredwhiteorange_pile"/>
						<case additional="seamark:beacon_special_purpose:colour=black" icon="seamark_beacon_black_stake">
							<case additional="seamark:beacon_special_purpose:shape=stake" icon="seamark_beacon_stake"/>
							<case additional="seamark:beacon_special_purpose:shape=tower" icon="seamark_beacon_black_tower"/>
						</case>
						<case additional="seamark:beacon_special_purpose:shape=cairn" icon="seamark_beacon_cairn"/>
					</case>

					<case minzoom="10" tag="seamark:type" value="light_float" icon="seamark_light_float_red">
						<case additional="seamark:light_float:colour=red" icon="seamark_light_float_red"/>
						<case additional="seamark:light_float:colour=green" icon="seamark_light_float_green"/>
						<case additional="seamark:light_float:colour_pattern=vertical">
							<case additional="seamark:light_float:colour=red;white" icon="seamark_light_float_redwhite_vertical"/>
						</case>
					</case>
					<case minzoom="10" tag="seamark:type" value="light_vessel" icon="seamark_light_vessel"/>
					<apply>
						<case additional="seamark:topmark:shape=2 cones point together" icon__1="seamark_topmark_vertical_black_2conespointtogether"/>
						<case additional="seamark:topmark:shape=2 cones base together" icon__1="seamark_topmark_vertical_black_2conesbasetogether"/>
						<case additional="seamark:topmark:shape=2 cones up" icon__1="seamark_topmark_vertical_black_2conesup"/>
						<case additional="seamark:topmark:shape=2 cones down" icon__1="seamark_topmark_vertical_black_2conesdown"/>
						<case additional="seamark:topmark:shape=2 spheres" icon__1="seamark_topmark_vertical_black_2spheres"/>
						<case additional="seamark:topmark:shape=cylinder" icon__1="seamark_topmark_vertical_black_cylinder">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_vertical_red_cylinder"/>
							<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_vertical_green_cylinder"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_vertical_black_cylinder"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_vertical_yellow_cylinder"/>
							<case additional="seamark:topmark:colour=red;white;red" icon__1="seamark_topmark_vertical_redwhitered_cylinder"/>
						</case>
						<switch>
							<case additional="seamark:topmark:shape=square" icon__1="seamark_topmark_vertical_black_cylinder"/>
							<case additional="seamark:topmark:shape=board" icon__1="seamark_topmark_vertical_black_cylinder"/>
							<case additional="seamark:topmark:shape=rectangle" icon__1="seamark_topmark_vertical_redwhitered_board"/>
							<apply>
								<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_vertical_red_board"/>
								<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_vertical_green_board"/>
								<case additional="seamark:topmark:colour=red;white;red" icon__1="seamark_topmark_vertical_redwhitered_board"/>
								<case additional="seamark:topmark:colour=white;red">
									<case additional="seamark:topmark:colour_pattern=border" icon__1="seamark_topmark_vertical_whitered_board_border"/>
								</case>
								<case additional="seamark:topmark:colour=white;black">
									<case additional="seamark:topmark:colour_pattern=border" icon__1="seamark_topmark_vertical_whiteblack_board_border"/>
								</case>
							</apply>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone, point down" icon__1="seamark_topmark_vertical_black_conepointdown"/>
							<case additional="seamark:topmark:shape=triangle, point down" icon__1="seamark_topmark_vertical_black_conepointdown"/>
							<apply>
								<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_vertical_red_conepointdown"/>
								<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_vertical_green_conepointdown"/>
								<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_vertical_black_conepointdown"/>
								<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_vertical_yellow_conepointdown"/>
								<case additional="seamark:topmark:colour=red;white;red" icon__1="seamark_topmark_vertical_redwhitered_conepointdown"/>
								<case additional="seamark:topmark:colour=white;red" icon__1="seamark_topmark_vertical_whitered_conepointdown_border">
									<case additional="seamark:topmark:colour_pattern=border" icon__1="seamark_topmark_vertical_whitered_conepointdown_border"/>
								</case>
							</apply>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone" icon__1="seamark_topmark_vertical_black_conepointup"/>
							<case additional="seamark:topmark:shape=cone, point up" icon__1="seamark_topmark_vertical_black_conepointup"/>
							<case additional="seamark:topmark:shape=triangle, point up" icon__1="seamark_topmark_vertical_black_conepointup"/>
							<apply>
								<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_vertical_red_conepointup"/>
								<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_vertical_green_conepointup"/>
								<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_vertical_black_conepointup"/>
								<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_vertical_yellow_conepointup"/>
							</apply>
						</switch>
						<case additional="seamark:topmark:shape=rhombus" icon__1="seamark_topmark_vertical_black_rhombus">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_vertical_red_rhombus"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_vertical_black_rhombus"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_vertical_yellow_rhombus"/>
							<case additional="seamark:topmark:colour=green;white" icon__1="seamark_topmark_vertical_greenwhite_rhombus_vertical">
								<case additional="seamark:topmark:colour_pattern=vertical" icon__1="seamark_topmark_vertical_greenwhite_rhombus_vertical"/>
							</case>
							<case additional="seamark:topmark:colour=white;black;white" icon__1="seamark_topmark_vertical_whiteblackwhite_rhombus_vertical">
								<case additional="seamark:topmark:colour_pattern=vertical" icon__1="seamark_topmark_vertical_whiteblackwhite_rhombus_vertical"/>
							</case>
							<case additional="seamark:topmark:colour=white;green" icon__1="seamark_topmark_vertical_whitegreen_rhombus_border">
								<case additional="seamark:topmark:colour_pattern=border" icon__1="seamark_topmark_vertical_whitegreen_rhombus_border"/>
							</case>
						</case>

						<case additional="seamark:topmark:shape=sphere" icon__1="seamark_topmark_vertical_black_sphere">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_vertical_red_sphere"/>
							<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_vertical_green_sphere"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_vertical_black_sphere"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_vertical_yellow_sphere"/>
						</case>
						<case additional="seamark:topmark:shape=x-shape" icon__1="seamark_topmark_vertical_yellow_xshape">
							<case additional="seamark:topmark:colour=red" icon__1="seamark_topmark_vertical_red_xshape"/>
							<case additional="seamark:topmark:colour=green" icon__1="seamark_topmark_vertical_green_xshape"/>
							<case additional="seamark:topmark:colour=black" icon__1="seamark_topmark_vertical_black_xshape"/>
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_vertical_yellow_xshape"/>
						</case>
						<case additional="seamark:topmark:shape=cross" icon__1="seamark_topmark_vertical_yellow_cross">
							<case additional="seamark:topmark:colour=yellow" icon__1="seamark_topmark_vertical_yellow_cross"/>
						</case>
					</apply>
				</switch>
				<apply_if additional="seamark:fog_signal:category" icon_2="seamark_fog_signal_additional">
					<apply_if nightMode="true" icon_2="seamark_fog_signal_additional_night"/>
				</apply_if>
				<apply_if additional="seamark:fog_signal=yes" icon_2="seamark_fog_signal_additional">
						<apply_if nightMode="true" icon_2="seamark_fog_signal_additional_night"/>
				</apply_if>
				<apply_if additional="seamark:radar_reflector=yes" icon_3="seamark_radar_reflector_additional">
					<apply_if nightMode="true" icon_3="seamark_radar_reflector_additional_night"/>
				</apply_if>
				<apply_if additional="seamark:radar_transponder:category" icon_4="seamark_radar_transponder_additional">
					<apply_if nightMode="true" icon_4="seamark_radar_transponder_additional_night"/>
				</apply_if>
				<apply>
					<case additional="seamark:light:colour=white" shield="light_white_shield"/>
					<case additional="seamark:light:colour=red" shield="light_red_shield"/>
					<case additional="seamark:light:colour=green" shield="light_green_shield"/>
					<case additional="seamark:light:colour=yellow" shield="light_yellow_shield"/>
					<case additional="seamark:light:colour=blue" shield="light_blue_shield"/>
					<case additional="seamark:light:colour=orange" shield="light_orange_shield"/>
					<case additional="seamark:light:colour=white;green" shield="light_whitegreen_shield"/>
					<case additional="seamark:light:colour=red;green" shield="light_redgreen_shield"/>
					<case additional="seamark:light:colour=white;red" shield="light_whitered_shield"/>
					<case additional="seamark:light:colour=violet" shield="light_violet_shield"/>
				</apply>
				<apply_if hideNoLNAM="true">
					<case additional="seamark:lnam"/>
					<case disable="true"/>
				</apply_if>
				<apply_if additional="seamark:lnam" iconOrder="20">
					<case hideNoLNAM="false" showLNAMmarker="true" shield="white_blue_square_shield"/>
				</apply_if>
			</switch>
			<switch>
				<apply_if hideLightSectorSources="true" additional="lightsector=source" disable="true"/>
				<switch>
					<case minzoom="9" maxzoom="11" tag="seamark:type" value="light_major" icon="seamark_light_major_small" iconOrder="50">
						<case additional="lightsector=source" iconOrder="1" shield="light_violet_center_shield"/>
					</case>
				</switch>
				<switch>
					<case minzoom="12" tag="seamark:type" value="light_major" icon="seamark_light_major" iconOrder="50" iconVisibleSize="20" intersectionSizeFactor="0.7">
						<case additional="lightsector=source" iconOrder="1" shield="light_violet_center_shield"/>
					</case>
					<switch minzoom="11">
						<case tag="seamark:type" value="light_minor"/>
						<case tag="man_made" value="lighthouse"/>
						<apply icon="seamark_light_minor" iconVisibleSize="16" intersectionSizeFactor="0.6" iconOrder="55"/>
						<apply_if additional="lightsector=source" iconOrder="2" shield="light_violet_center_shield"/>
					</switch>
					<case minzoom="12" tag="seamark:type" value="fog_signal" icon="seamark_fog_signal" iconVisibleSize="16"
								intersectionSizeFactor="0.5" iconOrder="70" icon_2="seamark_fog_signal_additional_center_big"/>
					<case minzoom="12" tag="seamark:type" value="radar_transponder" icon="seamark_radar_transponder"
								iconVisibleSize="20" intersectionSizeFactor="0.6" iconOrder="71"/>
					<case minzoom="12" tag="seamark:type" value="signal_station_traffic" icon="seamark_radio_station"
								icon_5="seamark_signal_station_additional" iconVisibleSize="20" intersectionSizeFactor="0.6"
								iconOrder="71"/>
					<case minzoom="12" tag="seamark:type" value="signal_station_warning" icon="seamark_radio_station"
								icon_5="seamark_signal_station_additional" iconVisibleSize="20" intersectionSizeFactor="0.6"
								iconOrder="71"/>
					<case minzoom="12" tag="seamark:type" value="radio_station" icon="seamark_radio_station"
								icon_4="seamark_radar_transponder_additional_center_big" iconVisibleSize="20" intersectionSizeFactor="0.6"
								iconOrder="71">
						<apply_if nightMode="true" icon_4="seamark_radar_transponder_additional_center_big_night"/>
					</case>
					<case minzoom="12" tag="seamark:type" value="radar_station" icon="seamark_radio_station" icon_4="seamark_radar_station_additional" iconVisibleSize="20" intersectionSizeFactor="0.6" iconOrder="71">
						<apply_if nightMode="true" icon_4="seamark_radar_station_additional_night"/>
						<apply_if additional="seamark:radar_station:category=surveillance" icon_5="seamark_radar_station_surveillance_additional">
							<apply_if nightMode="true" icon_5="seamark_radar_station_surveillance_additional_night"/>
						</apply_if>
						<apply_if additional="seamark:radar_station:category=coast" icon_5="seamark_radar_station_coast_additional"/>
					</case>
					<case minzoom="11" maxzoom="13" tag="seamark:type" value="platform" icon="seamark_platform_small" iconVisibleSize="14" intersectionSizeFactor="0.9"/>
					<case minzoom="14" tag="seamark:type" value="platform" icon="seamark_platform" iconVisibleSize="20" intersectionSizeFactor="0.7" iconOrder="72">
						<apply_if additional="seamark:platform:category=production" icon_3="seamark_platform_production_additional"/>
						<apply_if additional="seamark:platform:category=oil" icon_3="seamark_platform_production_additional"/>
						<apply_if additional="seamark:platform:category=fpso" icon_3="seamark_platform_fpso_additional"/>
					</case>
					<apply>
						<case additional="seamark:topmark:shape=2 cones point together"
									icon__1="seamark_topmark_vertical_black_2conespointtogether_big"/>
						<case additional="seamark:topmark:shape=2 cones base together"
									icon__1="seamark_topmark_vertical_black_2conesbasetogether_big"/>
						<case additional="seamark:topmark:shape=2 cones up" icon__1="seamark_topmark_vertical_black_2conesup_big"/>
						<case additional="seamark:topmark:shape=2 cones down" icon__1="seamark_topmark_vertical_black_2conesdown_big"/>
						<case additional="seamark:topmark:shape=2 spheres" icon__1="seamark_topmark_vertical_black_2spheres_big"/>
						<switch>
							<case additional="seamark:topmark:shape=cylinder"/>
							<case additional="seamark:topmark:shape=square"/>
							<case additional="seamark:topmark:shape=board"/>
							<case additional="seamark:topmark:shape=rectangle"/>
							<apply icon__1="seamark_topmark_vertical_black_cylinder_big"/>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone, point down"/>
							<case additional="seamark:topmark:shape=triangle, point down"/>
							<apply icon__1="seamark_topmark_vertical_black_conepointdown_big"/>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone"/>
							<case additional="seamark:topmark:shape=cone, point up"/>
							<case additional="seamark:topmark:shape=triangle, point up"/>
							<apply icon__1="seamark_topmark_vertical_black_conepointup_big"/>
						</switch>
						<case additional="seamark:topmark:shape=rhombus" icon__1="seamark_topmark_vertical_black_rhombus_big"/>
						<case additional="seamark:topmark:shape=sphere" icon__1="seamark_topmark_vertical_black_sphere_big"/>
						<case additional="seamark:topmark:shape=x-shape" icon__1="seamark_topmark_vertical_yellow_xshape_big"/>
					</apply>
					<!-- INT-1 S Section: Radar, Radio -->
					<apply_if additional="seamark:radio_station:category" icon_4="seamark_radar_transponder_additional_center_big" iconVisibleSize="20" intersectionSizeFactor="0.6">
						<switch>
							<case additional="seamark:radio_station:category=ais"/>
							<case additional="seamark:radio_station:category=s-ais"/>
							<apply icon_5="seamark_radio_station_ais_additional"/>
						</switch>
						<switch>
							<case additional="seamark:radio_station:category=v-ais"/>
							<case additional="seamark:radio_station:category=v-ais_north_cardinal"/>
							<case additional="seamark:radio_station:category=v-ais_south_cardinal"/>
							<case additional="seamark:radio_station:category=v-ais_east_cardinal"/>
							<case additional="seamark:radio_station:category=v-ais_west_cardinal"/>
							<case additional="seamark:radio_station:category=v-ais_port_lateral"/>
							<case additional="seamark:radio_station:category=v-ais_starboard_lateral"/>
							<case additional="seamark:radio_station:category=v-ais_isolated_danger"/>
							<case additional="seamark:radio_station:category=v-ais_safe_water"/>
							<case additional="seamark:radio_station:category=v-ais_special_purpose"/>
							<apply icon_5="seamark_radio_station_vais_additional"/>
						</switch>
						<case additional="seamark:radio_station:category=omnidirectional" icon_5="seamark_radio_station_omnidirectional_additional"/>
						<case additional="seamark:radio_station:category=aeronautical" icon_5="seamark_radio_station_aeronautical_additional"/>
						<case additional="seamark:radio_station:category=dgps" icon_5="seamark_radio_station_dgps_additional"/>
						<apply_if nightMode="true" icon_4="seamark_radar_transponder_additional_center_big_night"/>
					</apply_if>
					<apply_if additional="seamark:fog_signal:category" icon_2="seamark_fog_signal_additional_center_big">
						<apply_if nightMode="true" icon_2="seamark_fog_signal_additional_center_big_night"/>
					</apply_if>
					<apply_if additional="seamark:fog_signal=yes" icon_2="seamark_fog_signal_additional_center_big">
						<apply_if nightMode="true" icon_2="seamark_fog_signal_additional_center_big_night"/>
					</apply_if>
					<apply_if additional="seamark:radar_reflector=yes" icon_3="seamark_radar_reflector_additional_center_big">
						<apply_if nightMode="true" icon_3="seamark_radar_reflector_additional_center_big_night"/>
					</apply_if>
					<apply_if additional="seamark:radar_transponder:category" icon_4="seamark_radar_transponder_additional_center_big">
						<apply_if nightMode="true" icon_4="seamark_radar_transponder_additional_center_big_night"/>
					</apply_if>
				</switch>
				<apply> <!-- INT-1 P Section: Lights -->
					<case additional="seamark:light:colour=white" shield="light_white_center_shield"/>
					<case additional="seamark:light:colour=red" shield="light_red_center_shield"/>
					<case additional="seamark:light:colour=green" shield="light_green_center_shield"/>
					<case additional="seamark:light:colour=yellow" shield="light_yellow_center_shield"/>
					<case additional="seamark:light:colour=blue" shield="light_blue_center_shield"/>
					<case additional="seamark:light:colour=orange" shield="light_orange_center_shield"/>
					<case additional="seamark:light:colour=white;green" shield="light_whitegreen_center_shield"/>
					<case additional="seamark:light:colour=yellow;green" shield="light_whitegreen_center_shield"/>
					<case additional="seamark:light:colour=red;green" shield="light_redgreen_center_shield"/>
					<case additional="seamark:light:colour=white;red" shield="light_whitered_center_shield"/>
					<case additional="seamark:light:colour=yellow;red" shield="light_whitered_center_shield"/>
					<case additional="seamark:light:colour=violet" shield="light_violet_center_shield"/>
				</apply>
				<apply_if hideNoLNAM="true">
					<case additional="seamark:lnam"/>
					<case disable="true"/>
				</apply_if>
				<apply>
					<case additional="lightsector=source"/>
					<case additional="seamark:lnam" iconOrder="20"/>
				</apply>
			</switch>
			<switch>
				<case minzoom="11" tag="seamark:type" value="landmark" icon="seamark_landmark_tower" iconOrder="58" icon_shift_py="-0.5">
					<case additional="seamark:landmark:function=mosque" icon="seamark_landmark_mosque"/>
					<case additional="seamark:landmark:category=tower" icon="seamark_landmark_tower">
						<case additional="seamark:landmark:function=church" icon="seamark_landmark_tower_church_additional" icon_2="seamark_landmark_church"/>
					</case>
					<case additional="seamark:landmark:category=minaret" icon="seamark_landmark_minaret"/>
					<case additional="seamark:landmark:category=statue" icon="seamark_landmark_statue"/>
					<case additional="seamark:landmark:category=spire" icon="seamark_landmark_spire_big">
						<case additional="seamark:landmark:function=church" icon="seamark_landmark_spire" icon_2="seamark_landmark_church"/>
					</case>
					<case additional="seamark:landmark:category=dome" icon="seamark_landmark_dome_big">
						<case additional="seamark:landmark:function=church" icon="seamark_landmark_dome" icon_2="seamark_landmark_church"/>
					</case>
					<switch>
						<case additional="seamark:landmark:function=church"/>
						<case additional="seamark:landmark:function=chapel"/>
						<apply icon="seamark_landmark_church"/>
					</switch>
					<case additional="seamark:landmark:category=windmotor" icon="seamark_landmark_windmotor"/>
					<case additional="seamark:landmark:category=mast" icon="seamark_landmark_mast">
						<switch>
							<case additional="seamark:landmark:function=communication"/>
							<case additional="seamark:landmark:function=radar"/>
							<case additional="seamark:landmark:function=radio"/>
							<case additional="seamark:landmark:function=television"/>
							<apply icon_2="seamark_landmark_communication_additional"/>
						</switch>
					</case>
					<case additional="seamark:landmark:category=radar_scanner" icon="seamark_landmark_mast" icon_2="seamark_landmark_communication_additional"/>
					<case additional="seamark:landmark:category=chimney" icon="seamark_landmark_chimney"/>
					<switch>
						<case additional="seamark:landmark:category=monument"/>
						<case additional="seamark:landmark:category=column"/>
						<case additional="seamark:landmark:category=obelisk"/>
						<apply icon="seamark_landmark_monument"/>
					</switch>
					<case additional="seamark:landmark:category=flagstaff" icon="seamark_landmark_flagstaff"/>
					<case additional="seamark:landmark:category=water_tower" icon="seamark_landmark_water_tower"/>
					<case additional="seamark:landmark:category=dish_aerial" icon="seamark_landmark_dish_aerial"/>
					<case additional="seamark:landmark:category=windsock" icon="seamark_landmark_windsock"/>
					<case additional="seamark:landmark:category=cemetery" icon="seamark_landmark_cemetery"/>
					<case additional="seamark:landmark:category=cross" icon="seamark_landmark_cross"/>
					<case additional="seamark:landmark:category=cairn" icon="seamark_landmark_cairn"/>
					<apply iconVisibleSize="13" intersectionSizeFactor="0.4"/>
				</case>
	<!--				<apply>
						<case additional="seamark:topmark:shape=2 cones point together" icon__1="seamark_topmark_vertical_black_2conespointtogether_big"/>
						<case additional="seamark:topmark:shape=2 cones base together" icon__1="seamark_topmark_vertical_black_2conesbasetogether_big"/>
						<case additional="seamark:topmark:shape=2 cones up" icon__1="seamark_topmark_vertical_black_2conesup_big"/>
						<case additional="seamark:topmark:shape=2 cones down" icon__1="seamark_topmark_vertical_black_2conesdown_big"/>
						<case additional="seamark:topmark:shape=2 spheres" icon__1="seamark_topmark_vertical_black_2spheres_big"/>
						<switch>
							<case additional="seamark:topmark:shape=cylinder"/>
							<case additional="seamark:topmark:shape=square"/>
							<case additional="seamark:topmark:shape=board"/>
							<case additional="seamark:topmark:shape=rectangle"/>
							<apply icon__1="seamark_topmark_vertical_black_cylinder_big"/>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone, point down"/>
							<case additional="seamark:topmark:shape=triangle, point down"/>
							<apply icon__1="seamark_topmark_vertical_black_conepointdown_big"/>
						</switch>
						<switch>
							<case additional="seamark:topmark:shape=cone"/>
							<case additional="seamark:topmark:shape=cone, point up"/>
							<case additional="seamark:topmark:shape=triangle, point up"/>
							<apply icon__1="seamark_topmark_vertical_black_conepointup_big"/>
						</switch>
						<case additional="seamark:topmark:shape=rhombus" icon__1="seamark_topmark_vertical_black_rhombus_big"/>
						<case additional="seamark:topmark:shape=sphere" icon__1="seamark_topmark_vertical_black_sphere_big"/>
						<case additional="seamark:topmark:shape=x-shape" icon__1="seamark_topmark_vertical_yellow_xshape_big"/>
					</apply>-->
				<apply_if additional="seamark:radio_station:category" icon_4="seamark_radar_transponder_additional_big" iconVisibleSize="20" intersectionSizeFactor="0.6">
					<switch>
						<case additional="seamark:radio_station:category=ais"/>
						<case additional="seamark:radio_station:category=s-ais"/>
						<apply icon_5="seamark_radio_station_ais_additional"/>
					</switch>
					<switch>
						<case additional="seamark:radio_station:category=v-ais"/>
						<case additional="seamark:radio_station:category=v-ais_north_cardinal"/>
						<case additional="seamark:radio_station:category=v-ais_south_cardinal"/>
						<case additional="seamark:radio_station:category=v-ais_east_cardinal"/>
						<case additional="seamark:radio_station:category=v-ais_west_cardinal"/>
						<case additional="seamark:radio_station:category=v-ais_port_lateral"/>
						<case additional="seamark:radio_station:category=v-ais_starboard_lateral"/>
						<case additional="seamark:radio_station:category=v-ais_isolated_danger"/>
						<case additional="seamark:radio_station:category=v-ais_safe_water"/>
						<case additional="seamark:radio_station:category=v-ais_special_purpose"/>
						<apply icon_5="seamark_radio_station_vais_additional"/>
					</switch>
					<case additional="seamark:radio_station:category=omnidirectional" icon_5="seamark_radio_station_omnidirectional_additional"/>
					<case additional="seamark:radio_station:category=aeronautical" icon_5="seamark_radio_station_aeronautical_additional"/>
					<case additional="seamark:radio_station:category=dgps" icon_5="seamark_radio_station_dgps_additional"/>
					<apply_if nightMode="true" icon_4="seamark_radar_transponder_additional_big_night"/>
				</apply_if>
				<apply_if additional="seamark:fog_signal:category" icon_2="seamark_fog_signal_additional_big">
					<apply_if nightMode="true" icon_2="seamark_fog_signal_additional_big_night"/>
				</apply_if>
				<apply_if additional="seamark:fog_signal=yes" icon_2="seamark_fog_signal_additional_big">
					<apply_if nightMode="true" icon_2="seamark_fog_signal_additional_big_night"/>
				</apply_if>
				<apply_if additional="seamark:radar_reflector=yes" icon_3="seamark_radar_reflector_additional_big">
					<apply_if nightMode="true" icon_3="seamark_radar_reflector_additional_big_night"/>
				</apply_if>
				<apply_if additional="seamark:radar_transponder:category" icon_4="seamark_radar_transponder_additional_big">
					<apply_if nightMode="true" icon_4="seamark_radar_transponder_additional_big_night"/>
				</apply_if>
				<apply>
					<case additional="seamark:light:colour=white" shield="light_white_shield"/>
					<case additional="seamark:light:colour=red" shield="light_red_shield"/>
					<case additional="seamark:light:colour=green" shield="light_green_shield"/>
					<case additional="seamark:light:colour=yellow" shield="light_yellow_shield"/>
					<case additional="seamark:light:colour=blue" shield="light_blue_shield"/>
					<case additional="seamark:light:colour=orange" shield="light_orange_shield"/>
					<case additional="seamark:light:colour=white;green" shield="light_whitegreen_shield"/>
					<case additional="seamark:light:colour=red;green" shield="light_redgreen_shield"/>
					<case additional="seamark:light:colour=white;red" shield="light_whitered_shield"/>
					<case additional="seamark:light:colour=violet" shield="light_violet_shield"/>
				</apply>
			</switch>

			<switch>
				<case minzoom="16" tag="seamark:type" value="mooring" iconOrder="156" iconVisibleSize="28" intersectionSizeFactor="0.8">
					<case additional="seamark:mooring:category=dolphin" icon="seamark_mooring_dolphin" iconVisibleSize="13" intersectionSizeFactor="0.4"/> <!-- add bw colour -->
					<case additional="seamark:mooring:category=deviation_dolphin" icon="seamark_mooring_deviationdolphin"/>
					<case additional="seamark:mooring:category=bollard" icon="seamark_mooring_bollard" iconVisibleSize="13" intersectionSizeFactor="0.4"/>
					<case additional="seamark:mooring:category=pile" icon="seamark_mooring_pile" iconVisibleSize="13" intersectionSizeFactor="0.4"/>
					<case additional="seamark:mooring:category=post" icon="seamark_mooring_pile"/>
					<case additional="seamark:mooring:category=wall" icon="seamark_mooring_wall"/>
					<case additional="seamark:mooring:category=pylon" icon="seamark_mooring_pylon"/>
					<case additional="seamark:mooring:category=buoy" icon="seamark_buoy_spherical" icon_shift_py="-0.8">
						<case additional="seamark:mooring:colour=yellow" icon="seamark_buoy_yellow_spherical">
							<case additional="seamark:mooring:shape=can" icon="seamark_buoy_yellow_can"/>
							<case additional="seamark:mooring:shape=conical" icon="seamark_buoy_yellow_conical"/>
							<case additional="seamark:mooring:shape=spherical" icon="seamark_buoy_yellow_spherical"/>
							<case additional="seamark:mooring:shape=barrel" icon="seamark_buoy_yellow_barrel"/>
						</case>
						<case additional="seamark:mooring:colour=white" icon="seamark_buoy_white_spherical">
							<case additional="seamark:mooring:shape=can" icon="seamark_buoy_white_can"/>
							<case additional="seamark:mooring:shape=conical" icon="seamark_buoy_white_conical"/>
							<case additional="seamark:mooring:shape=spherical" icon="seamark_buoy_white_spherical"/>
							<case additional="seamark:mooring:shape=barrel" icon="seamark_buoy_white_barrel"/>
						</case>
						<case additional="seamark:mooring:colour=red" icon="seamark_buoy_red_spherical">
							<case additional="seamark:mooring:shape=can" icon="seamark_buoy_red_can"/>
							<case additional="seamark:mooring:shape=conical" icon="seamark_buoy_red_conical"/>
							<case additional="seamark:mooring:shape=spherical" icon="seamark_buoy_red_spherical"/>
							<case additional="seamark:mooring:shape=barrel" icon="seamark_buoy_red_barrel"/>
						</case>
						<case additional="seamark:mooring:colour=orange" icon="seamark_buoy_orange_spherical"/>
						<apply icon__1="seamark_mooring_additional_for_buoy"/>
					</case>
				</case>
			</switch>
			<case minzoom="16" tag="seamark:type" value="pile" icon="seamark_mooring_pile" iconVisibleSize="13" intersectionSizeFactor="0.4" iconOrder="156"/>

			<switch minzoom="16" tag="seamark:type" value="notice" iconOrder="151" iconVisibleSize="26" intersectionSizeFactor="0.7">
				<switch>    <!--  prohibition -->
					<case additional="seamark:notice:category=no_entry" icon="seamark_notice_prohibition_noentry"/>
					<case additional="seamark:notice:category=closed_area" icon="seamark_notice_prohibition_closedarea"/>
					<case additional="seamark:notice:category=no_passage_left" icon="seamark_notice_prohibition_nopassageleft"/>
					<case additional="seamark:notice:category=no_passage_right" icon="seamark_notice_prohibition_nopassageright"/>
					<switch>
						<case additional="seamark:notice:category=no_overtaking" icon="seamark_notice_prohibition_noovertaking"/>
						<case additional="seamark:notice:category=no_convoy_overtaking" icon="seamark_notice_prohibition_noconvoyovertaking"/>
						<case additional="seamark:notice:category=no_passing" icon="seamark_notice_prohibition_nopassing"/>
						<case additional="seamark:notice:category=no_convoy_passing" icon="seamark_notice_prohibition_noconvoypassing"/>
						<case additional="seamark:notice:category=no_berthing" icon="seamark_notice_prohibition_noberthing"/>
						<case additional="seamark:notice:category=no_berthing_lateral_limit" icon="seamark_notice_prohibition_noberthing"/> <!-- This is simplification. However this tag is not widely used -->
						<case additional="seamark:notice:category=no_anchoring" icon="seamark_notice_prohibition_noanchoring"/>
						<case additional="seamark:notice:category=no_mooring" icon="seamark_notice_prohibition_nomooring"/>
						<case additional="seamark:notice:category=no_turning" icon="seamark_notice_prohibition_noturning"/>
						<case additional="seamark:notice:category=no_wash" icon="seamark_notice_prohibition_nowash"/>
						<case additional="seamark:notice:category=no_motor_craft" icon="seamark_notice_prohibition_nomotorcraft"/>
						<switch>
							<case additional="seamark:notice:category=no_sport_craft"/>
							<case additional="seamark:notice:category=no_sports_craft"/>
							<apply icon="seamark_notice_prohibition_nosportcraft"/>
						</switch>
						<case additional="seamark:notice:category=no_waterskiing" icon="seamark_notice_prohibition_nowaterskiing"/>
						<case additional="seamark:notice:category=no_sailing_craft" icon="seamark_notice_prohibition_nosailingcraft"/>
						<case additional="seamark:notice:category=no_unpowered_craft" icon="seamark_notice_prohibition_nounpoweredcraft"/>
						<case additional="seamark:notice:category=no_sailboards" icon="seamark_notice_prohibition_nosailboards"/>
						<case additional="seamark:notice:category=no_high_speeds" icon="seamark_notice_prohibition_nohighspeeds"/>
						<case additional="seamark:notice:category=no_launching_beaching" icon="seamark_notice_prohibition_nolaunchingbeaching"/>
						<case additional="seamark:notice:category=no_waterbikes" icon="seamark_notice_prohibition_nowaterbikes"/>
						<apply icon__1="seamark_notice_prohibition_bg">
							<apply_if nightMode="true" icon__1="seamark_notice_prohibition_bg_night"/>
						</apply>
						<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_prohibition_bg_plus">
							<apply_if nightMode="true" icon__1="seamark_notice_prohibition_bg_plus_night"/>
						</apply_if>
					</switch>
				</switch>
				<switch iconOrder="152"> <!--  regulation -->
					<switch>
						<case additional="seamark:notice:category=move_to_left" icon="seamark_notice_regulation_movetoleft"/>
						<case additional="seamark:notice:category=move_to_right" icon="seamark_notice_regulation_movetoright"/>
						<case additional="seamark:notice:category=move_to_port" icon="seamark_notice_regulation_movetoport"/>
						<case additional="seamark:notice:category=move_to_starboard" icon="seamark_notice_regulation_movetostarboard"/>
						<case additional="seamark:notice:category=keep_to_port" icon="seamark_notice_regulation_keeptoport"/>
						<case additional="seamark:notice:category=keep_to_starboard" icon="seamark_notice_regulation_keeptostarboard"/>
						<case additional="seamark:notice:category=cross_to_port" icon="seamark_notice_regulation_crosstoport"/>
						<case additional="seamark:notice:category=cross_to_starboard" icon="seamark_notice_regulation_crosstostarboard"/>
						<case additional="seamark:notice:category=stop" icon="seamark_notice_regulation_stop"/>
						<case additional="seamark:notice:category=speed_limit" icon="seamark_notice_regulation_speedlimit" iconOrder="150"/>
						<case additional="seamark:notice:category=sound_horn" icon="seamark_notice_regulation_soundhorn"/>
						<case additional="seamark:notice:category=keep_lookout" icon="seamark_notice_regulation_keeplookout"/>
						<case additional="seamark:notice:category=give_way_junction" icon="seamark_notice_regulation_givewayjunction"/>
						<case additional="seamark:notice:category=give_way_crossing" icon="seamark_notice_regulation_givewaycrossing"/>
						<case additional="seamark:notice:category=make_radio_contact" icon="seamark_notice_regulation_makeradiocontact"/>
						<apply icon__1="seamark_notice_regulation_bg">
							<apply_if nightMode="true" icon__1="seamark_notice_regulation_bg_night"/>
						</apply>
						<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_regulation_bg_plus">
							<apply_if nightMode="true" icon__1="seamark_notice_regulation_bg_plus_night"/>
						</apply_if>
					</switch>
				</switch>
				<switch iconOrder="153">  <!-- restriction -->
					<switch>
						<case additional="seamark:notice:category=limited_depth" icon="seamark_notice_restriction_limiteddepth"/>
						<case additional="seamark:notice:category=limited_headroom" icon="seamark_notice_restriction_limitedheadroom"/>
						<case additional="seamark:notice:category=limited_width" icon="seamark_notice_restriction_limitedwidth"/>
						<case additional="seamark:notice:category=channel_distance_left" icon="seamark_notice_restriction_channeldistanceleft"/>
						<case additional="seamark:notice:category=channel_distance_right" icon="seamark_notice_restriction_channeldistanceright"/>
						<apply icon__1="seamark_notice_regulation_bg">
							<apply_if nightMode="true" icon__1="seamark_notice_regulation_bg_night"/>
						</apply>
						<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_regulation_bg_plus">
							<apply_if nightMode="true" icon__1="seamark_notice_regulation_bg_plus_night"/>
						</apply_if>
					</switch>
				</switch>
				<switch iconOrder="154">   <!-- recommendation -->
					<case additional="seamark:notice:category=channel_two_way" icon="seamark_notice_recommendation_channeltwoway"/>
					<case additional="seamark:notice:category=channel_one_way" icon="seamark_notice_recommendation_channeloneway"/>
					<case additional="seamark:notice:category=opening_to_right" icon="seamark_notice_recommendation_openingtoright"/>
					<case additional="seamark:notice:category=opening_to_left" icon="seamark_notice_recommendation_openingtoleft"/>
					<switch>
						<case additional="seamark:notice:category=proceed_to_left" icon="seamark_notice_recommendation_proceedtoleft"/>
						<case additional="seamark:notice:category=proceed_to_right" icon="seamark_notice_recommendation_proceedtoright"/>
						<apply icon__1="seamark_notice_information_bg"/>
						<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_information_bg_plus"/>
					</switch>
				</switch>
				<switch iconOrder="155">  <!-- information -->
					<case additional="seamark:notice:category=entry_permitted" icon="seamark_notice_information_entrypermitted"/>
					<switch>
						<case additional="seamark:notice:category=overhead_cable" icon="seamark_notice_information_overheadcable"/>
						<case additional="seamark:notice:category=weir" icon="seamark_notice_information_weir"/>
						<case additional="seamark:notice:category=ferry_non_independent" icon="seamark_notice_information_ferrynonindependent"/>
						<case additional="seamark:notice:category=ferry_independent" icon="seamark_notice_information_ferryindependent"/>
						<case additional="seamark:notice:category=berthing_permitted" icon="seamark_notice_information_berthingpermitted"/>
						<case additional="seamark:notice:category=berthing_unmarked_pushing" icon="seamark_notice_information_berthingunmarkedpushing"/>
						<case additional="seamark:notice:category=berthing_marked_pushing_1" icon="seamark_notice_information_berthingmarkedpushing1"/>
						<case additional="seamark:notice:category=berthing_marked_pushing_2" icon="seamark_notice_information_berthingmarkedpushing2"/>
						<case additional="seamark:notice:category=berthing_marked_pushing_3" icon="seamark_notice_information_berthingmarkedpushing3"/>
						<case additional="seamark:notice:category=berthing_unmarked_non_pushing" icon="seamark_notice_information_berthingunmarkednonpushing"/>
						<case additional="seamark:notice:category=berthing_marked_non_pushing_1" icon="seamark_notice_information_berthingmarkednonpushing1"/>
						<case additional="seamark:notice:category=berthing_marked_non_pushing_2" icon="seamark_notice_information_berthingmarkednonpushing2"/>
						<case additional="seamark:notice:category=berthing_marked_non_pushing_3" icon="seamark_notice_information_berthingmarkednonpushing3"/>
						<case additional="seamark:notice:category=berthing_unmarked" icon="seamark_notice_information_berthingunmarked"/>
						<case additional="seamark:notice:category=berthing_marked_1" icon="seamark_notice_information_berthingmarked1"/>
						<case additional="seamark:notice:category=berthing_marked_2" icon="seamark_notice_information_berthingmarked2"/>
						<case additional="seamark:notice:category=berthing_marked_3" icon="seamark_notice_information_berthingmarked3"/>
						<case additional="seamark:notice:category=anchoring_permitted" icon="seamark_notice_information_anchoringpermitted"/>
						<case additional="seamark:notice:category=mooring_permitted" icon="seamark_notice_information_mooringpermitted"/>
						<case additional="seamark:notice:category=vehicle_loading_berth" icon="seamark_notice_information_vehicleloadingberth"/>
						<case additional="seamark:notice:category=turning_area" icon="seamark_notice_information_turningarea"/>
						<case additional="seamark:notice:category=secondary_waterway_crossing" icon="seamark_notice_information_secondarywaterwaycrossing"/>
						<case additional="seamark:notice:category=secondary_waterway_right" icon="seamark_notice_information_secondarywaterwayright"/>
						<case additional="seamark:notice:category=secondary_waterway_left" icon="seamark_notice_information_secondarywaterwayleft"/>
						<case additional="seamark:notice:category=main_waterway_right_secondary_ahead" icon="seamark_notice_information_mainwaterwayrightsecondaryahead"/>
						<case additional="seamark:notice:category=main_waterway_left_secondary_ahead" icon="seamark_notice_information_mainwaterwayleftsecondaryahead"/>
						<case additional="seamark:notice:category=main_waterway_right_secondary_left" icon="seamark_notice_information_mainwaterwayrightsecondaryleft"/>
						<case additional="seamark:notice:category=main_waterway_left_secondary_right" icon="seamark_notice_information_mainwaterwayleftsecondaryright"/>
						<case additional="seamark:notice:category=main_waterway_right_secondary_ahead_left" icon="seamark_notice_information_mainwaterwayrightsecondaryaheadleft"/>
						<case additional="seamark:notice:category=main_waterway_left_secondary_ahead_right" icon="seamark_notice_information_mainwaterwayleftsecondaryaheadright"/>
						<case additional="seamark:notice:category=main_waterway_crossing" icon="seamark_notice_information_mainwaterwaycrossing"/>
						<case additional="seamark:notice:category=main_waterway_junction" icon="seamark_notice_information_mainwaterwayjunction"/>
						<case additional="seamark:notice:category=main_waterway_ahead_right" icon="seamark_notice_information_mainwaterwayaheadright"/>
						<case additional="seamark:notice:category=main_waterway_ahead_left" icon="seamark_notice_information_mainwaterwayaheadleft"/>
						<case additional="seamark:notice:category=main_waterway_ahead_right_secondary_left" icon="seamark_notice_information_mainwaterwayaheadrightsecondaryleft"/>
						<case additional="seamark:notice:category=main_waterway_ahead_left_secondary_right" icon="seamark_notice_information_mainwaterwayaheadleftsecondaryright"/>
						<case additional="seamark:notice:category=prohibition_ends" icon="seamark_notice_information_prohibitionends"/>
						<case additional="seamark:notice:category=drinking_water" icon="seamark_notice_information_drinkingwater"/>
						<case additional="seamark:notice:category=telephone" icon="seamark_notice_information_telephone"/>
						<case additional="seamark:notice:category=motor_craft_permitted" icon="seamark_notice_information_motorcraftpermitted"/>
						<case additional="seamark:notice:category=sport_craft_permitted" icon="seamark_notice_information_sportcraftpermitted"/>
						<case additional="seamark:notice:category=waterskiing_permitted" icon="seamark_notice_information_waterskiingpermitted"/>
						<case additional="seamark:notice:category=sailing_craft_permitted" icon="seamark_notice_information_sailingcraftpermitted"/>
						<case additional="seamark:notice:category=unpowered_craft_permitted" icon="seamark_notice_information_unpoweredcraftpermitted"/>
						<case additional="seamark:notice:category=sailboards_permitted" icon="seamark_notice_information_sailboardspermitted"/>
						<case additional="seamark:notice:category=high_speeds_permitted" icon="seamark_notice_information_highspeedspermitted"/>
						<case additional="seamark:notice:category=launching_beaching_permitted" icon="seamark_notice_information_launchingbeachingpermitted"/>
						<case additional="seamark:notice:category=radio_information" icon="seamark_notice_information_radioinformation"/>
						<case additional="seamark:notice:category=waterbikes_permitted" icon="seamark_notice_information_waterbikespermitted"/>
						<apply icon__1="seamark_notice_information_bg"/>
						<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_information_bg_plus"/>
					</switch>
				</switch>
				<!-- when no category is found use background from seamark:notice:function -->
				<case additional="seamark:notice:function=prohibition" icon="seamark_notice_prohibition_bg">
					<apply_if nightMode="true" icon="seamark_notice_prohibition_bg_night"/>
					<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_prohibition_bg_plus">
						<apply_if nightMode="true" icon__1="seamark_notice_prohibition_bg_plus_night"/>
					</apply_if>
				</case>
				<switch>
					<case additional="seamark:notice:function=regulation"/>
					<case additional="seamark:notice:function=restriction"/>
					<apply icon="seamark_notice_regulation_bg">
						<apply_if nightMode="true" icon="seamark_notice_regulation_bg_night"/>
					</apply>
					<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_regulation_bg_plus">
						<apply_if nightMode="true" icon__1="seamark_notice_regulation_bg_plus_night"/>
					</apply_if>
				</switch>
				<case additional="seamark:notice:function=information" icon="seamark_notice_information_bg">
					<apply_if additional="seamark:notice:2:function" icon__1="seamark_notice_information_bg_plus"/>
				</case>

				<apply>
					<case additional="seamark:notice:addition=left_board" icon_2="seamark_notice_addition_leftboard"/>
					<case additional="seamark:notice:addition=left_triangle" icon_2="seamark_notice_addition_lefttriangle"/>
					<case additional="seamark:notice:addition=top_board" icon_2="seamark_notice_addition_topboard"/>
					<case additional="seamark:notice:addition=top_triangle" icon_2="seamark_notice_addition_toptriangle"/>
					<case additional="seamark:notice:addition=right_board" icon_2="seamark_notice_addition_rightboard"/>
					<case additional="seamark:notice:addition=right_triangle" icon_2="seamark_notice_addition_righttriangle"/>
					<case additional="seamark:notice:addition=bottom_board" icon_2="seamark_notice_addition_bottomboard"/>
					<case additional="seamark:notice:addition=bottom_triangle" icon_2="seamark_notice_addition_bottomtriangle"/>
					<switch>
						<case additional="seamark:notice:addition=left_triangle;bottom_board"/>
						<case additional="seamark:notice:addition=bottom_board;left_triangle"/>
						<apply icon_4="seamark_notice_addition_bottomboard" icon_2="seamark_notice_addition_lefttriangle"/>
					</switch>
					<switch>
						<case additional="seamark:notice:addition=bottom_board;right_triangle"/>
						<case additional="seamark:notice:addition=right_triangle;bottom_board"/>
						<apply icon_3="seamark_notice_addition_righttriangle" icon_4="seamark_notice_addition_bottomboard"/>
					</switch>
					<switch>
						<case additional="seamark:notice:addition=right_triangle;left_triangle"/>
						<case additional="seamark:notice:addition=left_triangle;right_triangle"/>
						<apply icon_3="seamark_notice_addition_righttriangle" icon_2="seamark_notice_addition_lefttriangle"/>
					</switch>
					<switch>
						<case additional="seamark:notice:addition=bottom_board;right_triangle;left_triangle"/>
						<case additional="seamark:notice:addition=right_triangle;left_triangle;bottom_board"/>
						<apply icon_3="seamark_notice_addition_righttriangle" icon_4="seamark_notice_addition_bottomboard" icon_2="seamark_notice_addition_lefttriangle"/>
					</switch>
					<switch>
						<case additional="seamark:notice:addition=top_board;bottom_board"/>
						<case additional="seamark:notice:addition=top_board;bottom_board"/>
						<apply icon_2="seamark_notice_addition_topboard" icon_3="seamark_notice_addition_bottomboard"/>
					</switch>
					<switch>
						<case additional="seamark:notice:addition=right_triangle;top_board"/>
						<case additional="seamark:notice:addition=top_board;right_triangle"/>
						<apply icon_2="seamark_notice_addition_topboard" icon_3="seamark_notice_addition_righttriangle"/>
					</switch>
					<switch>
						<case additional="seamark:notice:addition=left_triangle;top_board"/>
						<case additional="seamark:notice:addition=top_board;left_triangle"/>
						<apply icon_2="seamark_notice_addition_topboard" icon_3="seamark_notice_addition_lefttriangle"/>
					</switch>
				</apply>
				<apply>
					<switch>
						<case additional="seamark:notice:orientation">
							<case additional="seamark:notice:orientation=0.0" icon_5="seamark_notice_orientation_0"/>
							<case additional="seamark:notice:orientation=45.0" icon_5="seamark_notice_orientation_45"/>
							<case additional="seamark:notice:orientation=90.0" icon_5="seamark_notice_orientation_90"/>
							<case additional="seamark:notice:orientation=135.0" icon_5="seamark_notice_orientation_135"/>
							<case additional="seamark:notice:orientation=180.0" icon_5="seamark_notice_orientation_180"/>
							<case additional="seamark:notice:orientation=225.0" icon_5="seamark_notice_orientation_225"/>
							<case additional="seamark:notice:orientation=270.0" icon_5="seamark_notice_orientation_270"/>
							<case additional="seamark:notice:orientation=315.0" icon_5="seamark_notice_orientation_315"/>
						</case>
						<case additional="seamark:notice:impact">
							<case additional="seamark:notice:impact=upstream" icon_5="seamark_notice_impact_upstream"/>
							<case additional="seamark:notice:impact=downstream" icon_5="seamark_notice_impact_downstream"/>
							<case additional="seamark:notice:impact=upstream;downstream" icon_5="seamark_notice_impact_upstreamdownstream"/>
							<case additional="seamark:notice:impact=right_bank" icon_5="seamark_notice_impact_rightbank"/>
							<case additional="seamark:notice:impact=left_bank" icon_5="seamark_notice_impact_leftbank"/>
							<case additional="seamark:notice:impact=upstream;downstream;left_bank" icon_5="seamark_notice_impact_upstreamdownstreamleftbank"/>
							<case additional="seamark:notice:impact=upstream;downstream;right_bank" icon_5="seamark_notice_impact_upstreamdownstreamrightbank"/>
							<case additional="seamark:notice:impact=bank_to_bank" icon_5="seamark_notice_impact_banktobank"/>
							<case additional="seamark:notice:impact=left_bank;right_bank" icon_5="seamark_notice_impact_banktobank"/>
							<case additional="seamark:notice:impact=downstream;left_bank" icon_5="seamark_notice_impact_downstreamleftbank"/>
						</case>
					</switch>
				</apply>
			</switch>

			<case minzoom="14" tag="leisure" value="marina" icon="seamark_harbour_marina" iconOrder="5"
						iconVisibleSize="15" intersectionSizeFactor="0.8">
				<apply_if nightMode="true" shield="seamark_harbour_default_small_night_shield"/>
			</case>

			<case minzoom="9" tag="seamark:type" value="harbour" icon="seamark_harbour_default" iconOrder="52">
				<case maxzoom="10" icon="seamark_harbour_default_small" iconVisibleSize="20" intersectionSizeFactor="0.8">
					<apply_if nightMode="true" shield="seamark_harbour_default_small_night_shield"/>
				</case>
				<switch>
					<case additional="seamark:harbour:category=marina" icon="seamark_harbour_marina"/>
					<case additional="seamark:harbour:category=fishing" icon="seamark_harbour_fishing"/>
					<case additional="seamark:harbour:category=shipyard" icon="seamark_harbour_shipyard"/>
					<switch>
						<case additional="seamark:harbour:category=container"/>
						<case additional="seamark:harbour:category=bulk"/>
						<case additional="seamark:harbour:category=tanker"/>
						<case additional="seamark:harbour:category=timber"/>
						<case additional="seamark:harbour:category=cargo"/>
						<case additional="seamark:harbour:category=container;bulk"/>
						<apply icon="seamark_harbour_container"/>
					</switch>
					<switch>
						<case additional="seamark:harbour:category=ferry"/>
						<case additional="seamark:harbour:category=passenger"/>
						<apply icon="seamark_harbour_ferry"/>
					</switch>
					<apply shield="seamark_harbour_shield">
						<apply_if nightMode="true" shield="seamark_harbour_night_shield"/>
					</apply>
				</switch>
				<switch>
					<case additional="seamark:harbour:category=marina_no_facilities" icon="seamark_harbour_marina">
						<apply_if nightMode="true" shield="seamark_harbour_marina_nofacilities_night_shield"/>
					</case>
				</switch>
				<case shield="seamark_harbour_shield">
					<apply_if nightMode="true" shield="seamark_harbour_night_shield"/>
				</case>
				<apply_if minzoom="11" iconOrder="5"/>
			</case>

			<switch minzoom="12">
				<case tag="seamark:type" value="anchorage"/>
				<apply icon="seamark_anchorage">
					<case additional="seamark:anchorage:category=small_craft" icon="seamark_anchorage_small_craft"/>
					<case additional="seamark:anchorage:category=tanker" icon="seamark_anchorage_tanker"/>
				</apply>
			</switch>

			<case minzoom="12" tag="seamark:type" value="anchor_berth" icon="seamark_anchor_berth"/>
			<case minzoom="15" tag="seamark:type" value="berth" icon="seamark_berth"/>

			<switch minzoom="11" iconVisibleSize="27" intersectionSizeFactor="0.8" iconOrder="70">
				<case tag="waterway" value="lock_gate"/>
				<case tag="seamark:type" value="gate" additional="seamark:gate:category=lock"/>
				<apply icon="seamark_lock_gate" shield="seamark_white_black_round_shield"/>
			</switch>
			<case minzoom="12" tag="seamark:type" value="gate" icon="seamark_gate" shield="seamark_white_black_round_shield"/>

			<case minzoom="15" tag="seamark:type" value="bridge" icon="seamark_bridge" iconOrder="69">
<!--				<case additional="seamark:bridge:category=fixed" icon="seamark_bridge_fixed"/>
				<case additional="seamark:bridge:category=opening" icon="seamark_bridge_opening"/>
				<case additional="seamark:bridge:category=lifting" icon="seamark_bridge_lifting"/>
				<case additional="seamark:bridge:category=bascule" icon="seamark_bridge_opening"/>
				<case additional="seamark:bridge:category=suspension" icon="seamark_bridge_suspension"/>-->
				<apply shield="seamark_white_black_round_shield"/>
			</case>

			<case minzoom="16" tag="seamark:type" value="building" icon="seamark_building" iconVisibleSize="20" intersectionSizeFactor="0.7">
				<case additional="seamark:building:function=harbour_master" icon="seamark_building_harbour_master"/>
				<case additional="seamark:building:function=church" icon="seamark_building_church"/>
				<case additional="seamark:building:function=customs" icon="seamark_building_customs"/>
				<case additional="seamark:building:function=water-police_station" icon="seamark_building_water_police_station"/>
			</case>

			<case minzoom="12" tag="seamark:type" value="berth" icon="seamark_berth"/>

			<switch minzoom="16" tag="seamark:type" value="small_craft_facility" iconVisibleSize="20" intersectionSizeFactor="0.4">
				<switch>
					<case additional="seamark:small_craft_facility:category=boat_hoist" icon="seamark_small_craft_facility_boat_hoist"/>
					<case additional="seamark:small_craft_facility:category=boatyard" icon="seamark_small_craft_facility_boatyard"/>
					<case additional="seamark:small_craft_facility:category=chandler" icon="seamark_small_craft_facility_chandler"/>
					<case additional="seamark:small_craft_facility:category=electricity" icon="seamark_small_craft_facility_electricity"/>
					<switch>
						<case additional="seamark:small_craft_facility:category=fuel_station"/>
						<case additional="seamark:small_craft_facility:category=fuel"/>
						<apply icon="seamark_small_craft_facility_fuel_station"/>
					</switch>
					<case additional="seamark:small_craft_facility:category=laundrette" icon="seamark_small_craft_facility_laundrette"/>
					<case additional="seamark:small_craft_facility:category=nautical_club" icon="seamark_small_craft_facility_nautical_club"/>
					<case additional="seamark:small_craft_facility:category=public_inn" icon="seamark_small_craft_facility_public_inn"/>
					<case additional="seamark:small_craft_facility:category=pump-out" icon="seamark_small_craft_facility_pump_out"/>
					<case additional="seamark:small_craft_facility:category=restaurant" icon="seamark_small_craft_facility_restaurant"/>
					<case additional="seamark:small_craft_facility:category=showers" icon="seamark_small_craft_facility_showers"/>
					<case additional="seamark:small_craft_facility:category=slipway" icon="seamark_small_craft_facility_slipway"/>
					<case additional="seamark:small_craft_facility:category=toilets" icon="seamark_small_craft_facility_toilets"/>
					<case additional="seamark:small_craft_facility:category=water_tap" icon="seamark_small_craft_facility_water_tap"/>
					<switch>
						<case additional="seamark:small_craft_facility:category=fuel_station;pump-out" icon="seamark_small_craft_facility_fuel_station" icon_3="seamark_small_craft_facility_pump_out2"/>
						<case additional="seamark:small_craft_facility:category=showers;toilets;laundrette" icon="seamark_small_craft_facility_showers" icon_3="seamark_small_craft_facility_toilets2"/>
						<apply icon_2="seamark_small_craft_facility_shield2"/>
					</switch>
					<apply shield="seamark_small_craft_facility_shield"/>
					<apply>
						<switch>
							<case additional="seamark:small_craft_facility:2:category=pump-out" icon_3="seamark_small_craft_facility_pump_out2"/>
							<case additional="seamark:small_craft_facility:2:category=toilets" icon_3="seamark_small_craft_facility_toilets2"/>
							<apply icon_2="seamark_small_craft_facility_shield2"/>
						</switch>
					</apply>
				</switch>
				<case additional="seamark:small_craft_facility:category=visitor_berth" icon="seamark_small_craft_facility_visitor_berth"/>
				<case additional="seamark:small_craft_facility:category=visitors_mooring" icon="seamark_small_craft_facility_visitors_mooring" icon_shift_py="-0.5"/>
			</switch>

			<case minzoom="16" tag="leisure" value="slipway" icon="seamark_small_craft_facility_slipway" shield="seamark_small_craft_facility_shield"/>

			<case minzoom="12" tag="seamark:type" value="production_area" iconVisibleSize="32" intersectionSizeFactor="0.5">
				<case additional="seamark:production_area:category=wind_farm" icon="seamark_landmark_windmotor" icon_shift_py="-0.5"/>
			</case>

			<switch minzoom="13" tag="seamark:type" value="precautionary_area" iconVisibleSize="32" intersectionSizeFactor="0.5">
				<switch>
					<case additional="seamark:precautionary_area:restriction=no_fishing" icon="seamark_restriction_fishing"/>
					<case additional="seamark:precautionary_area:restriction=no_anchoring" icon="seamark_notice_prohibition_noanchoring"/>
					<apply icon__1="seamark_notice_prohibition_bg">
						<apply_if nightMode="true" icon__1="seamark_notice_prohibition_bg_night"/>
					</apply>
				</switch>
				<switch>
					<case additional="seamark:precautionary_area:restriction=restricted_fishing" icon="seamark_restriction_fishing"/>
					<apply icon__1="seamark_notice_regulation_bg">
						<apply_if nightMode="true" icon__1="seamark_notice_regulation_bg_night"/>
					</apply>
				</switch>
				<apply shield="seamark_restriction_shield"/>
			</switch>

			<case minzoom="14" tag="seamark:type" value="seaplane_landing_area" icon="seamark_seaplane_landing_area"/>

			<case minzoom="13" tag="seamark:type" value="restricted_area" iconOrder="80">
				<case additional="seamark:restricted_area:category=kite_surfing" icon="seamark_restricted_area_kite_surfing"/>
				<case additional="seamark:restricted_area:category=swimming" icon="seamark_restricted_area_swimming"/>
				<case additional="seamark:restricted_area:category=fish_sanctuary" icon="seamark_restricted_area_fish_sanctuary"/>
				<case additional="seamark:restricted_area:category=water_skiing" icon="seamark_restricted_area_water_skiing"/>
				<switch>
					<switch minzoom="12">
						<case additional="seamark:restricted_area:restriction=restricted_entry"/>
						<case additional="seamark:restricted_area:category=safety"/>
						<case additional="seamark:restricted_area:restriction=safety_zone"/>
						<case additional="seamark:restricted_area:restriction=no_passing_overtaking"/>
						<apply icon="seamark_notice_prohibition_closedarea" iconVisibleSize="26" intersectionSizeFactor="0.7"/>
					</switch>
					<switch iconVisibleSize="26" intersectionSizeFactor="0.7">
						<switch minzoom="12">
							<case additional="seamark:restricted_area:restriction=no_entry"/>
							<apply icon="seamark_notice_prohibition_noentry"/>
						</switch>
						<switch minzoom="12">
							<switch>
								<case additional="seamark:restricted_area:restriction=no_anchoring"/>
								<case additional="seamark:restricted_area:restriction=no_anchoring;no_fishing"/>
								<case additional="seamark:restricted_area:restriction=no_anchoring;restricted_berthing"/>
								<apply icon="seamark_notice_prohibition_noanchoring"/>
							</switch>
							<switch>
								<case additional="seamark:restricted_area:restriction=no_landing"/>
								<apply icon="seamark_notice_prohibition_nomooring"/>
							</switch>
							<switch>
								<case additional="seamark:restricted_area:restriction=no_boating"/>
								<apply icon="seamark_notice_prohibition_nosailingcraft"/>
							</switch>
							<switch>
								<case additional="seamark:restricted_area:restriction=no_wake"/>
								<case additional="seamark:restricted_area:category=no_wake"/>
								<apply icon="seamark_notice_prohibition_nowash"/>
							</switch>
							<case additional="seamark:restricted_area:restriction=no_discharging" icon="seamark_restriction_discharging"/>
							<case additional="seamark:restricted_area:restriction=no_berthing" icon="seamark_notice_prohibition_noberthing"/>
							<case additional="seamark:restricted_area:restriction=no_fishing" icon="seamark_restriction_fishing"/>
							<case additional="seamark:restricted_area:restriction=no_drilling" icon="seamark_restriction_drilling"/>
							<case additional="seamark:restricted_area:restriction=no_turning" icon="seamark_notice_prohibition_noturning"/>
							<case additional="seamark:restricted_area:restriction=no_exploration_development" icon="seamark_restriction_exploration_development"/>
							<apply icon__1="seamark_notice_prohibition_bg">
								<apply_if nightMode="true" icon__1="seamark_notice_prohibition_bg_night"/>
							</apply>
						</switch>
						<switch minzoom="13">
							<switch>
								<case additional="seamark:restricted_area:category=speed_max"/>
								<case additional="seamark:restricted_area:category=speed"/>
								<case additional="seamark:restricted_area:restriction=restricted_speed"/>
								<apply icon="seamark_notice_regulation_speedlimit"/>
							</switch>
							<case additional="seamark:restricted_area:restriction=restricted_discharging" icon="seamark_restriction_discharging"/>
							<case additional="seamark:restricted_area:restriction=restricted_berthing" icon="seamark_notice_prohibition_noberthing"/>
							<case additional="seamark:restricted_area:restriction=restricted_fishing" icon="seamark_restriction_fishing"/>
							<case additional="seamark:restricted_area:restriction=restricted_drilling" icon="seamark_restriction_drilling"/>
							<case additional="seamark:restricted_area:restriction=restricted_anchoring" icon="seamark_notice_prohibition_noanchoring"/>
							<case additional="seamark:restricted_area:restriction=restricted_exploration_development" icon="seamark_restriction_exploration_development"/>
							<case additional="seamark:restricted_area:category=noise_limit" icon="seamark_notice_regulation_soundhorn"/>
							<switch>
								<case additional="seamark:restricted_area:restriction=to_be_avoided"/>
								<apply icon="seamark_restriction_to_be_avoided"/>
							</switch>
							<switch>
								<case additional="seamark:restricted_area:restriction=restricted_fairway_depth"/>
								<apply icon="seamark_notice_restriction_limiteddepth"/>
							</switch>
							<apply icon__1="seamark_notice_regulation_bg">
								<apply_if nightMode="true" icon__1="seamark_notice_regulation_bg_night"/>
							</apply>
						</switch>
						<apply shield="seamark_restriction_shield"/>
					</switch>
				</switch>
			</case>
			<switch>
				<case minzoom="13" tag="seamark:type" value="cable_area"/>
				<case minzoom="13" tag="seamark:type" value="pipeline_area"/>
				<apply icon="seamark_notice_prohibition_noanchoring" shield="seamark_restriction_bg" iconVisibleSize="26" intersectionSizeFactor="0.7"/>
				<apply icon__1="seamark_notice_prohibition_bg">
					<apply_if nightMode="true" icon__1="seamark_notice_prohibition_bg_night"/>
				</apply>
			</switch>

			<case minzoom="13" tag="seamark:type" value="obstruction">
				<case minzoom="14" additional="seamark:obstruction:category=foul_ground" icon="seamark_k311_foul_ground">
					<apply_if nightMode="true" shield="seamark_k311_foul_ground_shield_night"/>
				</case>
				<!-- alternative to INT-1 K31.1 icon: upward anchor icon="seamark_obstruction_foul_ground"/> -->
				<case additional="seamark:obstruction:category=boom" icon="seamark_obstruction_boom"/>
				<case additional="seamark:obstruction:category=fish_haven" icon="seamark_restricted_area_fish_sanctuary"/>
				<case additional="seamark:obstruction:category=construction" icon="seamark_obstruction_construction"/>
				<case minzoom="14" additional="seamark:obstruction:category=stump" icon="seamark_obstruction_stump" icon_shift_py="-0.8"/>
				<apply_if additional="depth:exposition=shoaler" shield="seamark_rock_shield"/>
				<apply_if nightMode="true" shield="seamark_rock_shield"/>
			</case>

			<case minzoom="15" tag="seamark:type" value="distance_mark" icon="seamark_distance_mark" iconOrder="150">
				<case additional="seamark:distance_mark:category=not_installed"/>
				<switch>
					<case additional="seamark:distance_mark:category=installed"/>
					<case additional="seamark:distance_mark:category=board"/>
					<case additional="seamark:distance_mark:category=pole"/>
					<apply icon="seamark_distance_mark_installed"/>
				</switch>
			</case>

			<case minzoom="17" tag="seamark:type" value="fishing_facility" icon="seamark_fishing_facility"/>
			<case minzoom="16" tag="seamark:type" value="hulk" icon="seamark_hulk">
				<case additional="seamark:hulk:category=restaurant" icon_2="seamark_hulk_restaurant_additional"/>
			</case>

			<case minzoom="16" tag="seamark:type" value="marine_farm" icon="seamark_marine_farm" iconOrder="90">
				<case additional="seamark:marine_farm:category=fish" icon_2="seamark_marine_farm_fish_additional"/>
				<case additional="seamark:marine_farm:category=crustaceans" icon_2="seamark_marine_farm_crustaceans_additional"/>
				<case additional="seamark:marine_farm:category=oysters_mussels" icon_2="seamark_marine_farm_oysters_mussels_additional"/>
				<case additional="seamark:marine_farm:category=seaweed" icon_2="seamark_marine_farm_seaweed_additional"/>
			</case>

			<case minzoom="16" tag="seamark:type" value="pilot_boarding" icon="seamark_pilot_boarding" shield="seamark_harbour_shield">
				<apply_if nightMode="true" shield="seamark_harbour_night_shield"/>
			</case>

			<case minzoom="15" tag="seamark:type" value="pylon" icon="seamark_pylon">
				<case additional="seamark:pylon:category=power" icon="seamark_pylon_power"/>
			</case>

			<case minzoom="15" tag="seamark:type" value="radar_reflector" icon="seamark_radar_reflector"/>

			<case minzoom="15" tag="seamark:type" value="rapids" icon="waterway_rapids" shield="rapids_shield"/>

			<switch minzoom="16" tag="whitewater" value="rapid">
				<case whiteWaterSports="true" icon="rapid_white" iconOrder="10">
					<apply_if additional="whitewater:rapid_grade=0" shield="whitewater_rapid_grade0_shield"/>
					<apply_if additional="whitewater:rapid_grade=1" shield="whitewater_rapid_grade1_shield"/>
					<apply_if additional="whitewater:rapid_grade=2" shield="whitewater_rapid_grade2_shield"/>
					<apply_if additional="whitewater:rapid_grade=3" shield="whitewater_rapid_grade3_shield"/>
					<apply_if additional="whitewater:rapid_grade=4" shield="whitewater_rapid_grade4_shield"/>
					<apply_if additional="whitewater:rapid_grade=5" shield="whitewater_rapid_grade5_shield"/>
					<apply_if additional="whitewater:rapid_grade=6" shield="whitewater_rapid_grade6_shield"/>
				</case>
				<case icon="waterway_rapids" shield="rapids_shield"/>
			</switch>
			<case whiteWaterSports="true" minzoom="14" tag="whitewater" value="hazard" icon="whitewater_hazard" iconOrder="12"/>
			<switch whiteWaterSports="true" minzoom="14" iconOrder="20">
				<case tag="whitewater" value="put_in" icon="put_in"/>
				<case tag="whitewater" value="egress" icon="egress"/>
				<case tag="whitewater" value="put_in;egress" icon="put_in_egress"/>
			</switch>

			<case minzoom="14" tag="waterway" value="waterfall" icon="seamark_waterfall" shield="seamark_waterfall_shield" iconVisibleSize="25" intersectionSizeFactor="0.7"/>

			<case minzoom="15" tag="seamark:type" value="rescue_station" icon="seamark_rescue_station"/>

			<case minzoom="15" tag="seamark:type" value="turning_basin" icon="seamark_notice_information_turningarea" icon__1="seamark_notice_information_bg" shield="seamark_restriction_shield"/>

			<!-- INT-1 K Section Rocks, Wrecks and Obstructions -->
			<!-- INT-1 K24, K25, K28, K29 Wrecks -->
			<!-- indication of dangerous navigational obstructions to start already at low zoom levels 13 -->
			<case minzoom="13" tag="seamark:type" value="wreck" icon="seamark_wreck" iconVisibleSize="15">
				<case additional="seamark:wreck:category=dangerous" shield="seamark_wreck_shield"/>
				<case additional="seamark:wreck:category=mast_showing" shield="seamark_wreck_shield"/>
				<case additional="seamark:wreck:category=hull_showing" icon="seamark_wreck_hull_showing" icon_shift_py="-0.8"/>
			</case>

			<case minzoom="16" tag="seamark:type" value="waterway_gauge" icon="seamark_waterway_gauge" icon_shift_py="-0.8"/>

			<!-- INT-1 K11, K12, K13 Rocks -->
			<!-- indication of dangerous navigational obstructions to start already at low zoom levels 13 -->
			<case minzoom="12" tag="seamark:type" value="rock" additional="depth:exposition=shoaler" shield="seamark_rock_shield" icon="seamark_rock_submerged" iconVisibleSize="20" iconOrder="30">
				<case additional="seamark:rock:water_level=covers" icon="seamark_rock_covers"/>
				<case additional="seamark:rock:water_level=awash" icon="seamark_rock_awash"/>
				<apply_if additional="seamark:lnam" iconOrder="20"/>
			</case>
			<case minzoom="13" tag="seamark:type" value="rock" icon="seamark_rock_submerged" iconVisibleSize="20" iconOrder="40">
				<case additional="seamark:rock:water_level=covers" icon="seamark_rock_covers"/>
				<case additional="seamark:rock:water_level=awash" icon="seamark_rock_awash"/>
				<apply_if additional="seamark:lnam" iconOrder="25"/>
				<apply_if nightMode="true" shield="seamark_rock_shield"/>
			</case>

			<!-- INT-1 J Section Nature of the Seabed -->
			<!-- INT-1 J13, J14, J15 icons at single nodes -->
 			<switch minzoom="14" iconVisibleSize="1">
				<case tag="seamark:type" value="weed" icon="seamark_j132_weedkelp" iconOrder="5"/>
				<case tag="seamark:type" value="seagrass" icon="seamark_j134_seagrass" iconOrder="5"/>
				<case tag="seamark:type" value="sand_waves" icon="seamark_j14_sand_waves" iconOrder="150">
					<apply_if nightMode="true" icon="seamark_j14_sand_waves_night"/>
				</case>
				<case minzoom="15" tag="seamark:type" value="spring" icon="seamark_j15_spring" iconOrder="5">
					<apply_if nightMode="true" icon="seamark_j15_spring_night"/>
				</case>
				<apply_if seabedDetail="omit" icon="" shield=""/> <!-- no display of sebedDetail selected in renderingProperties-->
			</switch>

			<case minzoom="11" tag="natural" value="peak" iconOrder="115">
				<case maxzoom="11" icon="natural_peak" shield="peakvolcano_shield" iconVisibleSize="25" intersectionSizeFactor="2"/>
				<case maxzoom="14" icon="natural_peak" shield="peakvolcano_shield"/>
				<case minzoom="15" icon="natural_peak_big" shield="peakvolcano_big_shield"/>
				<apply_if nightMode="true" shield="">
					<case minzoom="11" maxzoom="14" icon="natural_peak_night"/>
					<case minzoom="15" icon="natural_peak_night_big"/>
				</apply_if>
			</case>

			<case minzoom="10" tag="natural" value="volcano" iconOrder="100">
				<case maxzoom="14" icon="natural_volcano_map" shield="peakvolcano_shield">
					<case additional="status=active" icon="natural_volcano_active" shield="natural_volcano_active_shield"/>
				</case>
				<case minzoom="15" icon="natural_volcano_big" shield="peakvolcano_big_shield">
					<case additional="status=active" icon="natural_volcano_active_big" shield="natural_volcano_active_shield_big"/>
				</case>
				<apply_if nightMode="true" shield=""/>
			</case>
			<case minzoom="17" tag="man_made" value="chimney" icon="man_made_chimney" shield="chimney_shield" iconOrder="150"/>
			<case minzoom="16" tag="man_made" value="windmill" icon="man_made_windmill" shield="windmill_shield"/>
			<case minzoom="15" tag="man_made" value="observatory" icon="man_made_observatory" shield="observatory_shield">
				<apply_if additional="observatory:type=astronomical" icon="astronomical_observatory" shield="astronomical_observatory_shield"/>
			</case>

			<case minzoom="16" tag="man_made" value="monitoring_station" icon="man_made_monitoring_station_radar" shield="monitoring_station_radar_shield"/>
			<case minzoom="16" tag="man_made" value="mast" icon="man_made_mast" shield="mast_shield"/>
			<switch iconOrder="121">
				<case minzoom="16" tag="man_made" value="water_tower" icon="man_made_water_tower" shield="water_tower_shield"/>
				<switch minzoom="16" tag="man_made" value="tower">
					<case additional="tower:type=communication" icon="communication_tower" shield="tower_communications_shield"/>
					<case additional="tower:type=lighting" icon="lighting_tower" shield="tower_lighting_shield"/>
					<case additional="tower:type=observation" icon="observation_tower" shield="observatory_shield"/>
					<case additional="tower:type=cooling" icon="cooling_tower" shield="tower_cooling_shield"/>
					<case additional="tower:type=bell_tower" icon="bell_tower" shield="tower_bell_tower_shield"/>
					<case icon="man_made_tower" shield="tower_shield"/>
				</switch>
			</switch>
			<case minzoom="16" tag="man_made" value="petroleum_well" icon="man_made_petroleum_well" shield="petroleum_well_shield"/>
			<case minzoom="17" tag="man_made" value="crane" icon="man_made_crane" shield="crane_shield"/>
			<switch minzoom="16">
				<case tag="man_made" value="survey_point"/>
				<case tag="seamark:type" value="control_point"/>
				<apply icon="man_made_survey_point" shield="survey_point_shield"/>
			</switch>
			<case minzoom="14" tag="power" value="tower">
				<case maxzoom="15" icon="power_tower_small" iconVisibleSize="3"/>
				<case maxzoom="17" icon="power_tower_square" iconVisibleSize="7"/>
				<case minzoom="18" icon="power_tower" shield="power_tower_big_shield"/>
			</case>
			<case minzoom="13" tag="power" value="generator" additional="generator:source=wind" icon="seamark_landmark_windmotor" iconVisibleSize="25" intersectionSizeFactor="0.4" icon_shift_py="-0.5"/>


			<!-- Location dots -->

			<switch>
				<switch>
					<case minzoom="5" tag="place" value="city"/>
					<apply_if minzoom="6" maxzoom="16" icon="place_city_dot" iconVisibleSize="22" intersectionSizeFactor="0.9" iconOrder="32"/>
					<apply>
						<switch>
							<switch>
								<case additional="population_rounded=1500000000" iconOrder="6"/>
								<case additional="population_rounded=400000000" iconOrder="7"/>
								<case additional="population_rounded=200000000" iconOrder="8"/>
								<case additional="population_rounded=100000000" iconOrder="9"/>
								<case additional="population_rounded=50000000" iconOrder="10"/>
								<case additional="population_rounded=25000000" iconOrder="11"/>
								<case additional="population_rounded=20000000" iconOrder="12"/>
								<case additional="population_rounded=15000000" iconOrder="13"/>
								<case additional="population_rounded=12000000" iconOrder="14"/>
								<case additional="population_rounded=9000000" iconOrder="15"/>
								<case additional="population_rounded=7000000" iconOrder="16"/>
								<case additional="population_rounded=5000000" iconOrder="17"/>
								<case additional="population_rounded=3000000" iconOrder="18"/>
								<apply_if maxzoom="5" icon="place_city_dot" iconVisibleSize="1" intersectionSizeFactor="0.9"/>
							</switch>
							<case additional="population_rounded=2000000" iconOrder="19"/>
							<case additional="population_rounded=1000000" iconOrder="20"/>
							<case additional="population_rounded=700000" iconOrder="21"/>
							<case additional="population_rounded=400000" iconOrder="22"/>
							<case additional="population_rounded=200000" iconOrder="32"/>
							<case additional="population_rounded=100000" iconOrder="33"/>
							<case additional="population_rounded=70000" iconOrder="34"/>
							<case additional="population_rounded=40000" iconOrder="35"/>
							<case additional="population_rounded=20000" iconOrder="36"/>
							<case additional="population_rounded=10000" iconOrder="37"/>
							<case additional="population_rounded=5000" iconOrder="38"/>
							<case additional="population_rounded=2500" iconOrder="39"/>
							<case additional="population_rounded=1000" iconOrder="40"/>
							<case additional="population_rounded=500" iconOrder="41"/>
							<case additional="population_rounded=200" iconOrder="42"/>
							<case additional="population_rounded=100" iconOrder="43"/>
						</switch>
					</apply>
					<apply_if additional="capital=yes" iconVisibleSize="1" iconOrder="15">
						<switch>
							<case minzoom="5" maxzoom="5" icon="place_capital_dot_small" iconOrder="25">
								<apply_if nightMode="true" icon="place_capital_dot_small_night"/>
							</case>
							<case minzoom="6" maxzoom="16" icon="place_capital_dot">
								<apply_if nightMode="true" icon="place_capital_dot_night"/>
							</case>
							<apply>
								<case additional="population_rounded=20000000" iconOrder="15"/>
								<case additional="population_rounded=15000000" iconOrder="15"/>
								<case additional="population_rounded=12000000" iconOrder="16"/>
								<case additional="population_rounded=9000000" iconOrder="16"/>
								<case additional="population_rounded=7000000" iconOrder="17"/>
								<case additional="population_rounded=5000000" iconOrder="17"/>
								<case additional="population_rounded=3000000" iconOrder="18"/>
								<case additional="population_rounded=2000000" iconOrder="18"/>
								<case additional="population_rounded=1000000" iconOrder="19"/>
								<case additional="population_rounded=700000" iconOrder="20"/>
								<case additional="population_rounded=400000" iconOrder="21"/>
								<case additional="population_rounded=200000" iconOrder="22"/>
								<case additional="population_rounded=100000" iconOrder="23"/>
								<case additional="population_rounded=70000" iconOrder="23"/>
								<case additional="population_rounded=40000" iconOrder="23"/>
								<case additional="population_rounded=20000" iconOrder="23"/>
							</apply>
						</switch>
					</apply_if>
				</switch>
				<switch>
					<case minzoom="7" tag="place" value="town" icon="place_town_dot" iconVisibleSize="24" iconOrder="36"/>
					<case minzoom="11" maxzoom="12" tag="place" value="village" icon="place_town_dot"/>
					<case minzoom="11" maxzoom="12" tag="place" value="hamlet" icon="place_town_dot" iconOrder="42"/>
					<case minzoom="12" maxzoom="12" tag="place" value="farm" icon="place_town_dot"/>
					<apply>
						<case additional="population_rounded=1500000000" iconOrder="6"/>
						<case additional="population_rounded=400000000" iconOrder="7"/>
						<case additional="population_rounded=200000000" iconOrder="8"/>
						<case additional="population_rounded=100000000" iconOrder="9"/>
						<case additional="population_rounded=50000000" iconOrder="10"/>
						<case additional="population_rounded=25000000" iconOrder="11"/>
						<case additional="population_rounded=20000000" iconOrder="12"/>
						<case additional="population_rounded=15000000" iconOrder="13"/>
						<case additional="population_rounded=12000000" iconOrder="14"/>
						<case additional="population_rounded=9000000" iconOrder="15"/>
						<case additional="population_rounded=7000000" iconOrder="16"/>
						<case additional="population_rounded=5000000" iconOrder="17"/>
						<case additional="population_rounded=3000000" iconOrder="18"/>
						<case additional="population_rounded=2000000" iconOrder="19"/>
						<case additional="population_rounded=1000000" iconOrder="20"/>
						<case additional="population_rounded=700000" iconOrder="21"/>
						<case additional="population_rounded=400000" iconOrder="22"/>
						<case additional="population_rounded=200000" iconOrder="32"/>
						<case additional="population_rounded=100000" iconOrder="33"/>
						<case additional="population_rounded=70000" iconOrder="34"/>
						<case additional="population_rounded=40000" iconOrder="35"/>
						<case additional="population_rounded=20000" iconOrder="36"/>
						<case additional="population_rounded=10000" iconOrder="37"/>
						<case additional="population_rounded=5000" iconOrder="38"/>
						<case additional="population_rounded=2500" iconOrder="39"/>
						<case additional="population_rounded=1000" iconOrder="40"/>
						<case additional="population_rounded=500" iconOrder="41"/>
						<case additional="population_rounded=200" iconOrder="42"/>
						<case additional="population_rounded=100" iconOrder="43"/>
					</apply>
				</switch>
			</switch>
			<apply_if legend="true" iconVisibleSize="0"/>
		</switch>
	</point>


	<polygon>
		<!-- depthcontourslines -->
		<switch minzoom="10" depthContours="true" hideAreas="false" tag="contourarea" value="depth">
			<case depthColorScheme="ECDIS">
				<case nightMode="true">
					<case additional="areatype=-1" color="#15251F"/>
					<case additional="areatype=0" color="#16232F"/>
					<case additional="areatype=2" color="#151B21"/>
					<case additional="areatype=5" color="#0C0E0F"/>
					<case additional="areatype=10" color="#070707"/>
				</case>
				<case additional="areatype=-1" color="#82B194"/>
				<case additional="areatype=0" color="#73B5EE"/>
				<case additional="areatype=2" color="#97C4F1"/>
				<case additional="areatype=5" color="#B9D4E0"/>
				<case additional="areatype=10" color="#D3E9ED"/>
			</case>
			<case nightMode="true">
				<case additional="areatype=-1" color="#141C0E"/>
				<case additional="areatype=0" color="#142330"/>
				<case additional="areatype=2" color="#0C1721"/>
				<case additional="areatype=5" color="#04060A"/>
				<case additional="areatype=10" color="#000000"/>
			</case>
			<case additional="areatype=-1" color="#CADBC1"/>
			<case additional="areatype=0" color="#AFCCE3"/>
			<case additional="areatype=2" color="#CADEEF"/>
			<case additional="areatype=5" color="#F1F6FC"/>
			<case additional="areatype=10" color="#FFFFFF"/>
			<apply>
				<switch shader="hazard">
					<apply_if nightMode="true" shader="hazard_night"/>
				</switch>
			</apply>
		</switch>
		<!-- depthcontourslines -->
		<switch minzoom="10">
			<case tag="seamark:type" value="separation_zone"/>
			<case tag="seamark:type" value="separation_roundabout"/>
			<case tag="seamark:type" value="separation_crossing"/>
			<case tag="seamark:type" value="turning_basin"/>
			<apply color="#339c00ff">
				<apply_if nightMode="true" color="#55c05dff"/>
			</apply>
		</switch>

		<switch minzoom="9">
			<switch minzoom="11">
				<case tag="seamark:type" value="anchorage"/>
				<case tag="seamark:type" value="anchor_berth"/>
				<case tag="seamark:type" value="berth"/>
				<apply color="#159c00ff" color_2="#709c00ff">
					<apply_if nightMode="true" color_2="#88c05dff"/>
				</apply>
			</switch>
			<case minzoom="11" tag="seamark:type" value="obstruction" color="#25cc0000">
				<apply color_2="#ff0000">
					<apply_if nightMode="true" color_2="#aaff0000"/>
				</apply>
			</case>
			<switch>
				<case minzoom="11" tag="seamark:type" value="precautionary_area"/>
				<case minzoom="13" tag="seamark:type" value="seaplane_landing_area"/>
				<apply color="#258e6800" color_2="#ffba00">
					<apply_if nightMode="true" color_2="#aaffba00"/>
				</apply>
			</switch>
			<case tag="seamark:type" value="dumping_ground" color="00000000" color_2="#99000000"/>
			<case tag="seamark:type" value="restricted_area" color_2="#99ff0000">
				<case color="#000000ff" minzoom="16"/>
				<switch>
					<case additional="seamark:restricted_area:category=nature_reserve"/>
					<case additional="seamark:restricted_area:category=ecological_reserve"/>
					<case additional="seamark:restricted_area:category=seal_sanctuary"/>
					<case additional="seamark:restricted_area:category=bird_sanctuary"/>
					<case additional="seamark:restricted_area:category=fish_sanctuary"/>
					<apply color_2="#99009933" shader="nr3"/>
					<apply_if additional="seamark:restricted_area:restriction=no_entry" shader="seamark_nr">
						<apply_if nightMode="true" shader="seamark_nr_night"/>
					</apply_if>
					<apply_if additional="seamark:restricted_area:restriction=restricted_entry" shader="nr3">
						<apply_if nightMode="true" shader="nr3_night"/>
					</apply_if>
				</switch>
				<case additional="seamark:restricted_area:restriction=no_entry">
					<case additional="seamark:restricted_area:category=military" shader="hazard">
						<apply_if nightMode="true" shader="hazard_night"/>
					</case>
					<case color="#15ff0000"/>
				</case>
				<case additional="seamark:restricted_area:restriction=restricted_entry">
					<case additional="seamark:restricted_area:category=military" shader="danger">
						<apply_if nightMode="true" shader="danger_night"/>
					</case>
					<case color="#15ffcc00"/>
				</case>
				<case color="#10aa00ff"/>
			</case>
			<switch>
				<case minzoom="13" tag="seamark:type" value="cable_area"/>
				<case minzoom="13" tag="seamark:type" value="pipeline_area"/>
				<apply color="#10ff0000" color_2="#555555">
					<apply_if nightMode="true" color_2="#777777"/>
				</apply>
			</switch>
			<apply>
				<case maxzoom="12" strokeWidth_2="1.5" pathEffect_2="2_2"/>
				<case maxzoom="14" strokeWidth_2="2" pathEffect_2="2_3"/>
				<case maxzoom="16" strokeWidth_2="3" pathEffect_2="2_4"/>
				<case minzoom="17" strokeWidth_2="4" pathEffect_2="2_5"/>
			</apply>
		</switch>

		<switch>
			<case minzoom="10" tag="seamark:type" value="inshore_traffic_zone" color="#22c09daa" color_2="#c09daa">
				<apply_if nightMode="true" color_2="#999b5452"/>
			</case>
			<apply>
				<case maxzoom="12" strokeWidth_2="2" pathEffect_2="2_5"/>
				<case maxzoom="14" strokeWidth_2="3" pathEffect_2="4_10"/>
				<case maxzoom="16" strokeWidth_2="4" pathEffect_2="8_20"/>
				<case minzoom="17" strokeWidth_2="5" pathEffect_2="12_24"/>
			</apply>
		</switch>

		<case minzoom="10" tag="seamark:type" value="fairway" hideFairways="false" color="$fairwayColor"/>

		<switch>
			<case minzoom="8" tag="seamark:type" value="production_area"/>
			<case minzoom="15" tag="seamark:type" value="marine_farm"/>
			<apply>
				<case maxzoom="11" strokeWidth_2="0.6" pathEffect_2="2_2"/>
				<case maxzoom="13" strokeWidth_2="0.8" pathEffect_2="2_2"/>
				<case maxzoom="15" strokeWidth_2="1:1" pathEffect_2="3_3"/>
				<case maxzoom="16" strokeWidth_2="1.5:1.5" pathEffect_2="4_5"/>
				<case minzoom="17" strokeWidth_2="2:2" pathEffect_2="5_6"/>
			</apply>
			<apply color="#33514432" color_2="#111111">
				<apply_if nightMode="true" color="#66898175" color_2="#aaaaaa"/>
			</apply>
		</switch>
		<case minzoom="17" tag="seamark:type" value="fishing_facility" strokeWidth_2="1:1" pathEffect_2="1_6" color_2="#555555" cap_2="ROUND">
			<apply_if nightMode="true" color_2="#777777"/>
		</case>
		<case minzoom="16" tag="seamark:type" value="hulk" color="#335b3c00" strokeWidth_2="2" color_2="#694b31">
			<apply_if nightMode="true" color="#3373553c" color_2="#88b9a08a"/>
		</case>

		<switch minzoom="13">
			<case tag="man_made" value="pier" color="$pierColor"/>
			<apply minzoom="15">
				<switch>
					<case additional="access=no"/>
					<case additional="access=private"/>
					<apply color_2="$accessPrivateColor" strokeWidth_2="3" pathEffect_2="1_7" cap_2="ROUND"/>
					<apply_if nightMode="true" color_2="$accessPrivateColor"/>
				</switch>
			</apply>
		</switch>

		<!-- INT-1 J Section: Nature of the Seabed, https://wiki.openstreetmap.org/wiki/Seamarks/INT-1_Section_J  -->
		<switch minzoom="14">
			<case tag="seamark:type" value="seabed_area" color="$null">
				<!-- <apply_if additional="seamark:seabed_area:surface=sand" shader="seamark_j1_sand"/> omitted-->
				<!-- <apply_if additional="seamark:seabed_area:surface=mud" shader="seamark_j2_mud"/> omitted-->
				<!-- <apply_if additional="seamark:seabed_area:surface=clay" shader="seamark_j3_clay"/> omitted-->
				<!-- <apply_if additional="seamark:seabed_area:surface=silt" shader="seamark_j4_silt"/> omitted-->
				<apply_if additional="seamark:seabed_area:surface=stones" shader="seamark_j20_stonesgravel"/>
				<apply_if additional="seamark:seabed_area:surface=stones;gravel" shader="seamark_j20_stonesgravel"/>
				<apply_if additional="seamark:seabed_area:surface=gravel" shader="seamark_j20_stonesgravel"/>
				<!-- <apply_if additional="seamark:seabed_area:surface=pebbles" shader="seamark_j7_pebbles"/> omitted-->
				<apply_if additional="seamark:seabed_area:surface=cobbles" shader="seamark_j20_stonesgravel"/>
				<apply_if additional="seamark:seabed_area:surface=rocky" shader="seamark_j2122_rockycoral"/>
				<apply_if additional="seamark:seabed_area:surface=boulder" shader="seamark_j2122_rockycoral"/>
				<apply_if additional="seamark:seabed_area:surface=coral" shader="seamark_j2122_rockycoral"/>
				<!-- <apply_if additional="seamark:seabed_area:surface=shells" shader="seamark_j11_shells"/> omitted-->
				<apply_if additional="seamark:seabed_area:surface=shells" color="#331d1d3b"/>
				<apply_if additional="seamark:seabed_area:surface=shells" shellsStyle="red" color="#55f22237"/>
				<apply_if additional="seamark:seabed_area:surface=shells" shellsStyle="rocks" shader="seamark_j2122_rockycoral"/>
				<apply_if additional="seamark:seabed_area:surface=shells" shellsStyle="stones" shader="seamark_j20_stonesgravel"/>
				<apply_if additional="seamark:seabed_area:surface=lava" shader="seamark_j2122_rockycoral"/>
				<!-- the following shaders do not follow INT-1 J Section Nature of the seabed and https://wiki.openstreetmap.org/wiki/Seamarks/INT-1_Section_J, delete or replace as needed -->
				<apply_if additional="seamark:seabed_area:surface=sand" shader="sand_opaque"/>
				<apply_if additional="seamark:seabed_area:surface=weed;sand" shader="weed_sand_opaque"/> <!-- this tagging for weed is not consistent with wiki.openstreetmap for INT-1 J Section Nature of the seabed -->
				<apply_if additional="seamark:seabed_area:surface=mud" shader="mud2_opaque"/>
				<!--        <apply_if additional="seamark:seabed_area:surface=sand" nightMode="true" shader=""/> --> <!-- as originally, no application of the opaque shades in nightModed -->
				<!--        <apply_if additional="seamark:seabed_area:surface=weed;sand" nightMode="true" shader=""/>-->
				<!--        <apply_if additional="seamark:seabed_area:surface=mud" nightMode="true" shader=""/>-->
				<!-- <apply_if additional="seamark:seabed_area:surface=coral" shader="reef_coral"/> alternative shader for coral-->
				<!-- <apply_if additional="seamark:seabed_area:surface=coral" shader="reef"/> alternative shader for coral-->
			</case>
			<case tag="seamark:type" value="weed" shader="seamark_j132_weedkelp"/>
			<case tag="seamark:type" value="seagrass" shader="seamark_j134_seagrass"/>
			<case tag="seamark:type" value="sand_waves" shader="seamark_j14_sand_waves"/>

			<switch>
				<case tag="natural" value="shoal"/>
				<case tag="seamark:type" value="sea_area" additional="seamark:sea_area:category=shoal" color_2="#99ff0000" pathEffect_2="2_3" strokeWidth_2="1">
					<apply_if minzoom="13" strokeWidth_2="2"/>
					<apply_if nightMode="true" color_2="#88ff0000"/>
				</case>
				<apply shader="shoal"/>
			</switch>
			<!--    <case minzoom="6" tag="seamark:sea_area:category" value="shoal" color="#22ff6b2c" strokeWidth_2="2" color_2="#aaff6b2c" pathEffect_2="3_3"/>-->
			<!--    <case minzoom="6" tag="natural" value="shoal" shader="shoal" color="#22ff6b2c" strokeWidth_2="2" color_2="#aaff6b2c" pathEffect_2="3_3">-->
			<!--      <case additional="surface=sand" shader="sand_opaque" color="$null"/>-->
			<!--      <case additional="surface=shells" shader="seamark_j20_stonesgravel" color="$null"/>-->
			<!--      <case additional="surface=stones" shader="seamark_j20_stonesgravel" color="$null"/>-->
			<!--      <case additional="surface=gravel" shader="seamark_j20_stonesgravel" color="$null"/>-->
			<!--      <case additional="surface=rock" shader="seamark_j2122_rockycoral" color="$null"/>-->
			<!--      <case nightMode="true" shader="" color="#55ff6b2c"/>-->
			<!--    </case>-->
			<apply_if nightMode="true"> <!-- use light gray semi transparent halo _shield_night-->
				<!-- <apply_if additional="seamark:seabed_area:surface=sand" shield="seamark_j1_sand_shield_night"/> omitted-->
				<!-- <apply_if additional="seamark:seabed_area:surface=mud" shield="seamark_j2_mud_shield_night"/> omitted-->
				<!-- <apply_if additional="seamark:seabed_area:surface=clay" shield="seamark_j3_clay_shield_night"/> omitted-->
				<!-- <apply_if additional="seamark:seabed_area:surface=silt" shield="seamark_j4_silt_shield_night"/> omitted-->
				<apply_if additional="seamark:seabed_area:surface=stones" shader="seamark_j20_stonesgravel_night"/>
				<apply_if additional="seamark:seabed_area:surface=stones;gravel" shader="seamark_j20_stonesgravel_night"/>
				<apply_if additional="seamark:seabed_area:surface=gravel" shader="seamark_j20_stonesgravel_night"/>
				<!-- <apply_if additional="seamark:seabed_area:surface=pebbles" shader="seamark_j7_pebbles_shield_night"/> omitted-->
				<apply_if additional="seamark:seabed_area:surface=cobbles" shader="seamark_j20_stonesgravel_night"/>
				<apply_if additional="seamark:seabed_area:surface=rocky" shader="seamark_j2122_rockycoral_night"/>
				<apply_if additional="seamark:seabed_area:surface=boulder" shader="seamark_j2122_rockycoral_night"/>
				<apply_if additional="seamark:seabed_area:surface=coral" shader="seamark_j2122_rockycoral_night"/>
				<!-- <apply_if additional="seamark:seabed_area:surface=shells" shader="seamark_j11_shells_shield_night"/> omitted-->
				<apply_if additional="seamark:seabed_area:surface=lava" shader="seamark_j2122_rockycoral_night"/>
				<apply_if tag="seamark:type" value="weed" shader="seamark_j132_weedkelp_night"/>
				<apply_if tag="seamark:type" value="seagrass" shader="seamark_j134_seagrass_night"/>
				<apply_if tag="seamark:type" value="sand_waves" shader="seamark_j14_sand_waves_night"/>
			</apply_if>
			<apply_if seabedDetail="omit" shader="" color="$null"/>
		</switch>

		<switch minzoom="10">
			<case tag="natural" value="wood"/>
			<case tag="landuse" value="forest"/>
			<apply color="$woodColor"/>
		</switch>
		<case minzoom="9" tag="natural" value="wetland">
			<case additional="wetland=tidalflat" hideTidalFlats="true" shader=""/>
			<case additional="wetland=tidalflat" shader="" color="$tidalFlatColor">
				<case tidalFlatStyle="wetland" shader="wetland"/>
				<case tidalFlatStyle="tidal" shader="wetland_tidalflat"/>
			</case>
			<case shader="wetland">
				<apply_if nightMode="true" shader="" color="#1b3238"/>
			</case>
		</case>
		<case minzoom="6" tag="natural" value="reef" shader="reef" color="#99100000" strokeWidth_2="2" color_2="#aaff2c2c" pathEffect_2="3_3">
			<case additional="reef=coral" shader="reef_coral"/>
			<case additional="reef=rock" shader="reef_rock"/>
			<case additional="reef=stone" shader="reef_rock"/>
			<case additional="reef=sand" shader="sand_opaque"/>
			<case nightMode="true" shader="" color="#55aaff2c2c"/>
		</case>

		<case minzoom="10" tag="landuse" value="residential" color="$landuseResidentialColorDay">
			<apply_if nightMode="true" color="$landuseResidentialColorNight"/>
		</case>

		<switch>
			<case tag="area:highway" value="primary"/>
			<case tag="area:highway" value="secondary"/>
			<case tag="area:highway" value="tertiary"/>
			<case tag="area:highway" value="unclassified"/>
			<case tag="area:highway" value="residential"/>
			<case tag="man_made" value="bridge"/>
			<apply color="$tertiaryRoadColor" color_2="#969696" minzoom="12" strokeWidth_2=":1">
				<apply_if nightMode="true" color_2="#464646"/>
			</apply>
		</switch>
		<switch>
			<case tag="area:highway" value="pedestrian"/>
			<case tag="area:highway" value="footway"/>
			<apply_if minzoom="14">
				<apply color="$pedestrianRoadModeColorDay" color_2="$pedestrianRoadShadowColorDay" strokeWidth_2=":1"/>
				<apply_if nightMode="true" color="$pedestrianRoadModeColorNight" color_2="$pedestrianRoadShadowColorNight"/>
			</apply_if>
		</switch>
		<switch minzoom="14">
			<case tag="area:highway" value="service"/>
			<case tag="highway" value="rest_area"/>
			<apply color="$serviceRoadColor" color_2="#969696" strokeWidth_2=":1">
				<apply_if nightMode="true" color="#464234" color_2="$residentialRoadShadowColor"/>
			</apply>
		</switch>

		<switch minzoom="16" color_2="#000000" strokeWidth_2="0.5:0" shader="diagonal_fill_black_orange_shader">
			<case tag="man_made" value="storage_tank"/>
			<case tag="man_made" value="silo"/>
			<case tag="man_made" value="chimney"/>
			<case tag="man_made" value="gasometer"/>
			<case tag="building" value=""/>
			<case tag="aeroway" value="terminal"/>
			<apply_if nightMode="true" shader="diagonal_fill_white_dark_shader" color_2="#999999"/>
		</switch>

		<!--switch minzoom="10">
			<case tag="landuse" value="military"/>
			<case tag="seamark:type" value="military_area"/>
						<apply shader="" color="#100000" color_2="#c8ffa0c0" strokeWidth_2="1:1">
								<apply_if nightMode="true" shader="" color_2="#84ffa0c0"/>
			</apply>
			<apply_if additional="abandoned=yes" shader="military_abandoned">
				<apply_if nightMode="true" shader="military_abandoned_night"/>
			</apply_if>
				</switch-->
		<!--case minzoom="7" tag="military" value="danger_area" shader="hazard" color_2="#f46997" strokeWidth_2="1:1">
			<apply_if nightMode="true" color_2="#cc1652"/>
				</case-->
		<switch>
			<case minzoom="14" tag="seamark:type" value="fortified_structure"/>
			<case minzoom="14" tag="barrier" value="city_wall"/>
			<apply>
				<case maxzoom="14" strokeWidth_2="2:2"/>
				<case maxzoom="15" strokeWidth_2="3:3"/>
				<case minzoom="16" strokeWidth_2="4.5:4.5"/>
			</apply>
			<apply color_2="#888888">
				<apply_if nightMode="true" color_2="#545454"/>
			</apply>
		</switch>
		<switch minzoom="13">
			<case tag="man_made" value="groyne"/>
			<case tag="man_made" value="breakwater"/>
			<apply color="#fddb8f" color_2="#aaaaaa">
				<case maxzoom="13" strokeWidth_2="0.6"/>
				<case maxzoom="15" strokeWidth_2="1:1"/>
				<case minzoom="16" strokeWidth_2="2:2"/>
			</apply>
			<apply_if nightMode="true" color="#002a2a"/>
		</switch>

		<switch>
			<switch>
				<case minzoom="4" tag="natural" value="water"/>
				<case minzoom="10" tag="waterway" value="riverbank"/>
				<switch>
					<case minzoom="10" tag="waterway" value="dock"/>
					<case minzoom="7" tag="landuse" value="reservoir"/>
					<case minzoom="7" tag="landuse" value="water"/>
					<case minzoom="10" tag="landuse" value="basin"/>
					<apply_if additional="abandoned=yes" strokeWidth_2="1:0" color_2="#7479ec" pathEffect_2="7_5"/>
				</switch>
				<case minzoom="11" tag="waterway" value="wadi" strokeWidth_2="1:0" color_2="#7479ec" pathEffect_2="7_5"/>
<!--				<apply engine_v1="true" strokeWidth_2="1:0" color_2="$waterwayStrokeColorDay"/>-->
				<apply color="$watercolor">
					<apply_if nightMode="true" color_2="$waterwayStrokeColorNight"/>
				</apply>
			</switch>
			<switch>
				<case minzoom="15" tag="leisure" value="swimming_pool"/>
				<case minzoom="15" tag="landuse" value="salt_pond"/>
				<case minzoom="16" tag="amenity" value="fountain"/>
				<case minzoom="16" tag="natural" value="hot_spring"/>
				<case minzoom="16" tag="natural" value="geyser"/>
				<apply color="#8876cbea" color_2="#777479ec" strokeWidth_2="0.6">
					<apply_if nightMode="true" color="#551c0f5e" color_2="$waterwayStrokeColorNight"/>
				</apply>
			</switch>
			<apply_if additional="intermittent=yes" strokeWidth_2="1:0" color_2="#7479ec" pathEffect_2="7_5"/>
			<apply_if legend="true" color="#ffffff" color_2="#666688" strokeWidth_2="1"/>
		</switch>
		<case minzoom="4" tag="natural" value="bay"/>
		<switch>
			<case minzoom="1" tag="natural" value="coastline"/>
			<apply_if noPolygons="true" color="#00555555"/>
			<apply color="$watercolor"/>
			<apply_if noPolygons="true" nightMode="false" color="#00555555" color_2="#555555" strokeWidth_2="1"/>
		</switch>
		<switch>
			<switch minzoom="12">
				<case tag="waterway" value="dam"/>
				<case tag="seamark:type" value="dam"/>
				<apply>
					<case maxzoom="15" strokeWidth_2="1:1"/>
					<case maxzoom="17" strokeWidth_2="2:2"/>
					<case minzoom="18" strokeWidth_2="4:4"/>
				</apply>
			</switch>
			<case minzoom="15" tag="waterway" value="weir" strokeWidth_2="1:1"/>
			<apply color="#33555555" color_2="#555555">
				<apply_if nightMode="true" color="#33eeeeee" color_2="#eeeeee"/>
			</apply>
		</switch>

		<switch>
			<case tag="place" value="island"/>
			<case tag="place" value="islet"/>
			<case tag="natural" value="land"/>
			<apply color="$defaultColor"/>
			<apply_if legend="true" color="#ffffff"/>
			<apply_if noPolygons="true" nightMode="false" color="#00555555"/> <!--  color_2="#555555" strokeWidth_2="1" -->
		</switch>
	</polygon>


	<line>
		<!-- depthcontourslines -->
		<switch depthContours="true" hideContours="false" tag="contour" value="depth" strokeWidth="1">
			<case minzoom="10" additional="$safetyLineType" color="#d40b44"/>

			<!-- intervals -->
			<case minzoom="6" additional="contourtype=1000" color="$color2"/>
			<case minzoom="7" additional="contourtype=100" color="$color2"/>
			<case minzoom="11" additional="contourtype=10" color="$color2" hideMinorContours="false"/>
			<case minzoom="12" additional="contourtype=5" color="$color2" hideMinorContours="false"/>
			<case minzoom="14" additional="contourtype=1" color="$color2" hideMinorContours="false"/>
			<case minzoom="13" additional="contourtype=-1" color="$color1" hideMinorContours="false"/>
			<!-- dedicated contours, usable as safety contour -->
			<case minzoom="10" additional="contourtype=0m" color="$color0"/>
			<case minzoom="13" additional="contourtype=1m" color="$color2" hideMinorContours="false"/>
			<case minzoom="12" additional="contourtype=2m" color="$color2"/>
			<case minzoom="13" additional="contourtype=3m" color="$color2" hideMinorContours="false"/>
			<case minzoom="14" additional="contourtype=4m" color="$color2" hideMinorContours="false"/>
			<case minzoom="11" additional="contourtype=5m" color="$color0"/>
			<case minzoom="8" additional="contourtype=10m" color="$color2"/>
			<case minzoom="10" additional="contourtype=20m" color="$color2" hideMinorContours="false"/>
			<case minzoom="9" additional="contourtype=50m" color="$color2" hideMinorContours="false"/>
			<case minzoom="14" color="$color2" hideMinorContours="false"/>

			<apply_if depthContoursDashed="true">
				<apply additional="contourtype=1m" pathEffect="15_3_2_3"/>
				<apply additional="contourtype=2m" pathEffect="15_3_2_3_2_3"/>
				<apply additional="contourtype=3m" pathEffect="15_3_2_3_2_3_2_3"/>
				<apply additional="contourtype=4m" pathEffect="15_3_2_3_2_3_2_3_2_3"/>
				<apply additional="contourtype=5m" pathEffect="2_2"/>
				<apply additional="contourtype=10m" pathEffect="10_3"/>
			</apply_if>

			<apply_if depthContourWidth="thin" strokeWidth="0.6"/>
			<apply_if depthContourWidth="thick" strokeWidth="1.5"/>
		</switch>
		<!-- depthcontourslines -->
		<switch minzoom="10" hideLightSectors="false" strokeWidth="0.8" pathEffect="2_2" color="#dd666666">
			<case tag="lightsector" value="limit"/>
			<case tag="lightsector" value="orientation" pathEffect="6_3" color_2="#88800080" strokeWidth_2="6">
				<case additional="colour=white" color_2="#66fab20b"/>
				<case additional="colour=red" color_2="#66ed1c24"/>
				<case additional="colour=green" color_2="#6600a650"/>
				<case additional="colour=yellow" color_2="#66fab20b"/>
				<case additional="colour=orange" color_2="#66fab20b"/>
				<apply>
					<case maxzoom="10" strokeWidth_2="2"/>
					<case maxzoom="12" strokeWidth_2="4"/>
				</apply>
			</case>
			<case minzoom="10" tag="lightsector" value="arc" pathEffect="" strokeWidth="10" color="#88800080" cap="BUTT">
				<case additional="colour=white" color="#99fab20b"/>
				<case additional="colour=red" color="#99ed1c24"/>
				<case additional="colour=green" color="#9900a650"/>
				<case additional="colour=yellow" color="#99fab20b"/>
				<case additional="colour=orange" color="#99fab20b"/>
				<apply>
					<case maxzoom="10" strokeWidth="3"/>
					<case maxzoom="11" strokeWidth="5"/>
					<case maxzoom="12" strokeWidth="7"/>
				</apply>
				<apply_if additional="lightsector:low=yes" pathEffect="6_3"/>
			</case>
		</switch>

		<switch minzoom="2"> <!-- for new OpenGL engine -->
			<switch>
				<case tag="osmand" value="file_trackline" color="#55ff0000" cap="ROUND">
					<case minzoom="13" maxzoom="16" pathIcon="arrow_triangle_white_nobg" pathIconStep="40"/>
					<case minzoom="17" pathIcon="arrow_triangle_white_nobg" pathIconStep="50"/>
					<apply>
						<case additional="color=white" color="$whiteColor" pathIcon="arrow_triangle_black_nobg"/>
						<case additional="color=red" color="$redColor"/>
						<case additional="color=orange" color="$orangeColor"/>
						<case additional="color=brown" color="$brownColor"/>
						<case additional="color=darkyellow" color="$darkyellowColor"/>
						<case additional="color=yellow" color="$yellowColor" pathIcon="arrow_triangle_black_nobg"/>
						<case additional="color=lightgreen" color="$lightgreenColor"/>
						<case additional="color=green" color="$greenColor"/>
						<case additional="color=lightblue" color="$lightblueColor"/>
						<case additional="color=blue" color="$blueColor"/>
						<case additional="color=purple" color="$purpleColor"/>
						<case additional="color=gray" color="$grayColor"/>
						<case additional="color=black" color="$blackColor"/>
					</apply>
				</case>
				<case tag="osmand" value="file_routeline" color="#55ff00ff" cap="ROUND">
					<case maxzoom="4" pathEffect="5_1"/>
					<case maxzoom="6" pathEffect="8_1"/>
					<case maxzoom="12" pathEffect="11_1"/>
					<case minzoom="13" pathEffect="13_1"/>
				</case>
			</switch>
			<apply>
				<case maxzoom="4" strokeWidth="1.5:1.5"/>
				<case maxzoom="6" strokeWidth="3:3"/>
				<case maxzoom="9" strokeWidth="4:4"/>
				<case maxzoom="10" strokeWidth="4.5:4.5"/>
				<case maxzoom="11" strokeWidth="5:5"/>
				<case maxzoom="12" strokeWidth="5:5"/>
				<case maxzoom="13" strokeWidth="5.5:5.5"/>
				<case minzoom="14" strokeWidth="6:6"/>
			</apply>
		</switch>
		<case minzoom="1" tag="natural" value="coastline_broken" color="#111111" strokeWidth=":1"/>
		<case minzoom="5" tag="natural" value="coastline_line" color="#cc999999" strokeWidth=":1"/>

		<switch>
			<case minzoom="9" tag="seamark:type" value="separation_lane"/>
			<apply onewayArrowsColor="#648DD0">
				<case engine_v1="true" cap="ROUND" color="#339c00ff">
					<case maxzoom="14" strokeWidth="2" pathEffect="1_10"/>
					<case maxzoom="16" strokeWidth="3" pathEffect="1_20"/>
					<case minzoom="17" strokeWidth="4" pathEffect="1_24"/>
					<apply_if nightMode="true" color="#88c05dff"/>
				</case>
				<case>
					<case maxzoom="12" pathIcon="seamark_separation_line_arrow_small" pathIconStep="50">
						<apply_if nightMode="true" pathIcon="seamark_separation_line_arrow_small_night"/>
					</case>
					<case minzoom="13" pathIcon="seamark_separation_line_arrow" pathIconStep="90">
						<apply_if nightMode="true" pathIcon="seamark_separation_line_arrow_night"/>
					</case>
					<apply strokeWidth="0.1" color="$null"/>
				</case>
			</apply>
		</switch>
		<switch>
			<case minzoom="9" tag="seamark:type" value="separation_line" color="#559c00ff" cap="SQUARE" pathEffect="">
				<apply_if nightMode="true" color="#aac05dff"/>
			</case>
			<case minzoom="9" tag="seamark:type" value="separation_boundary" color="#339c00ff" cap="SQUARE">
				<apply_if nightMode="true" color="#88c05dff"/>
			</case>
			<case minzoom="10" tag="seamark:type" value="inshore_traffic_zone" color="#c09daa">
				<apply_if nightMode="true" color="#999b5452"/>
			</case>
			<apply>
				<case maxzoom="12" strokeWidth="2" pathEffect="2_5"/>
				<case maxzoom="14" strokeWidth="3" pathEffect="4_10"/>
				<case maxzoom="16" strokeWidth="4" pathEffect="8_20"/>
				<case minzoom="17" strokeWidth="5" pathEffect="12_24"/>
			</apply>
			<apply_if tag="seamark:type" value="separation_line" pathEffect="null"/>
		</switch>

		<switch minzoom="14">
			<case tag="seamark:type" value="lock_basin"/>
			<case tag="seamark:type" value="lock_basin_part"/>
			<apply>
				<case maxzoom="14" strokeWidth="4:4" shadowRadius="1:1"/>
				<case maxzoom="15" strokeWidth="5:5" shadowRadius="1.5:1.5"/>
				<case maxzoom="16" strokeWidth="7:7" shadowRadius="2:2"/>
				<case maxzoom="17" strokeWidth="9:9" shadowRadius="2.5:2.5"/>
				<case minzoom="18" strokeWidth="11:11" shadowRadius="3:3"/>
			</apply>
			<apply color="#330000ff" shadowColor="#0000ff">
				<apply_if nightMode="true" color="#55b4baf4" shadowColor="#cacfff"/>
			</apply>
		</switch>

		<case minzoom="10" tag="seamark:type" value="fairway" hideFairways="false" color="$fairwayColor">
			<case maxzoom="12" strokeWidth="2:2"/>
			<case maxzoom="13" strokeWidth="3:3"/>
			<case maxzoom="14" strokeWidth="4.5:4.5"/>
			<case maxzoom="15" strokeWidth="6.5:6.5"/>
			<case maxzoom="16" strokeWidth="9:9"/>
			<case maxzoom="17" strokeWidth="12:12"/>
			<case minzoom="18" strokeWidth="17:17"/>
		</case>

		<switch minzoom="10" strokeWidth="1" color="#333333">
			<case tag="seamark:type" value="recommended_track"/>
			<case tag="seamark:type" value="recommended_traffic_lane"/>
			<case tag="seamark:type" value="navigation_line" pathEffect="3_3"/>
			<apply_if minzoom="14" strokeWidth="1.5"/>
				<apply_if nightMode="true" color="#dddddd"/>
		</switch>

		<switch>
			<switch minzoom="12">
				<case tag="seamark:type" value="pipeline_area"/>
				<case tag="seamark:type" value="pipeline_submarine"/>
				<apply color_2="#000000">
					<apply_if nightMode="true" color_2="$black"/>
				</apply>
			</switch>
			<apply>
				<case maxzoom="12" strokeWidth="0.9" pathEffect="25_7" pathEffect_2="25_7"/>
				<case maxzoom="13" strokeWidth="1:1" pathEffect="30_10" pathEffect_2="30_10"/>
				<case maxzoom="16" strokeWidth="1.5:1.5" strokeWidth_2="0.6" pathEffect="30_10" pathEffect_2="30_10"/>
				<case maxzoom="17" strokeWidth="2:2" strokeWidth_2="0.7" pathEffect="37_11" pathEffect_2="37_11"/>
				<case minzoom="18" strokeWidth="2.5:2.5" strokeWidth_2="0.8" pathEffect="40_13" pathEffect_2="40_13"/>
			</apply>
			<apply color="#aaec008c">
				<apply_if nightMode="true" color="#aa6d1047"/>
			</apply>
		</switch>
		<case minzoom="12" tag="seamark:type" value="cable_submarine" strokeWidth="1" color="#aaec008c"
					pathIcon="seamark_submarine_cable" pathIconStep="6">
			<apply_if minzoom="17" strokeWidth="2"/>
			<apply_if nightMode="true" color="#aa6d1047"/>
		</case>
		<switch>
			<case minzoom="14" tag="seamark:type" value="fortified_structure"/>
			<case minzoom="14" tag="barrier" value="city_wall"/>
			<apply>
				<case maxzoom="14" strokeWidth="2:2"/>
				<case maxzoom="15" strokeWidth="3:3"/>
				<case minzoom="16" strokeWidth="4.5:4.5"/>
			</apply>
			<apply color="#888888">
				<apply_if nightMode="true" color="#545454"/>
			</apply>
		</switch>

		<case minzoom="17" tag="seamark:type" value="fishing_facility" strokeWidth="1:1" pathEffect="1_6" color="#555555" cap="ROUND">
			<apply_if nightMode="true" color="#777777"/>
		</case>

		<case minzoom="13" tag="man_made" value="pier" color="$pierColor">
			<switch minzoom="15">
				<case additional="access=no"/>
				<case additional="access=private"/>
				<apply color_2="$accessPrivateColor" strokeWidth_2="3" pathEffect_2="1_7" cap_2="ROUND"/>
				<apply_if nightMode="true" color_2="$accessPrivateColor"/>
			</switch>
			<apply_if maxzoom="13" strokeWidth="0.6"/>
			<apply_if minzoom="14" maxzoom="15" strokeWidth="1.5:1.5"/>
			<apply_if minzoom="16" strokeWidth="3:3"/>
		</case>
		<switch engine_v1="false" minzoom="16" strokeWidth="0.5">
			 <case tag="natural" value="cliff" color="#555555" pathIcon="stroke_gray" pathIconStep="10"/>
		</switch>
		<switch minzoom="16">
			<case tag="seamark:type" value="small_craft_facility" additional="seamark:small_craft_facility:category=slipway"/>
			<case tag="leisure" value="slipway"/>
			<apply strokeWidth="2:2" color="#fddb8f" strokeWidth__1="4:4" color__1="#d28ce4"/>
			<apply_if nightMode="true" color="#464234"/>
		</switch>

		<switch minzoom="16">
			<case tag="barrier" value="fence"/>
			<case tag="barrier" value="wall"/>
			<apply strokeWidth="0.5" color="#333333">
				<apply_if nightMode="true" color="#999999"/>
			</apply>
		</switch>

		<switch minzoom="16" strokeWidth="0.5">
			<case tag="natural" value="cliff" color="#555555" color_2="#555555">
				<apply_if nightMode="true" color="#888888" color_2="#888888"/>
			</case>
			<apply maxzoom="16" strokeWidth_2="2.5:2.5" pathEffect_2="1_7"/>
			<apply minzoom="17" maxzoom="17" strokeWidth_2="4:4" pathEffect_2="1_9"/>
			<apply minzoom="18" strokeWidth_2="5.5:5.5" pathEffect_2="1_13"/>
		</switch>

		<!-- INT-1 J21 J22 rock and coral line icons for edges -->
 		<switch engine_v1="false" minzoom="14" strokeWidth="0.5">
				<!-- TODO: 2022-05-28 icons seamark_j21_rocky and seamark_j22_coral need to be rotated by 90 degree clockwise for correct display in OSMAND -->
			<case tag="seamark:type" value="seabed_area" color="#555555" pathIcon="stroke_gray" pathIconStep="10"/>
			<apply additional="seamark:seabed_area:surface=rocky" color="#555555" pathIcon="seamark_j21_rocky" pathIconStep="25"/>
			<apply additional="seamark:seabed_area:surface=coral" color="#555555" pathIcon="seamark_j22_coral" pathIconStep="25"/>
		</switch>

		<switch minzoom="14" strokeWidth="0.5">
			<case tag="seamark:type" value="seabed_area" color="#555555" color_2="#555555">
				<apply_if nightMode="true" color="#888888" color_2="#888888"/>
			</case>
			<apply maxzoom="16" strokeWidth_2="2.5:2.5" pathEffect_2="1_7"/>
			<apply minzoom="17" maxzoom="17" strokeWidth_2="4:4" pathEffect_2="1_9"/>
			<apply minzoom="18" strokeWidth_2="5.5:5.5" pathEffect_2="1_13"/>
		</switch>

		<switch minzoom="7">
			<switch maxzoom="12">
				<switch>
					<case tag="highway" value="motorway" color="$motorwayRoadLowZoomColor" color__2="$motorwayRoadShadowColor" shadowColor="$motorwayRoadShadowColor"/>
					<case tag="highway" value="trunk" color="$trunkRoadLowZoomColor" color__2="$trunkRoadShadowColor" shadowColor="$trunkRoadShadowColor"/>
					<apply shadowRadius=":1"/>
					<apply>
						<case maxzoom="8" strokeWidth="1:1" strokeWidth__2="2:2"/>
						<case maxzoom="9" strokeWidth="1.2:1.2"/>
						<case maxzoom="10" strokeWidth="1.6:1.6"/>
						<case maxzoom="11" strokeWidth="1.8:1.8"/>
						<case maxzoom="12" strokeWidth="2.2:2.2"/>
						<case maxzoom="13" strokeWidth="2.5:2.5"/>
					</apply>
				</switch>
				<switch shadowRadius=":1">
					<case tag="highway" value="motorway_link" color="$motorwayRoadLowZoomColor" shadowColor="$motorwayRoadShadowColor"/>
					<case tag="highway" value="trunk_link" color="$trunkRoadLowZoomColor" shadowColor="$trunkRoadShadowColor"/>
					<apply>
						<case minzoom="11" maxzoom="11" strokeWidth="1.2:1.2"/>
						<case maxzoom="12" strokeWidth="1.6:1.6"/>
						<case maxzoom="13" strokeWidth="1.8:1.8"/>
					</apply>
				</switch>
				<apply cap="ROUND"/>
			</switch>

			<switch minzoom="7" maxzoom="13">
				<case tag="highway" value="primary">
					<apply_if maxzoom="6" strokeWidth="0.4"/>
					<apply_if minzoom="7" strokeWidth="0.9"/>
					<apply_if minzoom="9" strokeWidth="1.3:1.3"/>
					<apply_if minzoom="10" strokeWidth="1.7:1.7"/>
					<apply_if minzoom="11" strokeWidth="1.8:1.8"/>
					<apply_if minzoom="12" strokeWidth="2:2"/>
				</case>
				<case tag="highway" value="primary_link">
					<apply_if minzoom="11" maxzoom="11" strokeWidth="1.1:1.1"/>
					<apply_if minzoom="12" strokeWidth="1.4:1.4"/>
				</case>
				<apply color="$primaryRoadColor" cap="ROUND"/>
				<apply_if minzoom="9" shadowColor="#9c7136">
					<case shadowRadius=":1"/>
				</apply_if>
				<apply color="$primaryRoadLowZoomColor"/>
				<apply_if nightMode="true" shadowRadius="0"/>
			</switch>

			<switch minzoom="9" maxzoom="12">
				<case tag="highway" value="secondary">
					<apply_if maxzoom="9" strokeWidth="1.1:1.1"/>
					<apply_if minzoom="10" strokeWidth="1.3:1.3"/>
					<apply_if minzoom="11" strokeWidth="1.5:1.5"/>
					<apply_if minzoom="12" strokeWidth="1.7:1.7"/>
				</case>
				<case tag="highway" value="secondary_link">
					<apply_if minzoom="11" strokeWidth="1:1"/>
					<apply_if minzoom="12" strokeWidth="1.1:1.1"/>
				</case>
				<apply color="$secondaryRoadColor" cap="ROUND"/>
				<apply shadowRadius=":1" shadowColor="#9c7136">
					<case shadowRadius=":1"/>
				</apply>
				<apply color="$secondaryRoadLowZoomColor"/>
				<apply_if nightMode="true" shadowRadius="0"/>
			</switch>
		</switch>

		<switch minzoom="13">
			<switch shadowRadius=":1">
				<case tag="highway" value="motorway" color="$motorwayRoadColor" shadowColor="$motorwayRoadShadowColor"/>
				<case tag="highway" value="trunk" color="$trunkRoadColor" shadowColor="$trunkRoadShadowColor"/>
				<case tag="highway" value="motorway_link" color="$motorwayRoadColor" shadowColor="$motorwayRoadShadowColor"/>
				<case tag="highway" value="trunk_link" color="$trunkRoadColor" shadowColor="$trunkRoadShadowColor"/>
			</switch>
			<switch shadowColor="#9c7136" shadowRadius=":1">
				<case tag="highway" value="primary" color="$primaryRoadColor"/>
				<case tag="highway" value="primary_link" color="$primaryRoadColor"/>
				<case tag="highway" value="secondary" color="$secondaryRoadColor"/>
				<case tag="highway" value="secondary_link" color="$secondaryRoadColor"/>
				<apply_if nightMode="true" shadowColor="#b7b07b">
					<apply_if engine_v1="true" layer="-1" shadowColor="$null"/>
					<apply_if engine_v1="true" additional="layer=-2" shadowColor="$null"/>
				</apply_if>
			</switch>
			<apply cap="ROUND">
				<case maxzoom="13" strokeWidth="2:2"/>
				<case maxzoom="14" strokeWidth="3:3"/>
				<case maxzoom="15" strokeWidth="4:4"/>
				<case maxzoom="16" strokeWidth="7:7"/>
				<case maxzoom="17" strokeWidth="8.5:8.5"/>
				<case maxzoom="18" strokeWidth="10:10"/>
				<case minzoom="19" strokeWidth="11.5:11.5"/>
				<apply_if additional="tunnel=yes" pathEffect="4_4" color="$tunnelColor" shadowColor="$null" cap="BUTT"/>
				<!-- Bridges -->
				<apply_if additional="bridge=yes" color_0="#000000" cap="SQUARE" cap_0="BUTT">
					<case maxzoom="13" strokeWidth_0="3:3.9"/>
					<case maxzoom="14" strokeWidth_0="4.2:5.3"/>
					<case maxzoom="15" strokeWidth_0="5.5:6.5"/>
					<case maxzoom="16" strokeWidth_0="8:10"/>
					<case maxzoom="17" strokeWidth_0="9.5:11"/>
					<case maxzoom="18" strokeWidth_0="11:13"/>
					<case minzoom="19" strokeWidth_0="13:14"/>
					<apply_if nightMode="true" color_0="$bridgeColorNight"/>
				</apply_if>
			</apply>
		</switch>

		<switch minzoom="13">
			<case tag="highway" value="tertiary"/>
			<case tag="highway" value="tertiary_link"/>
			<apply color="$tertiaryRoadColor" shadowRadius=":1" shadowColor="#aa464646" cap="ROUND">
				<apply_if nightMode="true" shadowColor="#b7b07b"/>
				<apply_if engine_v1="true" additional="tunnel=yes" shadowColor="$null"/>
				<case color_0="#000000">
					<case maxzoom="13" strokeWidth="1.8:1.8"/>
					<case maxzoom="14" strokeWidth="2.7:3"/>
					<case maxzoom="15" strokeWidth="4:4"/>
					<case maxzoom="16" strokeWidth="5:5"/>
					<case maxzoom="17" strokeWidth="6.75:6.75"/>
					<case maxzoom="18" strokeWidth="9:9"/>
					<case minzoom="19" strokeWidth="10.5:10.5"/>
					<apply_if additional="tunnel=yes" pathEffect="4_4" color="$tunnelColor" cap="BUTT"/>
					<!-- Bridges -->
					<apply_if additional="bridge=yes" shadowRadius="0" cap="SQUARE" cap_0="BUTT">
						<case maxzoom="13" strokeWidth_0="2.5:3.5"/>
						<case maxzoom="14" strokeWidth_0="3.8:4.8"/>
						<case maxzoom="15" strokeWidth_0="4:7"/>
						<case maxzoom="16" strokeWidth_0="5:9"/>
						<case maxzoom="17" strokeWidth_0="7:10"/>
						<case maxzoom="18" strokeWidth_0="9.5:13"/>
						<case minzoom="19" strokeWidth_0="12:14"/>
						<apply_if nightMode="true" color_0="$bridgeColorNight"/>
					</apply_if>
				</case>
			</apply>
		</switch>

		<switch minzoom="13">
			<switch>
				<case tag="highway" value="unclassified"/>
				<case tag="highway" value="residential"/>
				<apply color="$residentialRoadColor">
					<apply_if nightMode="true" color="$residentialRoadColorNight"/>
				</apply>
			</switch>
			<apply shadowRadius=":1" cap="ROUND" color_0="#000000">
				<switch>
					<case maxzoom="14" strokeWidth="2:2"/>
					<case minzoom="15" maxzoom="15" strokeWidth="2.5:2.5"/>
					<case minzoom="16" maxzoom="16" strokeWidth="4.5:4.5"/>
					<case minzoom="17" maxzoom="17" strokeWidth="6:6"/>
					<case minzoom="18" maxzoom="18" strokeWidth="9:9"/>
					<case minzoom="19" strokeWidth="10.5:10.5"/>
					<apply shadowColor="$residentialRoadShadowColor"/>
				</switch>
				<!-- Bridges -->
				<apply_if additional="bridge=yes" shadowRadius="0" cap="SQUARE" cap_0="BUTT">
					<case maxzoom="14" strokeWidth_0="2.5:3.5"/>
					<case maxzoom="15" strokeWidth_0="3:4"/>
					<case maxzoom="16" strokeWidth_0="5:7"/>
					<case maxzoom="17" strokeWidth_0="7:9"/>
					<case maxzoom="18" strokeWidth_0="10:12"/>
					<case minzoom="19" strokeWidth_0="12:15"/>
					<apply_if nightMode="true" color_0="$bridgeColorNight"/>
				</apply_if>
			</apply>
		</switch>

		<switch minzoom="$roadMinZoom">
			<case tag="highway" value="road"/>
			<apply color="$roadRoadColor" shadowRadius="0">
				<switch>
					<case minzoom="14" maxzoom="14" strokeWidth="0.6:0.6"/>
					<case minzoom="15" maxzoom="15" strokeWidth="1.3:1.3"/>
					<case minzoom="16" maxzoom="16" strokeWidth="1.7:1.7"/>
					<case minzoom="17" maxzoom="17" strokeWidth="2.5:2.5"/>
					<case minzoom="18" maxzoom="18" strokeWidth="3:3"/>
					<case minzoom="19" strokeWidth="4:4"/>
				</switch>
			</apply>
		</switch>

		<switch minzoom="13">
			<switch>
				<case tag="highway" value="service"/>
				<case tag="highway" value="busway"/>
				<case tag="highway" value="rest_area"/>
				<case tag="highway" value="living_street"/>
				<apply color="$serviceRoadColor" shadowColor="$residentialRoadShadowColor"/>
			</switch>
			<case tag="highway" value="pedestrian">
				<apply color="$pedestrianRoadModeColorDay" shadowColor="$pedestrianRoadShadowColorDay">
					<apply_if nightMode="true" color="$pedestrianRoadModeColorNight" shadowColor="$pedestrianRoadShadowColorNight"/>
				</apply>
			</case>
			<apply cap="ROUND" color_0="#000000" shadowRadius=":1">
				<case maxzoom="14" strokeWidth="2.7:3"/>
				<case minzoom="15" maxzoom="15" strokeWidth="2.5:2.5"/>
				<case minzoom="16" maxzoom="16" strokeWidth="3:3"/>
				<case minzoom="17" maxzoom="17" strokeWidth="4:4"/>
				<case minzoom="18" maxzoom="18" strokeWidth="5.5:5.5"/>
				<case minzoom="19" strokeWidth="7:7"/>
				<apply_if additional="bridge=yes" shadowRadius="0" cap="SQUARE" cap_0="BUTT">
					<case maxzoom="14" strokeWidth_0="3.8:4.8"/>
					<case minzoom="15" maxzoom="15" strokeWidth_0="3:4"/>
					<case minzoom="16" maxzoom="16" strokeWidth_0="3.5:5"/>
					<case minzoom="17" maxzoom="17" strokeWidth_0="5:6"/>
					<case minzoom="18" maxzoom="18" strokeWidth_0="7:8.5"/>
					<case minzoom="19" strokeWidth_0="8:12"/>
					<apply_if nightMode="true" color_0="$bridgeColorNight"/>
				</apply_if>
			</apply>
		</switch>
		<switch minzoom="13">
			<case tag="highway" value="track" color="$trackColor" strokeWidth="$trackStrokeWidth" pathEffect="4_2">
				<apply_if additional="bridge=yes" maxzoom="16" color="$null"/>
			</case>
			<case tag="highway" value="path" color="$pathColor" strokeWidth="$pathStrokeWidth" pathEffect="$pathPathEffect"/>
			<case tag="highway" value="footway" color="$footwayColor" strokeWidth="$footwayStrokeWidth" pathEffect="4_2"/>
			<case tag="highway" value="cycleway" color="$footwayColor" strokeWidth="$footwayStrokeWidth" pathEffect="4_2"/>
			<case tag="highway" value="steps" color="$footwayColor" strokeWidth="2:2" pathEffect="1_2"/>

			<!-- Bridges -->
			<apply_if additional="bridge=yes" minzoom="13" color__1="#000000" color_0="#fddb8f">
				<case strokeWidth__1="$trackBridgeWidth" strokeWidth_0="$trackBridgeInnerWidth"/>
				<apply_if nightMode="true" color__1="$bridgeColorNight" color_0="#464234"/>
			</apply_if>
		</switch>

		<case minzoom="13" tag="railway" value="rail">
			<case additional="bridge=yes" minzoom="13" color="#000000" strokeWidth="3:5" color_2="#fff7db" strokeWidth_2="2.5:3.5" color_3="#000000" strokeWidth_3="0.7" pathEffect_3="12_8_1_0"/>
			<switch>
				<case minzoom="13" maxzoom="14" color="#c8ba8d" color_2="#55ffffff">
					<apply_if nightMode="true" color="#5d5b41"/>
				</case>
				<case minzoom="15" color="$railwayRailColorDay" color_2="#ffffff">
					<apply_if nightMode="true" color="$railwayRailColorNight"/>
				</case>
				<apply strokeWidth="1:2" strokeWidth_2="0.9" pathEffect_2="0_11_8_1"/>
			</switch>
			<apply_if nightMode="true" color_2="#bbb99d"/>
		</case>

		<switch>
			<switch minzoom="13">
				<case tag="waterway" value="stream">
					<case additional="tunnel=yes" pathEffect_2="4_2">
						<case maxzoom="13" strokeWidth_2="0.6"/>
						<case maxzoom="14" strokeWidth_2="0.8"/>
						<case maxzoom="16" strokeWidth_2="1:1"/>
						<case maxzoom="17" strokeWidth_2="1.2:1.2"/>
						<case minzoom="18" strokeWidth_2="1.7:1.7"/>
					</case>
					<apply minzoom="15" pathIcon="arrow_blue_big">
						<case maxzoom="15" pathIconStep="70"/>
						<case minzoom="16" pathIconStep="60"/>
						<apply_if additional="intermittent=yes" pathIconStep="150"/>
						<apply_if additional="tunnel=yes" pathIcon=""/>
					</apply>
				</case>
				<case tag="waterway" value="wadi">
					<case maxzoom="13" pathEffect="4.5_3"/>
					<case maxzoom="14" pathEffect="6_4"/>
					<case maxzoom="16" pathEffect="8_5"/>
					<case maxzoom="17" pathEffect="9_5.5"/>
					<case minzoom="18" pathEffect="12_7"/>
				</case>
				<apply_if minzoom="13" maxzoom="13" strokeWidth="0.7" strokeWidth_3="0.7"/>
				<apply_if minzoom="14" maxzoom="14" strokeWidth="0.9" strokeWidth_3="0.9"/>
				<apply_if minzoom="15" maxzoom="16" strokeWidth="1.2:1.2" strokeWidth_3="1.2:1.2"/>
				<apply_if minzoom="17" maxzoom="17" strokeWidth="1.4:1.4" strokeWidth_3="1.4:1.4"/>
				<apply_if minzoom="18" strokeWidth="2:2" strokeWidth_3="2:2"/>
			</switch>
			<switch minzoom="5">
				<switch>
					<case tag="waterway" value="river"/>
					<case tag="waterway" value="flowline"/>
					<case tag="lock" value="yes" additional="osmand_lock_river=yes"/>
					<apply minzoom="6" pathIcon="arrow_blue_big">
						<case maxzoom="11" pathIconStep="70"/>
						<case minzoom="12" maxzoom="15" pathIconStep="70"/>
						<case minzoom="16" pathIconStep="90"/>
						<apply_if additional="intermittent=yes" pathIconStep="150"/>
					</apply>
				</switch>
				<switch>
					<case tag="waterway" value="canal"/>
					<case tag="lock" value="yes" additional="osmand_lock_canal=yes"/>
					<apply minzoom="14" pathIcon="arrow_blue_big">
						<case maxzoom="15" pathIconStep="70"/>
						<case minzoom="16" pathIconStep="70"/>
						<apply_if additional="intermittent=yes" pathIconStep="150"/>
					</apply>
				</switch>
				<apply>
					<case additional="tunnel=yes" minzoom="13" pathEffect_2="4_2">
						<case maxzoom="13" strokeWidth_2="0.6"/>
						<case maxzoom="14" strokeWidth_2="1.5:1.5"/>
						<case maxzoom="16" strokeWidth_2="2:2"/>
						<case maxzoom="17" strokeWidth_2="4:4"/>
						<case minzoom="18" strokeWidth_2="5:5"/>
						<apply pathIcon=""/>
					</case>
					<apply_if maxzoom="9" strokeWidth="0.7"/>
					<apply_if minzoom="10" maxzoom="12" strokeWidth="1:1"/>
					<apply_if minzoom="13" maxzoom="13" strokeWidth="1.5:1.5" strokeWidth_3="1.5:1.5"/>
					<apply_if minzoom="14" maxzoom="14" strokeWidth="2.5:2.5" strokeWidth_3="2.5:2.5"/>
					<apply_if minzoom="15" maxzoom="16" strokeWidth="3:3" strokeWidth_3="3:3"/>
					<apply_if minzoom="17" maxzoom="17" strokeWidth="5:5" strokeWidth_3="5:5"/>
					<apply_if minzoom="18" strokeWidth="6:6" strokeWidth_3="6:6"/>
				</apply>
			</switch>

			<switch minzoom="13">
				<case tag="waterway" value="ditch"/>
				<case tag="waterway" value="drain"/>
				<apply>
					<case additional="tunnel=yes" pathEffect_2="3_1.6">
						<case maxzoom="13" strokeWidth_2="0.3"/>
						<case maxzoom="14" strokeWidth_2="0.4"/>
						<case maxzoom="16" strokeWidth_2="0.5"/>
						<case maxzoom="17" strokeWidth_2="0.6"/>
						<case minzoom="18" strokeWidth_2="0.9"/>
					</case>
					<apply_if minzoom="13" maxzoom="13" strokeWidth="0.5" strokeWidth_3="0.5"/>
					<apply_if minzoom="14" maxzoom="14" strokeWidth="0.7" strokeWidth_3="0.7"/>
					<apply_if minzoom="15" maxzoom="16" strokeWidth="0.9" strokeWidth_3="0.9"/>
					<apply_if minzoom="17" maxzoom="17" strokeWidth="1" strokeWidth_3="1"/>
					<apply_if minzoom="18" strokeWidth="1.1:1.1" strokeWidth_3="1.1:1.1"/>
				</apply>
			</switch>
			<apply_if additional="intermittent=yes">
				<case maxzoom="13" pathEffect="4.5_3"/>
				<case maxzoom="14" pathEffect="6_4"/>
				<case maxzoom="16" pathEffect="8_5"/>
				<case maxzoom="17" pathEffect="9_5.5"/>
				<case minzoom="18" pathEffect="12_7"/>
			</apply_if>
			<!-- Waterway color -->
			<apply color="$waterwayColor" color_2="#fddb8f">
				<apply_if nightMode="true" color_2="#7340D9"/>
			</apply>
			<apply_if whiteWaterSports="true">
				<switch>
					<case additional="whitewater:section_grade=0" color_2="$whitewaterSectionGrade0Color" onewayArrowsColor="#0080AB"/>
					<case additional="whitewater:section_grade=1" color_2="$whitewaterSectionGrade1Color" onewayArrowsColor="#438600"/>
					<case additional="whitewater:section_grade=2" color_2="$whitewaterSectionGrade2Color" onewayArrowsColor="#9D8C34"/>
					<case additional="whitewater:section_grade=3" color_2="$whitewaterSectionGrade3Color" onewayArrowsColor="#9E6600"/>
					<case additional="whitewater:section_grade=4" color_2="$whitewaterSectionGrade4Color" onewayArrowsColor="#800000"/>
					<case additional="whitewater:section_grade=5" color_2="$whitewaterSectionGrade5Color" onewayArrowsColor="#611F81"/>
					<case additional="whitewater:section_grade=6" color_2="$whitewaterSectionGrade6Color" onewayArrowsColor="#B2B2B2"/>
					<apply_if maxzoom="13" strokeWidth_2="6"/>
					<apply_if minzoom="14" maxzoom="15" strokeWidth_2="10"/>
					<apply_if minzoom="16" maxzoom="17" strokeWidth_2="14"/>
					<apply_if minzoom="18" strokeWidth_2="18"/>
				</switch>
			</apply_if>
			<apply_if whiteWaterSports="true">
				<switch>
					<case additional="whitewater:rapid_grade=0" color_3="$whitewaterRapidGrade0Color"/>
					<case additional="whitewater:rapid_grade=1" color_3="$whitewaterRapidGrade1Color"/>
					<case additional="whitewater:rapid_grade=2" color_3="$whitewaterRapidGrade2Color"/>
					<case additional="whitewater:rapid_grade=3" color_3="$whitewaterRapidGrade3Color"/>
					<case additional="whitewater:rapid_grade=4" color_3="$whitewaterRapidGrade4Color"/>
					<case additional="whitewater:rapid_grade=5" color_3="$whitewaterRapidGrade5Color"/>
					<case additional="whitewater:rapid_grade=6" color_3="$whitewaterRapidGrade6Color"/>
					<apply_if maxzoom="13" strokeWidth_3="6" pathEffect_3="1_9"/>
					<apply_if minzoom="14" maxzoom="15" strokeWidth_3="10" pathEffect_3="1_15"/>
					<apply_if minzoom="16" maxzoom="17" strokeWidth_3="14" pathEffect_3="1_22"/>
					<apply_if minzoom="18" strokeWidth_3="18" pathEffect_3="1_30"/>
					<apply cap_3="ROUND"/>
				</switch>
			 </apply_if>

			<apply>
				<switch>
					<case additional="boat=no"/>
					<case additional="boat=private"/>
					<apply color_3="$accessPrivateColor" cap_3="ROUND" pathIcon=""/>
					<apply_if minzoom="13" maxzoom="14" pathEffect_3="1_11"/>
					<apply_if minzoom="15" maxzoom="15" pathEffect_3="1_15"/>
					<apply_if minzoom="16" maxzoom="17" pathEffect_3="1_19"/>
					<apply_if minzoom="18" pathEffect_3="1_24"/>
				</switch>
			</apply>
		</switch>

		<switch minzoom="14" whiteWaterSports="true">
			<case tag="whitewater" value="portage_way"/>
			<apply_if maxzoom="15" strokeWidth="3" pathEffect="6_3"/>
			<apply_if minzoom="16" maxzoom="16" strokeWidth="4" pathEffect="8_4"/>
			<apply_if minzoom="17" strokeWidth="6" pathEffect="10_5"/>
			<apply color="#EE003CB0"/>
		</switch>

		<switch minzoom="18">
			<case tag="waterway" value="fish_pass" pathIcon="fish_pass_map" pathIconStep="70"/>
			<apply_if color="#45B1E5" strokeWidth="1.1:1.1"/>
			<apply_if nightMode="true" color="#1859A8"/>
		</switch>

		<switch>
			<case minzoom="15" tag="waterway" value="weir" strokeWidth="1:1"/>
			<switch minzoom="12">
				<case tag="waterway" value="dam"/>
				<case tag="seamark:type" value="dam"/>
				<apply>
					<case maxzoom="15" strokeWidth="1:1"/>
					<case maxzoom="17" strokeWidth="2:2"/>
					<case minzoom="18" strokeWidth="4:4"/>
				</apply>
			</switch>
			<apply color="#555555">
				<apply_if nightMode="true" color="#eeeeee"/>
			</apply>
		</switch>
		<switch minzoom="16">
			<case tag="waterway" value="waterfall"/>
			<apply_if engine_v1="true">
				<case maxzoom="16" strokeWidth="3.5:3.5" pathEffect="1_7"/>
				<case maxzoom="17" strokeWidth="4.5:4.5" pathEffect="1_9"/>
				<case minzoom="18" strokeWidth="6.5:6.5" pathEffect="1_13"/>
				<apply color="#6c6ce2" color_2="#3f3f3f" strokeWidth_2="0.6"/>
				<apply_if nightMode="true" color="#9dbde1" color_2="#9dbde1"/>
			</apply_if>
			<apply_if engine_v1="false" color="#6c6ce2" strokeWidth="0.6" pathIcon="stroke_black" pathIconStep="13">
				<apply_if nightMode="true" pathIcon="stroke_gray" color="#9dbde1"/>
			</apply_if>
		</switch>
		<switch minzoom="15">
			<case tag="seamark:type" value="gate"/>
			<case tag="waterway" value="lock_gate"/>
			<case minzoom="15" tag="whitewater" value="rapid" pathEffect="1_12" cap="ROUND"/>
			<case minzoom="15" tag="seamark:type" value="rapids" pathEffect="1_12" cap="ROUND"/>
			<apply color="#555555">
				<case maxzoom="15" strokeWidth="1:1"/>
				<case maxzoom="17" strokeWidth="2:2"/>
				<case minzoom="18" strokeWidth="3:3"/>
				<apply_if nightMode="true" color="#555555"/>
			</apply>
		</switch>

		<switch minzoom="13">
			<case tag="seamark:type" value="wall"/>
			<case tag="seamark:type" value="dyke"/>
			<case tag="seamark:type" value="oil_barrier"/>
			<case tag="man_made" value="groyne"/>
			<case tag="man_made" value="breakwater"/>
			<apply color="#aaaaaa">
				<case maxzoom="13" strokeWidth="0.6"/>
				<case maxzoom="15" strokeWidth="1:1"/>
				<case minzoom="16" strokeWidth="2:2"/>
			</apply>
		</switch>
		<case minzoom="11" tag="seamark:type" value="obstruction" color="#ff0000">
			<apply>
				<case maxzoom="12" strokeWidth="1.5" pathEffect="2_2"/>
				<case maxzoom="14" strokeWidth="2" pathEffect="2_3"/>
				<case maxzoom="16" strokeWidth="3" pathEffect="2_4"/>
				<case minzoom="17" strokeWidth="4" pathEffect="2_5"/>
			</apply>
			<apply_if nightMode="true" color="#aaff0000"/>
		</case>

		<switch>
			<case tag="natural" value="strait"/>
			<case tag="natural" value="bay"/>
			<apply strokeWidth="0.1" color="$null"/>
		</switch>

		<case minzoom="11" tag="natural" value="ridge" color="#666666" color_2="#000000">
			<case maxzoom="11" strokeWidth="0.2"/>
			<case maxzoom="12" strokeWidth="0.5"/>
			<case maxzoom="13" strokeWidth="0.7" strokeWidth_2="1.1:1.1" pathEffect_2="1_23"/>
			<case maxzoom="14" strokeWidth="0.9" strokeWidth_2="1.5:1.5" pathEffect_2="1_27"/>
			<case maxzoom="15" strokeWidth="1.3:1.3" strokeWidth_2="1.7:1.7" pathEffect_2="1_32"/>
			<case minzoom="16" strokeWidth="1.5:1.5" strokeWidth_2="1.8:1.8" pathEffect_2="1_37"/>
			<apply_if nightMode="true" color="#666666" color_2="#999999"/>
		</case>

		<case minzoom="8" tag="route" value="ferry" hideFerries="false" color="#4E77FF" strokeWidth="1:1" pathEffect="6_3">
			<apply_if minzoom="16"> <!-- for new OpenGL engine only -->
				<apply_if additional="oneway=yes" pathIcon="oneway_blue" pathIconStep="70"/>
				<apply additional="oneway=-1" pathIcon="oneway_reverse_blue" pathIconStep="70"/>
			</apply_if>
		</case>

		<switch color="#999999">
			<switch minzoom="14">
				<case tag="power" value="line">
					<apply_if engine_v1="false" pathIcon="seamark_power_line" pathIconStep="55"/>
				</case>
				<apply>
					<case maxzoom="14" strokeWidth="0.6"/>
					<case minzoom="15" strokeWidth="0.7"/>
				</apply>
			</switch>
			<case minzoom="15" tag="power" value="minor_line" strokeWidth="0.3"/>
			<apply_if nightMode="true" color="#777777"/>
		</switch>
		<case tag="seamark:type" value="cable_overhead">
			<apply color="#333333" color_2="#333333"/>
			<apply>
				<case maxzoom="14" strokeWidth="0.6" strokeWidth_2="3" pathEffect_2="0_15" cap_2="ROUND"/>
				<case minzoom="15" maxzoom="17" strokeWidth="0.7" strokeWidth_2="3.5" pathEffect_2="0_20" cap_2="ROUND"/>
				<case minzoom="18" strokeWidth="1" strokeWidth_2="4" pathEffect_2="0_29" cap_2="ROUND"/>
			</apply>
			<apply_if nightMode="true" color="#777777" color_2="#777777"/>
		</case>

		<switch minzoom="17">
			<case tag="seamark:type" value="conveyor"/>
			<case tag="man_made" value="goods_conveyor"/>
			<apply strokeWidth="1:1" strokeWidth_2="3:3" color="$footwayColor" color_2="$footwayColor" pathEffect_2="2_2"/>
		</switch>

		<!-- Admin levels (boundaries) -->
		<switch minzoom="2">
			<!-- does admin_level=0 exist?? -->
			<case tag="admin_level" value="0"/>
			<case tag="admin_level" value="1"/>
			<case tag="admin_level" value="2"/>
			<apply color="$boundaryColorOuter" color_0="$boundaryColorInner">
				<case maxzoom="2" strokeWidth="0.8"/>
				<case maxzoom="3" strokeWidth="0.1" strokeWidth_0="0.8"/>
				<case maxzoom="4" strokeWidth="1:1" strokeWidth_0="2:2"/>
				<case maxzoom="5" strokeWidth="2:2" strokeWidth_0="2:2"/>
				<case maxzoom="6" strokeWidth="3:3" strokeWidth_0="1.5:1.5"/>
				<case maxzoom="8" strokeWidth="4:4" strokeWidth_0="1.5:1.5"/>
				<case minzoom="9" strokeWidth="6:6" strokeWidth_0="1.5:1.5"/>
<!--				<apply_if nightMode="true" color="#22b21cb2" color_0="#44ffb3ff"/>-->
			</apply>
		</switch>

		<switch minzoom="4">
			<case tag="admin_level" value="3" pathEffect="6_1"/>
			<case noAdminboundaries="false" tag="admin_level" value="4" pathEffect="6_1"/>
			<apply color="$boundaryColorOuter" color_0="$boundaryColorInner">
				<case maxzoom="6" strokeWidth="1.5:1.5" strokeWidth_0="0.6"/>
				<case maxzoom="8" strokeWidth="2.5:2.5" strokeWidth_0="0.6"/>
				<case minzoom="9" strokeWidth="4.5:4.5" strokeWidth_0="1:1"/>
			</apply>
		</switch>

		<switch noAdminboundaries="false">
			<switch>
				<case tag="admin_level" value="5" minzoom="11" pathEffect="6_3_2_3_2_3" pathEffect_0="6_3_2_3_2_3"/>
				<case tag="admin_level" value="6" minzoom="11" pathEffect="6_3_2_3" pathEffect_0="6_3_2_3"/>
				<case tag="admin_level" value="7" minzoom="12" pathEffect="5_1" pathEffect_0="5_1"/>
				<case tag="admin_level" value="8" minzoom="12" pathEffect="5_1" pathEffect_0="5_1"/>
				<case tag="admin_level" value="9" minzoom="13" pathEffect="4_1" pathEffect_0="4_1"/>
				<case tag="admin_level" value="10" minzoom="13" pathEffect="4_1" pathEffect_0="4_1"/>
				<apply color="$boundaryColorOuter" color_0="$boundaryColorInner" strokeWidth="3:3" strokeWidth_0="0.6"/>
			</switch>
			<case tag="boundary" value="national_park" minzoom="7">
				<case maxzoom="9" strokeWidth="1.5:1.5"/>
				<case minzoom="10" strokeWidth="3:3"/>
				<apply color="#2909dd09" color_0="#55097309" strokeWidth_0="0.6" pathEffect="4_1" pathEffect_0="4_1"/>
				<apply_if nightMode="true" color="#2009dd09"/>
			</case>
		</switch>
		<case tag="osmand_change" value="delete"/>
	</line>
</renderingStyle>
