Changeset 4247 for trunk


Ignore:
Timestamp:
Mar 16, 2014, 6:26:41 PM (11 years ago)
Author:
ldelgass
Message:

Only set map profile bounds when specifying a profile string

File:
1 edited

Legend:

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

    r4246 r4247  
    274274                mapOpts.profile()->srsString() = profile;
    275275            }
     276            TRACE("Setting profile bounds: %g %g %g %g",
     277                  bounds[0], bounds[1], bounds[2], bounds[3]);
    276278            mapOpts.profile()->bounds() =
    277279                osgEarth::Bounds(bounds[0], bounds[1], bounds[2], bounds[3]);
     
    281283    } else if (type == osgEarth::MapOptions::CSTYPE_PROJECTED) {
    282284        mapOpts.profile() = osgEarth::ProfileOptions("global-mercator");
    283     }
    284     if (bounds != NULL) {
    285         TRACE("Setting profile bounds: %g %g %g %g",
    286               bounds[0], bounds[1], bounds[2], bounds[3]);
    287         mapOpts.profile()->bounds() =
    288             osgEarth::Bounds(bounds[0], bounds[1], bounds[2], bounds[3]);
    289285    }
    290286    osgEarth::Map *map = new osgEarth::Map(mapOpts);
Note: See TracChangeset for help on using the changeset viewer.