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.
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