Files prefix changed from MGL to MLN (#919)

This commit is contained in:
Alex Cristici
2023-03-21 14:18:26 +02:00
committed by GitHub
parent 35a8752083
commit d72cd766c8
467 changed files with 13884 additions and 13872 deletions

View File

@@ -482,7 +482,7 @@ void MapWindow::initializeGL()
// Set default location to Helsinki.
m_map->setCoordinateZoom(QMapLibreGL::Coordinate(60.170448, 24.942046), 5);
QString styleUrl = qgetenv("MGL_STYLE_URL");
QString styleUrl = qgetenv("MLN_STYLE_URL");
if (styleUrl.isEmpty()) {
changeStyle();
} else {

View File

@@ -132,7 +132,7 @@ Settings::Settings()
, m_cacheMaximumSize(mbgl::util::DEFAULT_MAX_CACHE_SIZE)
, m_cacheDatabasePath(":memory:")
, m_assetPath(QCoreApplication::applicationDirPath())
, m_apiKey(qgetenv("MGL_API_KEY"))
, m_apiKey(qgetenv("MLN_API_KEY"))
, m_tileServerOptionsInternal(new mbgl::TileServerOptions(mbgl::TileServerOptions::DefaultConfiguration()))
{
}
@@ -289,7 +289,7 @@ void Settings::setAssetPath(const QString &path)
/*!
Returns the API key.
By default, it is taken from the environment variable \c MGL_API_KEY
By default, it is taken from the environment variable \c MLN_API_KEY
or empty if the variable is not set.
*/
QString Settings::apiKey() const {