Changeset 8725 in josm
- Timestamp:
- 2015-09-03T23:05:24+02:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/defaultpresets.xml
r8707 r8725 1277 1277 <key key="highway" value="traffic_mirror" /> 1278 1278 </item> <!-- Traffic Mirror --> 1279 <item name="Highway milestone" icon="styles/standard/vehicle/milestone.svg" type="node" preset_name_label="true"> 1280 <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=milestone" /> 1281 <key key="highway" value="milestone" /> 1282 <text key="distance" text="Distance (kilometers)" /> 1283 <text key="ref" text="Reference" /> 1284 </item> <!-- Highway Milestone --> 1279 1285 <item name="Named Junction" name_context="junction=yes" type="node,closedway" preset_name_label="true"> 1280 1286 <link href="http://wiki.openstreetmap.org/wiki/Tag:junction=yes" … … 2353 2359 <text key="ref" text="Reference" /> 2354 2360 </item> <!-- Railway Switch --> 2361 <item name="Railway milestone" icon="styles/standard/vehicle/milestone.svg" type="node" preset_name_label="true"> 2362 <link href="http://wiki.openstreetmap.org/wiki/Tag:railway=milestone" /> 2363 <key key="railway" value="milestone" /> 2364 <text key="distance" text="Distance (kilometers)" /> 2365 <text key="ref" text="Reference" /> 2366 </item> <!-- Railway Milestone --> 2355 2367 </group> <!-- Railway --> 2356 2368 <group name="Aerialway" icon="presets/aerialway.png"> -
trunk/data/validator/deprecated.mapcss
r8699 r8725 513 513 suggestAlternative: "..."; 514 514 } 515 516 /* see #8717 */ 517 *[kp][highway=milestone], 518 *[kp][railway=milestone], 519 *[kp][waterway=milestone] { 520 throwWarning: tr("{0} is deprecated", "{0.key}"); 521 suggestAlternative: "distance"; 522 fixChangeKey: "kp => distance"; 523 } 524 *[pk][highway=milestone], 525 *[pk][railway=milestone], 526 *[pk][waterway=milestone] { 527 throwWarning: tr("{0} is deprecated", "{0.key}"); 528 suggestAlternative: "distance"; 529 fixChangeKey: "pk => distance"; 530 } -
trunk/data/validator/numeric.mapcss
r8701 r8725 82 82 } 83 83 *[maxweight][maxweight !~ /^(([0-9]+\.?[0-9]*( (t|kg|lbs))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/] { 84 throwWarning: tr("{0}: metersis default; period is separator; if units, put space then unit", "maxweight");84 throwWarning: tr("{0}: tonne is default; period is separator; if units, put space then unit", "maxweight"); 85 85 assertMatch: "way maxweight=something"; 86 86 assertMatch: "way maxweight=-5"; … … 106 106 assertNoMatch: "way maxspeed=none"; 107 107 assertNoMatch: "way maxspeed=variable"; 108 } 109 110 *[distance][distance !~ /^(([0-9]+\.?[0-9]*( (km|mi|nmi))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/] { 111 throwWarning: tr("{0}: kilometers is default; period is separator; if units, put space then unit", "distance"); 112 assertMatch: "way distance=something"; 113 assertMatch: "way distance=-5"; 114 assertNoMatch: "way distance=2"; 115 assertNoMatch: "way distance=2.5"; 116 assertNoMatch: "way distance=7 mi"; 108 117 } 109 118 -
trunk/src/org/openstreetmap/josm/gui/mappaint/LabelCompositionStrategy.java
r8510 r8725 160 160 "operator", 161 161 "brand", 162 "addr:housenumber" 162 "addr:housenumber", 163 "distance" 163 164 }; 164 165 -
trunk/styles/standard/elemstyles.mapcss
r8707 r8725 660 660 set icon_z17; 661 661 text: auto; 662 } 663 node[highway=milestone] { 664 icon-image: "vehicle/milestone.svg"; 665 set icon_z17; 666 text: auto; 667 } 668 node[highway=milestone][distance] { 669 text: distance; 662 670 } 663 671 node[direction=clockwise] { … … 3386 3394 text: auto; 3387 3395 } 3396 node[railway=milestone] { 3397 icon-image: "vehicle/milestone.svg"; 3398 set icon_z17; 3399 text: auto; 3400 } 3401 node[railway=milestone][distance] { 3402 text: distance; 3403 } 3388 3404 node[railway=rail], node[railway=tram], node[railway=light_rail], 3389 3405 node[railway=subway], node[railway=preserved],
Note:
See TracChangeset
for help on using the changeset viewer.