Skip to content

Commit

Permalink
ArcGIS MapServer: Allow disabling tiled rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro authored and nyalldawson committed Jun 15, 2021
1 parent c7edffe commit dd9a56f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/arcgisrest/qgsamsprovider.cpp
Expand Up @@ -251,6 +251,10 @@ QgsAmsProvider::QgsAmsProvider( const QString &uri, const ProviderOptions &optio
mLayerMetadata.setCrs( mCrs );

mTiled = mServiceInfo.value( QStringLiteral( "singleFusedMapCache" ) ).toBool() && mCrs.mapUnits() == QgsUnitTypes::DistanceMeters;
if ( dataSource.param( QStringLiteral( "tiled" ) ).toLower() == "false" || dataSource.param( QStringLiteral( "tiled" ) ) == "0" )
{
mTiled = false;
}

if ( mServiceInfo.contains( QStringLiteral( "maxImageWidth" ) ) )
mMaxImageWidth = mServiceInfo.value( QStringLiteral( "maxImageWidth" ) ).toInt();
Expand Down

0 comments on commit dd9a56f

Please sign in to comment.