]> git.mxchange.org Git - simgear.git/commitdiff
CanvasMap: Expose property screen-range.
authorThomas Geymayer <tomgey@gmail.com>
Thu, 9 Jan 2014 18:36:17 +0000 (19:36 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 9 Jan 2014 18:36:38 +0000 (19:36 +0100)
Only allowing a hardcoded screen range of 200 units
is not very flexible...

simgear/canvas/elements/CanvasMap.cxx

index 73ba6b0dfe0ac426b2b9482021a698d1b3f55efb..bbf5645e555e1a844e0714e4ef74d622cfbc224a 100644 (file)
@@ -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);