Changeset 13083 in josm


Ignore:
Timestamp:
2017-11-05T16:23:08+01:00 (2 weeks ago)
Author:
Klumbumbus
Message:

fix #15503 - draw administrative boundaries only if boundary=administrative is tagged; add a warning for usage on nodes (used 330 times atm)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/geometry.mapcss

    r13074 r13083  
    4646  assertMatch: "node bridge=yes";
    4747  assertMatch: "node bridge=viaduct";
     48}
     49
     50/* {0} on a node, should be a way or relation */
     51node[boundary=administrative] {
     52  throwWarning: tr("{0} on a node. Should be used on a way or relation.", "{0.tag}");
    4853}
    4954
  • trunk/styles/standard/elemstyles.mapcss

    r13052 r13083  
    44254425    dashes: 9,9;
    44264426}
    4427 way[admin_level=9]::core_boundary,
    4428 relation[admin_level=9] > way::core_boundary,
    4429 way[admin_level=10]::core_boundary,
    4430 relation[admin_level=10] > way::core_boundary {
     4427way[boundary=administrative][admin_level=9]::core_boundary,
     4428relation[boundary=administrative][admin_level=9] > way::core_boundary,
     4429way[boundary=administrative][admin_level=10]::core_boundary,
     4430relation[boundary=administrative][admin_level=10] > way::core_boundary {
    44314431    z-index: 2;
    44324432    modifier: false;
     
    44354435    dashes: 9,9;
    44364436}
    4437 way[admin_level=7]::core_boundary,
    4438 relation[admin_level=7] > way::core_boundary,
    4439 way[admin_level=8]::core_boundary,
    4440 relation[admin_level=8] > way::core_boundary {
     4437way[boundary=administrative][admin_level=7]::core_boundary,
     4438relation[boundary=administrative][admin_level=7] > way::core_boundary,
     4439way[boundary=administrative][admin_level=8]::core_boundary,
     4440relation[boundary=administrative][admin_level=8] > way::core_boundary {
    44414441    z-index: 2;
    44424442    modifier: false;
     
    44454445    dashes: 9,9;
    44464446}
    4447 way[admin_level=5]::core_boundary,
    4448 relation[admin_level=5] > way::core_boundary,
    4449 way[admin_level=6]::core_boundary,
    4450 relation[admin_level=6] > way::core_boundary {
     4447way[boundary=administrative][admin_level=5]::core_boundary,
     4448relation[boundary=administrative][admin_level=5] > way::core_boundary,
     4449way[boundary=administrative][admin_level=6]::core_boundary,
     4450relation[boundary=administrative][admin_level=6] > way::core_boundary {
    44514451    z-index: 2;
    44524452    modifier: false;
     
    44554455    dashes: 9,9;
    44564456}
    4457 way[admin_level=3]::core_boundary,
    4458 relation[admin_level=3] > way::core_boundary,
    4459 way[admin_level=4]::core_boundary,
    4460 relation[admin_level=4] > way::core_boundary {
     4457way[boundary=administrative][admin_level=3]::core_boundary,
     4458relation[boundary=administrative][admin_level=3] > way::core_boundary,
     4459way[boundary=administrative][admin_level=4]::core_boundary,
     4460relation[boundary=administrative][admin_level=4] > way::core_boundary {
    44614461    z-index: 2;
    44624462    modifier: false;
     
    44654465    dashes: 9,9;
    44664466}
    4467 way[admin_level=1]::core_boundary,
    4468 relation[admin_level=1] > way::core_boundary,
    4469 way[admin_level=2]::core_boundary,
    4470 relation[admin_level=2] > way::core_boundary {
     4467way[boundary=administrative][admin_level=1]::core_boundary,
     4468relation[boundary=administrative][admin_level=1] > way::core_boundary,
     4469way[boundary=administrative][admin_level=2]::core_boundary,
     4470relation[boundary=administrative][admin_level=2] > way::core_boundary {
    44714471    z-index: 2;
    44724472    modifier: false;
Note: See TracChangeset for help on using the changeset viewer.