* Rename QMapboxGL to QMapLibreGL * Add missing QDebug includes * Fix Qt CMake config * Fix geojson warning * Remove redundant OpenGL dependency * Put everything under QMapLibreGL namespace * Reorganise headers Co-authored-by: Rinigus <rinigus.git@gmail.com>
24 lines
468 B
C++
24 lines
468 B
C++
#include "mapwindow.hpp"
|
|
|
|
#include <QApplication>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
QMapLibreGL::Settings settings;
|
|
settings.setCacheDatabasePath("/tmp/mbgl-cache.db");
|
|
settings.setCacheDatabaseMaximumSize(20 * 1024 * 1024);
|
|
|
|
MapWindow window(settings);
|
|
|
|
window.resize(800, 600);
|
|
window.show();
|
|
|
|
if (argc == 2 && QString("--test") == argv[1]) {
|
|
window.selfTest();
|
|
}
|
|
|
|
return app.exec();
|
|
}
|