[osg-users] [3rdparty] class osgEarth::Map has no member named 'addImageLayer'
Rodrigo Dias
rodrigo1406 at gmail.com
Wed Jan 2 08:39:22 PST 2019
Hi,
I'm following the example from here (http://docs.osgearth.org/en/latest/developer/maps.html#programmatic-map-creation). This line, however:
Code:
map->addImageLayer( layer );
won't compile. g++ says:
> error: ‘class osgEarth::Map’ has no member named ‘addImageLayer’; did you mean ‘addLayer’?
>
I tried with addLayer, but then the program compiles but hangs on run, and won't execute not even the first line, "cout << 1;".
I'm using version 2.10. I noticed that the documentation (https://updraft.github.io/osgearth-doc/html/classosgEarth_1_1Map.html) is from version 2.1. Even the page where I took the example from is titled "osgEarth 2.4 documentation". Is there an up to date documentation? What am I doing wrong here?
Thank you!
Cheers,
Rodrigo
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75373#75373
More information about the osg-users
mailing list