mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Add icons for crossing ways fixes and almost junction connection fix
This commit is contained in:
@@ -153,6 +153,7 @@ export function validationAlmostJunction() {
|
||||
var edgeHighway = graph.entity(extendableNodeInfo.wid);
|
||||
|
||||
var fixes = [new validationIssueFix({
|
||||
icon: 'iD-icon-abutment',
|
||||
title: t('issues.fix.connect_features.title'),
|
||||
onClick: function() {
|
||||
var endNode = this.issue.entities[1];
|
||||
|
||||
@@ -369,6 +369,7 @@ export function validationCrossingWays() {
|
||||
var fixes = [];
|
||||
if (connectionTags) {
|
||||
fixes.push(new validationIssueFix({
|
||||
icon: 'iD-icon-crossing',
|
||||
title: t('issues.fix.connect_features.title'),
|
||||
onClick: function() {
|
||||
var loc = this.issue.loc;
|
||||
@@ -408,6 +409,7 @@ export function validationCrossingWays() {
|
||||
}
|
||||
}));
|
||||
}
|
||||
var useFixIcon = 'iD-icon-layers';
|
||||
var useFixID;
|
||||
if (isCrossingIndoors) {
|
||||
useFixID = 'use_different_levels';
|
||||
@@ -417,15 +419,18 @@ export function validationCrossingWays() {
|
||||
} else if ((allowsBridge(featureType1) && featureType1 !== 'waterway') ||
|
||||
(allowsBridge(featureType2) && featureType2 !== 'waterway')) {
|
||||
useFixID = 'use_bridge_or_tunnel';
|
||||
useFixIcon = 'maki-bridge';
|
||||
} else if (allowsTunnel(featureType1) || allowsTunnel(featureType2)) {
|
||||
useFixID = 'use_tunnel';
|
||||
} else {
|
||||
useFixID = 'use_different_layers';
|
||||
}
|
||||
fixes.push(new validationIssueFix({
|
||||
icon: useFixIcon,
|
||||
title: t('issues.fix.' + useFixID + '.title')
|
||||
}));
|
||||
fixes.push(new validationIssueFix({
|
||||
icon: 'iD-operation-move',
|
||||
title: t('issues.fix.reposition_features.title')
|
||||
}));
|
||||
return new validationIssue({
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12.7849413,8.66960415 C13.3328366,9.81653417 13.1317955,11.2318409 12.1818182,12.1818182 C11.2318409,13.1317955 9.81653417,13.3328366 8.66960415,12.7849413 L3.45454545,18 L2,16.5454545 L7.2150587,11.3303958 C6.66716345,10.1834658 6.86820449,8.76815915 7.81818182,7.81818182 C8.76815915,6.86820449 10.1834658,6.66716345 11.3303958,7.2150587 L16.5454545,2 L18,3.45454545 L12.7849413,8.66960415 L12.7849413,8.66960415 Z M7.9098309,6.45528544 C7.61755133,6.62790758 7.34203605,6.83978213 7.09090909,7.09090909 C6.83978213,7.34203605 6.62790758,7.61755133 6.45528544,7.9098309 L2,3.45454545 L3.45454545,2 L7.9098309,6.45528544 L7.9098309,6.45528544 Z M8.90909091,11.0909091 C9.51158336,11.6934015 10.4884166,11.6934015 11.0909091,11.0909091 C11.6934015,10.4884166 11.6934015,9.51158336 11.0909091,8.90909091 C10.4884166,8.30659845 9.51158336,8.30659845 8.90909091,8.90909091 C8.30659845,9.51158336 8.30659845,10.4884166 8.90909091,11.0909091 Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12.7849413,8.66960415 C13.3328366,9.81653417 13.1317955,11.2318409 12.1818182,12.1818182 C11.2318409,13.1317955 9.81653417,13.3328366 8.66960415,12.7849413 L3.45454545,18 L2,16.5454545 L7.2150587,11.3303958 C6.66716345,10.1834658 6.86820449,8.76815915 7.81818182,7.81818182 C8.76815915,6.86820449 10.1834658,6.66716345 11.3303958,7.2150587 L16.5454545,2 L18,3.45454545 L12.7849413,8.66960415 L12.7849413,8.66960415 Z M7.9098309,6.45528544 C7.61755133,6.62790758 7.34203605,6.83978213 7.09090909,7.09090909 C6.83978213,7.34203605 6.62790758,7.61755133 6.45528544,7.9098309 L2,3.45454545 L3.45454545,2 L7.9098309,6.45528544 L7.9098309,6.45528544 Z M13.5447146,12.0901691 L18,16.5454545 L16.5454545,18 L12.0901691,13.5447146 C12.3824487,13.3720924 12.6579639,13.1602179 12.9090909,12.9090909 C13.1602179,12.6579639 13.3720924,12.3824487 13.5447146,12.0901691 L13.5447146,12.0901691 Z M8.90909091,11.0909091 C9.51158336,11.6934015 10.4884166,11.6934015 11.0909091,11.0909091 C11.6934015,10.4884166 11.6934015,9.51158336 11.0909091,8.90909091 C10.4884166,8.30659845 9.51158336,8.30659845 8.90909091,8.90909091 C8.30659845,9.51158336 8.30659845,10.4884166 8.90909091,11.0909091 Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user