filter annotations by their title/text and get a list of similar names (like function in SQL) #2586
-
is there a direct way in OSGEarth to filter AnnotationNodes based on their text? and maybe zoom in to the bounding box of the filtered nodes? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There's no filtering of nodes in osgEarth; you will need to code that up yourself. You can use setNodeMask(0) to hide a node, and setNodeMask(~0) to show one. Perhaps the You can try adding a custom shader to an AnnotationNode to change its color at runtime, using the |
Beta Was this translation helpful? Give feedback.
There's no filtering of nodes in osgEarth; you will need to code that up yourself. You can use setNodeMask(0) to hide a node, and setNodeMask(~0) to show one.
Perhaps the
ViewFitter
class will help with zooming to a region or node.You can try adding a custom shader to an AnnotationNode to change its color at runtime, using the
VirtualProgram
construct.