Example #1
0
unsigned int
TerrainLayer::getMaxDataLevel() const
{
    //Try the setting first

    if ( _runtimeOptions->maxDataLevel().isSet() )
    {
        return _runtimeOptions->maxDataLevel().get();
    }

    //Try the TileSource
    TileSource* ts = getTileSource();
    if ( ts )
    {
        return ts->getMaxDataLevel();
    }

    //Just default
    return 20;
}
Example #2
0
unsigned int
TerrainLayer::getMaxDataLevel() const
{
    const TerrainLayerOptions& opt = getTerrainLayerOptions();
    //Try the setting first
    if (opt.maxDataLevel().isSet())
    {
        return opt.maxDataLevel().get();
    }

    //Try the TileSource
	TileSource* ts = getTileSource();
	if (ts)
	{
		return ts->getMaxDataLevel();
	}

    //Just default
	return 20;
}