Changeset 12506 in josm
- Timestamp:
- 2017-07-24T19:26:36+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java
r12492 r12506 46 46 return findOptimalWayPosition(nb, path).map(best -> { 47 47 MapViewPoint center = best.start.interpolate(best.end, .5); 48 return new MapViewPositionAndRotation(center, upsideTheta(best)); 48 double theta = upsideTheta(best); 49 MapViewPoint moved = center.getMapViewState().getForView( 50 center.getInViewX() - Math.sin(theta) * yOffset, 51 center.getInViewY() + Math.cos(theta) * yOffset); 52 return new MapViewPositionAndRotation(moved, theta); 49 53 }).orElse(null); 50 54 }
Note:
See TracChangeset
for help on using the changeset viewer.