Ticket #671: josm-directions.diff

File josm-directions.diff, 917 bytes (added by dnaber, 18 years ago)
  • home/dnaber/workspace/JOSM/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java

     
    137137                double circum = Main.map.mapView.getScale()*100*Main.proj.scaleFactor()*40041455; // circumference of the earth in meter
    138138                boolean showDirection = showDirectionArrow;
    139139                if (useRealWidth && showDirection && !w.selected) showDirection = false;
     140               
     141                if (w.get("oneway") != null && !"false".equals(w.get("oneway")) && !"0".equals(w.get("oneway"))) {
     142                        showDirection = true;
     143                }
     144               
    140145                Color colour = untaggedColor;
    141146                int width = 2;
    142147                int realWidth = 0; //the real width of the element in meters