Changes between Initial Version and Version 1 of Styles/UkraineRoadNetwork


Ignore:
Timestamp:
2024-02-02T11:24:55+01:00 (2 years ago)
Author:
bezdna
Comment:

First version for show Ukraine Road Network

Legend:

Unmodified
Added
Removed
Modified
  • Styles/UkraineRoadNetwork

    v1 v1  
     1= [[Image(UkraineRoadNetwork.png,36,middle,inline)]] Ukraine Road Network =
     2
     3== Description ==
     4
     5You can use this mappaint style together with the default JOSM internal mappaint style. You can adjust the appearance in the [[Help/Dialog/MapPaint/StyleSettings|style settings]] of this style.
     6
     7For ideas/questions/bugs/suggestions or similar please write a message to [osmwww:user/Anton%20Melnichuk Anton Melnichuk].
     8
     9
     10{{{
     11#!style type="mapcss"
     12
     13meta {
     14        title: "Ukraine Road Network";
     15        version: "0.1.[[revision]]_[[date]]";
     16        description: "This style will help determine the grid of Ukrainian roads that are and are accounted for by Ukrainian legislation, and will help to correct errors, find intersections, as well as holes in the road graph.";
     17        author: "Anton Melnichuk";
     18        icon: "UkraineRoadNetwork.png";
     19        link: "https://josm.openstreetmap.de/wiki/Styles/UkraineRoadNetwork";
     20}
     21meta[lang=uk]
     22{
     23        title: "Українська мережа доріг";
     24        description: "Цей стиль допоможе визначити сітку Українських дорог які є і обліковуються Українським законодавством, і допоможе виправити помилки, знайти перетини, а також дірки у дорожному графі.";
     25}
     26
     27setting::colordisplayM {
     28        type: color;
     29        label: tr("Color used for displaying 'М-' Roads");
     30        default: colorDisplayCustomPref#42FF77;
     31}
     32setting::colordisplayH {
     33        type: color;
     34        label: tr("Color used for displaying 'H-' Roads");
     35        default: colorDisplayCustomPref#FFA03C;
     36}
     37setting::colordisplayP {
     38        type: color;
     39        label: tr("Color used for displaying 'P-' Roads");
     40        default: colorDisplayCustomPref#FF6161;
     41}
     42setting::colordisplayT {
     43        type: color;
     44        label: tr("Color used for displaying 'T-' Roads");
     45        default: colorDisplayCustomPref#0cc299;
     46}
     47setting::colordisplayO {
     48        type: color;
     49        label: tr("Color used for displaying 'O-' Roads");
     50        default: colorDisplayCustomPref#548EFF;
     51}
     52setting::colordisplayC {
     53        type: color;
     54        label: tr("Color used for displaying 'C-' Roads");
     55        default: colorDisplayCustomPref#2E4E8C;
     56}
     57
     58/***************************************************/
     59/*  Загальний набор стилей для визначення доріг в мережі */
     60/***************************************************/
     61relation[type="route"][route="road"][ref]> way|z12-14[highway] {
     62        text: ref;
     63        text-offset: -9;
     64        font-size: 10;
     65        text-halo-color: current;
     66        text-halo-radius: 2;
     67}
     68
     69relation[type="route"][route="road"][ref]> way|z13-18[highway] {
     70        text: ref;
     71        text-offset: -9;
     72        font-size: 12;
     73    text-halo-color: current;
     74        text-halo-radius: 2;
     75
     76}
     77
     78way[highway][ref=~/М-.|Н-.|Р-.|Т-.|О.|С./] {
     79        width: 3;
     80        opacity: 0.6;
     81        casing-width: 2;
     82        casing-color: #fff;
     83        casing-opacity: 0.4;
     84        casing-dashes: 30,10;
     85}
     86
     87way[highway][ref ^= "М-"] {
     88        color: #42FF77;
     89        color: setting("colordisplayM");
     90}
     91way[highway][ref ^= "Н-"] {
     92        color: #FFA03C;
     93        color: setting("colordisplayH");
     94}
     95way[highway][ref ^= "Р-"] {
     96        color: #FF6161;
     97        color: setting("colordisplayP");
     98}
     99way[highway][ref ^= "Т-"] {
     100        color: #0cc299;
     101        color: setting("colordisplayT");
     102}
     103way[highway][ref ^= "О"] {
     104        color: #548EFF;
     105        color: setting("colordisplayO");
     106}
     107way[highway][ref ^= "С"] {
     108        color: #2E4E8C;
     109        color: setting("colordisplayC");
     110}
     111relation[type="route"][route="road"][ref=~/М-.|Н-.|Р-.|Т-.|О.|С./] > way[highway]{
     112        width: 5;
     113        opacity: 1;
     114        casing-opacity: 0;
     115}
     116
     117/***************************************************/
     118/* ці стилі допоможуть виявляти проблеми з мережею */
     119/***************************************************/
     120
     121/* Відношення е, але немае REF у вея для відношення! */
     122relation[type="route"][route="road"] > way[highway][!ref] {
     123        dashes: 30,5;
     124        dashes-background-color: black;
     125       
     126}
     127}}}
     128