Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/placemark-rotation-and-tilt'…
Browse files Browse the repository at this point in the history
… into develop
  • Loading branch information
ComBatVision committed Jul 25, 2022
2 parents 07df859 + ec7d248 commit 625953b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.os.Handler;
import android.os.Looper;
Expand Down Expand Up @@ -263,7 +262,7 @@ public Bitmap createBitmap() {
// placement as the offset may change depending on the level of detail, for instance, the absence or
// presence of text modifiers.
Point centerPoint = imageInfo.getCenterPoint(); // The center of the core symbol
Rect bounds = imageInfo.getImageBounds(); // The extents of the image, including text modifiers
//Rect bounds = imageInfo.getImageBounds(); // The extents of the image, including text modifiers
this.placemarkOffset = new Offset(
WorldWind.OFFSET_PIXELS, centerPoint.x, // x offset
// Use billboarding or lollipopping to prevent icon clipping by terrain as described in MIL-STD-2525C APPENDIX F.5.1.1.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public Texture getText(String text, TextAttributes attributes) {
}

public Texture renderText(String text, TextAttributes attributes) {
TextCacheKey key = this.scratchTextCacheKey.set(text, attributes);
TextCacheKey key = new TextCacheKey().set(text, attributes);
Texture texture = null;

if (text != null && attributes != null) {
Expand Down

0 comments on commit 625953b

Please sign in to comment.