Ignore:
Timestamp:
Dec 18, 2013 1:21:10 AM (11 years ago)
Author:
ldelgass
Message:

Add default image layer (requires /usr/share/osgearth/data/world.tif). Add
height offset to shape layers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/geovis/Renderer.cpp

    r4054 r4085  
    2828#include <osgEarthUtil/AutoClipPlaneHandler>
    2929#include <osgEarthUtil/MouseCoordsTool>
     30#include <osgEarthDrivers/gdal/GDALOptions>
    3031
    3132#include "Renderer.h"
     
    6061    osgEarth::Map *map = new osgEarth::Map(mapOpts);
    6162    _map = map;
     63    osgEarth::Drivers::GDALOptions bopts;
     64    bopts.url() = "/usr/share/osgearth/data/world.tif";
     65    addImageLayer("base", bopts);
    6266    osgEarth::MapNodeOptions mapNodeOpts;
    6367    mapNodeOpts.enableLighting() = false;
Note: See TracChangeset for help on using the changeset viewer.