From: Thomas Geymayer Date: Thu, 9 Jan 2014 18:36:17 +0000 (+0100) Subject: CanvasMap: Expose property screen-range. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0428adff034e81f744d94423dfb0d9430ca67f5f;p=simgear.git CanvasMap: Expose property screen-range. Only allowing a hardcoded screen range of 200 units is not very flexible... --- diff --git a/simgear/canvas/elements/CanvasMap.cxx b/simgear/canvas/elements/CanvasMap.cxx index 73ba6b0d..bbf5645e 100644 --- a/simgear/canvas/elements/CanvasMap.cxx +++ b/simgear/canvas/elements/CanvasMap.cxx @@ -205,6 +205,8 @@ namespace canvas _projection->setOrientation(child->getFloatValue()); else if( child->getNameString() == "range" ) _projection->setRange(child->getDoubleValue()); + else if( child->getNameString() == "screen-range" ) + _projection->setScreenRange(child->getDoubleValue()); else return Group::childChanged(child);