Main Map Node Display #2555
Replies: 7 comments 2 replies
-
You can try calling |
Beta Was this translation helpful? Give feedback.
-
Ok, so m_poMapNode->getTerrainEngine()->getNode()->setNodeMask(~0 or 0) works to show/hide the map. The issue I now have is that I loose the getGeoPointUnderMouse() functionality on which many of my user actions are based, as well as the MouseCoordsTool() readout. However, any graphics that have already been drawn before hiding the map are retained, and incoming plots and tracks with georef positions are also still rendered ok. So your suggestion is almost what I want, but with a few shortcomings... |
Beta Was this translation helpful? Give feedback.
-
Makes sense. |
Beta Was this translation helpful? Give feedback.
-
Glenn, I'm afraid I'm stuck here... m_poMapNode->getTerrainEngine()-> |
Beta Was this translation helpful? Give feedback.
-
Cool thx, will try it in the morning. |
Beta Was this translation helpful? Give feedback.
-
So in the version I'm using there is no ToggleVisibleCullCallback class/struct. I'm assuming it should be in the osgEarth/CullingUtils header, but it isn't. |
Beta Was this translation helpful? Give feedback.
-
Dude!, Your'e the man! It works perfectly. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to hide/show the main map node while still displaying all other graphics like vectors etc.? I'm assuming it has something to do with setting the nodeMask, but I'm not exactly sure?
Beta Was this translation helpful? Give feedback.
All reactions