tethering to nodes in a 2D projected map not working... #1889
-
I have a mapNode that is using a spherical mercator map profile (projected 2D map). I'm adding some tracknodes to the mapNode and trying to tether the viewpoint to a selected node by the following...
For some reason, this doesn't tether to the tracknode as I would expect. When I run the same code for nodes in a geocentric map profile, it works as expected. Is there something broken with tethering to nodes in projected map profiles? Perhaps I'm needing to perform a transform on the node somewhere first? Any help or feedback would be appreciated... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The The problem might be with |
Beta Was this translation helpful? Give feedback.
The
osgearth_manip
example is the test app for tethered nodes. You can run this with a projected map (likeopenstreetmap_flat.earth
orreadymap_flat.earth
) and press 8 or 9 to tether.The problem might be with
TrackNode
so perhaps you can modify the example to use one and see if it still works.