mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
REST variables (dimensions) are apparently case-insensitive
This commit is contained in:
parent
0ef89e200d
commit
32d8672698
@ -367,14 +367,15 @@ bool WMTS::load(const QString &file, const WMTS::Setup &setup)
|
|||||||
_tileUrl.append(QString("&%1=%2").arg(dim.first).arg(dim.second));
|
_tileUrl.append(QString("&%1=%2").arg(dim.first).arg(dim.second));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_tileUrl.replace("{Style}", setup.style);
|
_tileUrl.replace("{Style}", setup.style, Qt::CaseInsensitive);
|
||||||
_tileUrl.replace("{TileMatrixSet}", setup.set);
|
_tileUrl.replace("{TileMatrixSet}", setup.set, Qt::CaseInsensitive);
|
||||||
_tileUrl.replace("{TileMatrix}", "$z");
|
_tileUrl.replace("{TileMatrix}", "$z", Qt::CaseInsensitive);
|
||||||
_tileUrl.replace("{TileRow}", "$y");
|
_tileUrl.replace("{TileRow}", "$y", Qt::CaseInsensitive);
|
||||||
_tileUrl.replace("{TileCol}", "$x");
|
_tileUrl.replace("{TileCol}", "$x", Qt::CaseInsensitive);
|
||||||
for (int i = 0; i < setup.dimensions.size(); i++) {
|
for (int i = 0; i < setup.dimensions.size(); i++) {
|
||||||
const QPair<QString, QString> &dim = setup.dimensions.at(i);
|
const QPair<QString, QString> &dim = setup.dimensions.at(i);
|
||||||
_tileUrl.replace(QString("{%1}").arg(dim.first), dim.second);
|
_tileUrl.replace(QString("{%1}").arg(dim.first), dim.second,
|
||||||
|
Qt::CaseInsensitive);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user