the layer is loaded

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

the layer is loaded

hello ,When i add a layer (image or elevation), is there a way to know if the added layer is loaded?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: the layer is loaded

I assume you are using osgEarth 2.10.
After adding your layer, call layer->getStatus().

Status API is here: https://github.com/gwaldron/osgearth/blob/master/src/osgEarth/Status
Glenn Waldron / Pelican Mapping
gaoyj gaoyj
Reply | Threaded
Open this post in threaded view
|

Re: the layer is loaded

Thank you. This is what I need.