File indexing completed on 2024-12-08 09:32:23

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2012 Dennis Nienhüser <nienhueser@kde.org>
0004 //
0005 
0006 #include <QApplication>
0007 
0008 #include <marble/MarbleWidget.h>
0009 
0010 using namespace Marble;
0011 
0012 int main(int argc, char** argv)
0013 {
0014     QApplication app(argc,argv);
0015 
0016     // Create a Marble QWidget without a parent
0017     MarbleWidget *mapWidget = new MarbleWidget();
0018 
0019     // Load the OpenStreetMap map
0020     mapWidget->setMapThemeId(QStringLiteral("earth/openstreetmap/openstreetmap.dgml"));
0021 //    mapWidget->setMapThemeId(QStringLiteral("earth/vectorosm/vectorosm.dgml"));
0022     mapWidget->centerOn(11.19, 47.68);
0023     mapWidget->zoomView(2900);
0024     mapWidget->show();
0025 
0026     return app.exec();
0027 }