From 8c9364e0e878f021dfc3388f56f91c5ffee5f57c Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Thu, 16 Jun 2022 09:43:12 +0300 Subject: [PATCH] [styles] Added embankment triangles pattern for z16. Signed-off-by: Viktor Govako --- data/styles/clear/include/Basemap.mapcss | 19 +++++++++---------- data/styles/vehicle/include/Basemap.mapcss | 21 ++++++++++----------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/data/styles/clear/include/Basemap.mapcss b/data/styles/clear/include/Basemap.mapcss index 079aca914d..61fc69e2d1 100644 --- a/data/styles/clear/include/Basemap.mapcss +++ b/data/styles/clear/include/Basemap.mapcss @@ -703,22 +703,21 @@ line|z18-[barrier=wall], line|z18-[historic=citywalls], {width: 2.0; dashes: 2.5,2.5; opacity: 1;} -/* ToDo: Make linear style with small triangles pointing downwards, when drape will be ready */ -line|z16[natural=cliff], -line|z16[natural=earth_bank], -line|z16[man_made=embankment], -{color: @path; width: 1.0; opacity: 0.5;} - -line|z17-[natural=cliff], -line|z17-[natural=earth_bank], -line|z17-[man_made=embankment], /* 4 values tuple: dash (===), triangle base (tb), triangle height, base height. ===\tb /=== - base height \ / | - triangle height - Set width = 6 to be equal with triangle height + base height. + Line 'width' should be equal with triangle height + base height. */ +line|z16[natural=cliff], +line|z16[natural=earth_bank], +line|z16[man_made=embankment], +{color: @path; width: 4; dashes: 2,2,3,1; opacity: 0.5;} + +line|z17-[natural=cliff], +line|z17-[natural=earth_bank], +line|z17-[man_made=embankment], {color: @path; width: 7.0; dashes: 4,4,5,2; opacity: 1;} /* 9. ISOLINES */ diff --git a/data/styles/vehicle/include/Basemap.mapcss b/data/styles/vehicle/include/Basemap.mapcss index e777df4db3..20e27c1dc4 100644 --- a/data/styles/vehicle/include/Basemap.mapcss +++ b/data/styles/vehicle/include/Basemap.mapcss @@ -611,20 +611,19 @@ line|z18-[barrier=wall], line|z18-[historic=citywalls], {width: 2.0; dashes: 2.5,2.5; opacity: 1;} -/* ToDo: Make linear style with small triangles pointing downwards, when drape will be ready */ -line|z16[natural=cliff], -line|z16[natural=earth_bank], -line|z16[man_made=embankment], -{color: @path; width: 1.0; opacity: 0.5;} - -line|z17-[natural=cliff], -line|z17-[natural=earth_bank], -line|z17-[man_made=embankment], /* 4 values tuple: dash (===), triangle base (tb), triangle height, base height. ===\tb /=== - base height \ / | - triangle height - Set width = 6 to be equal with triangle height + base height. + Line 'width' should be equal with triangle height + base height. */ -{color: @path; width: 7.0; dashes: 4,4,5,2; opacity: 1;} +line|z16[natural=cliff], +line|z16[natural=earth_bank], +line|z16[man_made=embankment], +{color: @path; width: 4; dashes: 2,2,3,1; opacity: 0.5;} + +line|z17-[natural=cliff], +line|z17-[natural=earth_bank], +line|z17-[man_made=embankment], +{color: @path; width: 7; dashes: 4,4,5,2; opacity: 1;}