Open alinamurvay opened 4 days ago
@alinamurvay the pathColor
method takes a path
attribute that you can use to specify different colors for the various paths. So, something like
.pathColor(path => {
return getPathColor(path); // the implementation of this function is up to you
});
I need to display 2 mobile earth terminals, and a moving satellite, and the paths between each terminals and the satellite, having the positions(lat, lng and alt(for satellite). I am trying to use pathsData, but I am unable to set different colors for the trajectories of each terminal/satellite and the paths between each terminal and the satellite. Is there any way to do this? Thank you!
Globe.pathsData([ terminal1Coords, terminal2Coords, satelliteCoords, ...terminal1ToSatellitePaths, ...terminal2ToSatellitePaths, ]) .pathColor(() => "red") .pathResolution(4) // Solid lines .pathDashLength(1) .pathDashGap(0) .pathTransitionDuration(satelliteCoords.length * 100);