[Marble-devel] API and loading of KML files
Thomas 'Tom' Malkus
tom at dl7bj.de
Fri Sep 26 23:52:48 UTC 2014
I am new to Marble and Qt.
I wrote this short code to test the possibility to use Marble for Ham
Radio applications. I tried it with this KML File:
http://web.bxhome.org/sites/default/files/usr/pfx.kmz to display so
called DXCC entities.
using namespace Marble;
int main(int argc, char** argv)
MarbleWidget *mapWidget = new MarbleWidget();
When I start this program, the position and zoom level is correct, but
only for a short moment, less than a second.
Then the globe will be shrinked for roundabout the half size of the
window and the center position goes to 30° longitude and 15° latitude. I
think this happens, if the KML file is complete loaded.
This doesn't happen, if I reduce the KML file to one entity. With two
entities the zoom level goes up, but also the position is set to 30°
longitude and 15° latitude.
This is not, what I want. I try to display a specific DXCC entitiy
centered and zoomed. Where is my mistake?
DARC OV I18|DL-QRP-AG #1186|G-QRP #14624|FISTS #15933|AGCW #2737|ARRL
More information about the Marble-devel