Skip to content

Commit

Permalink
fix map adornments
Browse files Browse the repository at this point in the history
  • Loading branch information
xfischer committed Nov 2, 2020
1 parent 3be014f commit acca487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DEM.Net.Core/Services/Adornments/AdornmentsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public TriangulationList<Vector3> CreateModelAdornments(DEMDataSet dataset, Imag
.RotateZ(PI / 2f)
.Translate(new Vector3(projWidth / 2, -projHeight / 2 - projHeight * 0.05f, zCenter));

var text = this.CreateText($"{dataset.Attribution.Subject}: {dataset.Attribution.Text}{Environment.NewLine}{ImageryProvider.MapBoxSatellite.Attribution.Subject}: {ImageryProvider.MapBoxSatellite.Attribution.Text}", VectorsExtensions.CreateColor(255, 255, 255)).ToGlTFSpace();
var text = this.CreateText($"{dataset.Attribution.Subject}: {dataset.Attribution.Text}{Environment.NewLine}{imageryProvider.Attribution.Subject}: {imageryProvider.Attribution.Text}", VectorsExtensions.CreateColor(255, 255, 255)).ToGlTFSpace();
var scale = ((projWidth - scaleBarSize) * 0.9f) / text.GetBoundingBox().Width;

text = text.Scale((float)scale)
Expand Down

0 comments on commit acca487

Please sign in to comment.