Added labelDotSegments function to change the default (16) labelDot number of segments:
const Globe = new ThreeGlobe()
.labelSize('size')
.labelDotRadius(2)
.labelColor('color')
.labelDotSegments(32)
Also, rollup import assertions (the assert keyword) have been removed from node starting in v22.0.0. Using with instead.
Problem 2:
I had some problems with Arc layer when using polygonsData method with polygonAltitude set to 0.01 and labelsData with labelAltitude set to 0.011 because the start/end points of the Arc were under the polygons layer so two label points were not 'connected' with Arc.
At small distances, the arc is not even visible.
I added these lines of code so that when the arcStartAlt/arcEndAlt is not set, it defaults to 0. Then the existing code will not "break" if the arcStartAlt/arcEndAlt is not set (src/layers/arcs.js):
Problem 1:
The number of
labelDot
segments is fixed (16).Solution:
Added
labelDotSegments
function to change the default (16) labelDot number of segments:Also,
rollup
import assertions (theassert
keyword) have been removed from node starting in v22.0.0. Usingwith
instead.Problem 2:
I had some problems with Arc layer when using
polygonsData
method withpolygonAltitude
set to0.01
andlabelsData
withlabelAltitude
set to0.011
because the start/end points of the Arc were under the polygons layer so two label points were not 'connected' with Arc. At small distances, the arc is not even visible.Example Arc between Frankfurt and Prague:
Solution:
I added the ability to change the altitude of the start/end points of the Arc:
Example
I added these lines of code so that when the arcStartAlt/arcEndAlt is not set, it defaults to 0. Then the existing code will not "break" if the arcStartAlt/arcEndAlt is not set (src/layers/arcs.js):