I'm trying to properly render a styled MVT (*.mbtiles or similar) programmatically. I have successfully run the various examples of osgEarth using an *.earth file, however I'm interested in doing the same using a C++ code so that I can add/remove MVT layers at runtime, providing a runtime-defined style.
I have not found any sample code about it, neither in osgEarth nor Googling in the web.
following your hints I have successfully managed to render an MVT file and I have successfully added a style like the ones contained in the example *.earth files.
However I'm not able to configure the zoom level at which the engine will start rendering the MVT tiles. I know that osgEarth renders only the highest available zoom level, however It seems that osgEarth loads a potentially huge number of tiles event at a low zoom level.
Is there a way to tell osgEarth to start rendering the MVT tiles at a specified zoom level? I need it without setting the min and max visible range since it only hides the farthest tiles.