worldwind-ui API / react-worldwind / useRenderable
Function: useRenderable() ​
useRenderable<
T,O>(create,update,options):T
Defined in: react/src/shapes.tsx:115
Creates a renderable once, keeps it in the enclosing <RenderableLayer>, and applies option changes in place (structural comparison, so inline objects are fine). *
Type Parameters ​
T ​
T extends WWRenderable
O ​
O
Parameters ​
create ​
(worldWind, options) => T
update ​
(worldWind, renderable, options) => void
options ​
O
Returns ​
T