getImageLayerByName no longer working

classic Classic list List threaded Threaded
3 messages Options
KingArthur10 KingArthur10
Reply | Threaded
Open this post in threaded view
|

getImageLayerByName no longer working

Having some issues compiling our software against the latest trunk.

~/source/ng-folder/nightshade-ng-engine/src/Engine/OSGEarthWrapper.cpp: In member function ‘virtual void UpdateSunEyeVectorsCallback::operator()(osg::Node*, osg::NodeVisitor*)’:
~/source/ng-folder/nightshade-ng-engine/src/Engine/OSGEarthWrapper.cpp:93:54: error: ‘class osgEarth::Map’ has no member named ‘getImageLayerByName’
     osgEarth::ImageLayer* img = m_mapNode->getMap()->getImageLayerByName("fauxAtmos");

Looks like an API change.  Is this just a new name to call or is it more involved?  Just trying to see if I can solve some things without pulling our engine dev onboard.

Thanks,
Arthur
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: getImageLayerByName no longer working

API change. Instead use:

map->getLayerByName<ImageLayer>(name);


Glenn Waldron / Pelican Mapping
KingArthur10 KingArthur10
Reply | Threaded
Open this post in threaded view
|

Re: getImageLayerByName no longer working

Thanks!