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

Issue addding Renderable to renderableLayer #76

Open
jmsbrett opened this issue Jun 15, 2022 · 0 comments
Open

Issue addding Renderable to renderableLayer #76

jmsbrett opened this issue Jun 15, 2022 · 0 comments

Comments

@jmsbrett
Copy link

So I have one test project set up that takes in data from a websocket and display the location on a worldwindjs (vanillajs) map. I am now testing this library with this npm project and cannot figure out how to add a the location image to the map.

In the vanillajs implementation I am adding with (sudo code):

var renderableLayer = new WorldWind.RenderableLayer();
var location = new WorldWind.Position(lat, long, alt);
var placemark = new WorldWind.Placemark(location);

renderableLayer.addRenderable(placemark);

In the worldwind-react-globe project I console logged the globeRef and cannot find any prototype of the Object where I can call the WW.Position() or WW.Placemark() function to add a renderable.

Is this possible in the worldwind-react-globe? If so do you have examples of how to do this?

I have a renderable layer available for use and have verified its existence within the globeRef.

Thanks,

James

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

No branches or pull requests

1 participant