@@ -389,11 +389,13 @@ private void drawSequence(final Graphics2D g, final MapView mv, final IWay<?> se
389
389
Point previousPoint = null ;
390
390
for (INode current : nodes ) {
391
391
final Point currentPoint = mv .getPoint (current );
392
- g .setColor (forcedColor != null ? forcedColor : getColor (current ));
392
+ if (MapillaryImageUtils .isImage (current )) {
393
+ g .setColor (forcedColor != null ? forcedColor : getColor (current ));
394
+ }
393
395
if (previous != null && (mv .contains (currentPoint ) || mv .contains (previousPoint ))) {
394
396
// FIXME get the right color for the line segment
397
+ final boolean visibleNode = zoom >= 14 && sequence .isVisible () && MapillaryImageUtils .isImage (previous );
395
398
g .drawLine (previousPoint .x , previousPoint .y , currentPoint .x , currentPoint .y );
396
- final boolean visibleNode = zoom < 14 || sequence .isVisible () || MapillaryImageUtils .isImage (previous );
397
399
if (visibleNode ) {
398
400
// FIXME draw the image here (avoid calculating the points twice)
399
401
drawImageMarker (originalTransform , selectedImage , g , previous , distPer100Pixel , false );
@@ -402,7 +404,7 @@ private void drawSequence(final Graphics2D g, final MapView mv, final IWay<?> se
402
404
previous = current ;
403
405
previousPoint = currentPoint ;
404
406
}
405
- final boolean visibleNode = zoom < 14 || sequence .isVisible () || MapillaryImageUtils .isImage (previous );
407
+ final boolean visibleNode = zoom >= 14 && sequence .isVisible () && MapillaryImageUtils .isImage (previous );
406
408
if (visibleNode ) {
407
409
// FIXME draw the image here (avoid calculating the points twice)
408
410
drawImageMarker (originalTransform , selectedImage , g , previous , distPer100Pixel , false );
0 commit comments