Warning, /education/marble/examples/cpp/map-properties/Readme.txt is written in an unsupported language. File is not indexed.
0001 See https://techbase.kde.org/Marble/MarbleMarbleWidget for the online 0002 version of this example. 0003 0004 We'd like to display a small weather map. So we need to modify the map. And we 0005 need to turn on the satellite view, enable the clouds and enable the country 0006 border lines. 0007 Again MarbleWidget provides a convenient way to make these changes to the 0008 overall look and feel of the map. 0009 By default Marble shows a few info boxes: Overview Map, Compass and ScaleBar. 0010 But the size for the widget is very limited. Therefore we want to shrink the 0011 compass. And we want to get rid of all the clutter, so we turn off the Overview 0012 Map and the ScaleBar. In the source code the class AbstractFloatItem is used to 0013 display all kinds of Info Boxes. All the Info Boxes are derived from the 0014 AbstractFloatItem class. Now we get a list of all the float items that are 0015 known to MarbleWidget and we go through it. Once we reach the float item which 0016 has got the name id "compass" we make all the changes we want to it (this has 0017 been simplified in Marble 0.11.0 where you can access AbstractFloatItems 0018 directly via their nameId)