Changeset 15496 in josm for trunk/data/validator


Ignore:
Timestamp:
2019-11-02T15:11:34+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #16796 - Rework of GPX track colors / layer preferences (patch by Bjoeni)

Location:
trunk/data/validator
Files:
2 edited

Legend:

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

    r15464 r15496  
    662662  assertMatch: "way roof:color=red roof:colour=green";
    663663}
    664   /* further more universal checks, no autofix */
    665 *[/:color/][!building:color][!roof:color] {
     664/* further more universal checks, no autofix */
     665/* gpxd:color has another warning in unnecessary.mapcss */
     666*[/:color/][!building:color][!roof:color][!gpxd:color] {
    666667  throwWarning: tr("{0} is deprecated", "{0.key}");
    667668  suggestAlternative: ":colour";
  • trunk/data/validator/unnecessary.mapcss

    r15419 r15496  
    168168
    169169/* #2760 */
    170 *[/^gpx:/] {
     170*[/^(gpx|gpxx|gpxd):/] {
    171171  throwWarning: tr("{0} should not be uploaded", "{0.key}");
    172172  group: tr("unnecessary tag");
    173173  fixRemove: "{0.key}";
    174174  assertMatch: "node gpx:time=2018-01-01T12:00:00Z";
     175  assertMatch: "node gpxd:color=#FF0000";
    175176  assertNoMatch: "node source=gpx:foo";
    176177}
Note: See TracChangeset for help on using the changeset viewer.