2
2
* Copyright 2006-2009, 2017, 2020 United States Government, as represented by the
3
3
* Administrator of the National Aeronautics and Space Administration.
4
4
* All rights reserved.
5
- *
5
+ *
6
6
* The NASA World Wind Java (WWJ) platform is licensed under the Apache License,
7
7
* Version 2.0 (the "License"); you may not use this file except in compliance
8
8
* with the License. You may obtain a copy of the License at
9
9
* http://www.apache.org/licenses/LICENSE-2.0
10
- *
10
+ *
11
11
* Unless required by applicable law or agreed to in writing, software distributed
12
12
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13
13
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
14
14
* specific language governing permissions and limitations under the License.
15
- *
15
+ *
16
16
* NASA World Wind Java (WWJ) also contains the following 3rd party Open Source
17
17
* software:
18
- *
18
+ *
19
19
* Jackson Parser – Licensed under Apache 2.0
20
20
* GDAL – Licensed under MIT
21
21
* JOGL – Licensed under Berkeley Software Distribution (BSD)
22
22
* Gluegen – Licensed under Berkeley Software Distribution (BSD)
23
- *
23
+ *
24
24
* A complete listing of 3rd Party software notices and licenses included in
25
25
* NASA World Wind Java (WWJ) can be found in the WorldWindJava-v2.2 3rd-party
26
26
* notices and licenses PDF found in code directory.
@@ -540,15 +540,18 @@ protected void layoutDynamicModifiers(DrawContext dc, AVList modifiers, OrderedS
540
540
double length = this .iconRect .getHeight ();
541
541
Boolean directionOnly = true ;
542
542
Object d = this .getModifier (SymbologyConstants .SPEED_LEADER_SCALE );
543
- if (d != null && d instanceof Number )
543
+ if (d != null && d instanceof Number ) {
544
544
directionOnly = false ;
545
545
length *= ((Number ) d ).doubleValue ();
546
-
546
+ }
547
547
if (this .useGroundHeadingIndicator )
548
548
{
549
549
List <? extends Point2D > points = MilStd2525Util .computeGroundHeadingIndicatorPoints (dc , osym .placePoint ,
550
- (Angle ) o , length , this .iconRect .getHeight (), directionOnly );
551
- this .addLine (dc , Offset .BOTTOM_CENTER , points , LAYOUT_RELATIVE , points .size () - 1 , osym );
550
+ (Angle ) o , length , this .iconRect .getHeight (), directionOnly );
551
+ if (directionOnly )
552
+ this .addLine (dc , Offset .BOTTOM_CENTER , points , LAYOUT_RELATIVE , points .size () - 4 , osym );
553
+ else
554
+ this .addLine (dc , Offset .BOTTOM_CENTER , points , LAYOUT_RELATIVE , points .size () - 1 , osym );
552
555
}
553
556
else
554
557
{
@@ -770,4 +773,4 @@ else if (this.getOffset() == null && this.iconRect != null)
770
773
osym .dy = -this .iconRect .getCenterY ();
771
774
}
772
775
}
773
- }
776
+ }
0 commit comments