Skip to content
Permalink
Browse files

Fix loading of projects with XYZ tile layers

  • Loading branch information
wonder-sk committed Sep 5, 2016
1 parent 2e0c359 commit 58e62ed7d679f69811887710bbaa276bbae15559
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgsmaplayer.cpp
@@ -234,7 +234,9 @@ bool QgsMapLayer::readLayerXml( const QDomElement& layerElement )
// This is modified version of old QgsWmsProvider::parseUri
// The new format has always params crs,format,layers,styles and that params
// should not appear in old format url -> use them to identify version
if ( !mDataSource.contains( "crs=" ) && !mDataSource.contains( "format=" ) )
// XYZ tile layers do not need to contain crs,format params, but they have type=xyz
if ( !mDataSource.contains( "type=" ) &&
!mDataSource.contains( "crs=" ) && !mDataSource.contains( "format=" ) )
{
QgsDebugMsg( "Old WMS URI format detected -> converting to new format" );
QgsDataSourceUri uri;

0 comments on commit 58e62ed

Please sign in to comment.
You can’t perform that action at this time.