/*
OpenRailwayMap Style File for JOSM
OpenRailwayMap - Copyright (C) 2023 user: mikeho
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
See https://wiki.openstreetmap.org/wiki/OpenRailwayMap for details.

Format details: https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation
                https://wiki.openstreetmap.org/wiki/MapCSS/0.2
*/

meta {
	title:       "JOSM - test for function parent_way_angle - 02.03.2023 - Version 1.0";
	version:     "1.0";
	description: "Style to display the result of function parent_way_angle.";
	author:      "mikeho";
	watch-modified: true;
}

node|z18-::layer_speed_for1 { 
	z-index: 			400;
	text-offset-x:		0;
	text-offset-y:		26;
	font-size: 			18;
	text: 				concat("angle: ", parent_way_angle(), " << length: ", length( concat( parent_way_angle() ) ), " <<" );

	text-position:  	line;
	text-color:			#F44; 	text-halo-opacity: 1;
	text-halo-color:  	#202020;	text-halo-radius:  4;
	text-allow-overlap: true; 
}
node|z18-::layer_speed_for2 { 
	z-index: 			402;
	text-offset-x:		0;
	text-offset-y:		6;
	font-size: 			18;
	text: 				concat("angle: ", eval( parent_way_angle() + 0.001 ), " <<" );

	text-position:  	line;
	text-color:			#F44; 	text-halo-opacity: 1;
	text-halo-color:  	#202020;	text-halo-radius:  4;
	text-allow-overlap: true; 
}