Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outlineStippleFactor and outlineStipplePattern do not work when used as attributes for a WorldWind.Path object. #898

Open
benhunterco opened this issue Jul 2, 2024 · 0 comments

Comments

@benhunterco
Copy link

Here is the code that I would expect to draw a path with a dotted line using the stipple parameters.

var orbitPathArray = <some positions>
var orbitLayer = <a layer>

var pathAttributes= new WorldWind.ShapeAttributes(null)
 pathAttributes.outlineStippleFactor = 1;
pathAttributes.outlineStipplePattern= 0xF001;
pathAttributes.outlineColor=WorldWind.Color.WHITE;
pathAttributes.drawInterior=false;

var orbitPath= new WorldWind.Path(orbitPathArray, pathAttributes);
orbitPath.altitudeMode = WorldWind.RELATIVE_TO_GROUND;
orbitPath.useSurfaceShapeFor2D=true;

orbitLayer.addRenderable(orbitPath);

The path renders a white path with the indicated positions, but no dotted-ness is present. I have tried a variety of different stipple patterns and factors but nothing changes the path's appearance. Looking at the source, it seems like this might not yet be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant