WorldWindEarth / worldwind-react-globe

A React component for interacting with the Web WorldWind virtual globe SDK from NASA and ESA
https://worldwind.earth/worldwind-react-globe/
MIT License
44 stars 19 forks source link

Issue addding Renderable to renderableLayer #76

Open jmsbrett opened 2 years ago

jmsbrett commented 2 years ago

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