Changeset 34255 in osm for applications/editors
- Timestamp:
- 2018-06-05T13:39:14+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/EdgeSelectionAction.java
r34249 r34255 108 108 109 109 private Boolean isWaySuitableForMode(Way way, String modeOfTravel) { 110 if ("bus".equals(modeOfTravel) )110 if ("bus".equals(modeOfTravel) ) 111 111 return RouteUtils.isWaySuitableForBuses(way); 112 112 … … 201 201 if (initial != null) { 202 202 modeOfTravel = getModeOfTravel(initial); 203 if ("mtb".equals(modeOfTravel)) 204 modeOfTravel = "bicycle"; 203 205 List<Way> edge = getEdgeFromWay(initial, modeOfTravel); 204 206 for (Way way : edge) { … … 222 224 if (edgeList.size() == 0 || modeOfTravel == null) { 223 225 modeOfTravel = getModeOfTravel(initial); 226 if ("mtb".equals(modeOfTravel)) 227 modeOfTravel = "bicycle"; 224 228 } 225 229 … … 258 262 if (edgeList.size() == 0 || modeOfTravel == null) { 259 263 modeOfTravel = getModeOfTravel(initial); 264 if ("mtb".equals(modeOfTravel)) 265 modeOfTravel = "bicycle"; 260 266 } 261 267 if (initial != null) { -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/PTAssistantPaintVisitor.java
r34248 r34255 151 151 } else if (link.isOnewayLoopForwardPart) { 152 152 if (way.isSelected()) { 153 drawWay(way, new Color(255, 2 0, 147, 100));153 drawWay(way, new Color(255, 255, 0, 100)); 154 154 } else { 155 155 drawWay(way, new Color(255, 0, 0, 100)); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/utils/RouteUtils.java
r33728 r34255 269 269 } 270 270 271 return r.hasTag(TAG_ROUTE, "bicycle" );271 return r.hasTag(TAG_ROUTE, "bicycle", "mtb"); 272 272 } 273 273
Note:
See TracChangeset
for help on using the changeset viewer.