-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
- make wms dpi mode configurable (fixes #8929) - enum for tile request attributes - allow setting of User-Agent (fixes #7361) - show error messages on WMS GetCapabilities
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,11 +247,11 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) : | |
|
||
//Network timeout | ||
mNetworkTimeoutSpinBox->setValue( settings.value( "/qgis/networkAndProxy/networkTimeout", "60000" ).toInt() ); | ||
leUserAgent->setText( settings.value( "/qgis/networkAndProxy/userAgent", "Mozilla/5.0" ).toString() ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Komzpa
|
||
|
||
// WMS/WMS-C tile expiry time | ||
mDefaultTileExpirySpinBox->setValue( settings.value( "/qgis/defaultTileExpiry", "24" ).toInt() ); | ||
|
||
// Feature funded by Regione Toscana - SITA | ||
// WMS/WMS-C default max retry in case of tile request errors | ||
mDefaultTileMaxRetrySpinBox->setValue( settings.value( "/qgis/defaultTileMaxRetry", "3" ).toInt() ); | ||
|
||
|
@@ -903,11 +903,11 @@ void QgsOptions::saveOptions() | |
|
||
//Network timeout | ||
settings.setValue( "/qgis/networkAndProxy/networkTimeout", mNetworkTimeoutSpinBox->value() ); | ||
settings.setValue( "/qgis/networkAndProxy/userAgent", leUserAgent->text() ); | ||
|
||
// WMS/WMS-C tile expiry time | ||
settings.setValue( "/qgis/defaultTileExpiry", mDefaultTileExpirySpinBox->value() ); | ||
|
||
// Feature funded by Regione Toscana - SITA | ||
// WMS/WMS-C default max retry in case of tile request errors | ||
settings.setValue( "/qgis/defaultTileMaxRetry", mDefaultTileMaxRetrySpinBox->value() ); | ||
|
||
|
hello,
fake User-Agent Mozilla/5.0 is now banned on tile.openstreetmap.org.
this should default to real non-faked user-agent string, i.e. QGIS/2.17.0 or similar, to get passed through and properly managed.