Skip to content
Permalink
Browse files
Tweak default symbol for overviews
  • Loading branch information
nyalldawson committed Nov 7, 2017
1 parent aa2b73d commit 332a69cecef876eaf4a10245bc9106340230aaf7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
@@ -38,11 +38,10 @@ QgsLayoutItemMapOverview::QgsLayoutItemMapOverview( const QString &name, QgsLayo
void QgsLayoutItemMapOverview::createDefaultFrameSymbol()
{
QgsStringMap properties;
properties.insert( QStringLiteral( "color" ), QStringLiteral( "255,0,0,255" ) );
properties.insert( QStringLiteral( "color" ), QStringLiteral( "255,0,0,75" ) );
properties.insert( QStringLiteral( "style" ), QStringLiteral( "solid" ) );
properties.insert( QStringLiteral( "style_border" ), QStringLiteral( "no" ) );
mFrameSymbol.reset( QgsFillSymbol::createSimple( properties ) );
mFrameSymbol->setOpacity( 0.3 );
}

void QgsLayoutItemMapOverview::draw( QPainter *painter )
@@ -84,6 +84,7 @@ def testOverviewMap(self):
overviewMap.setExtent(myRectangle2)
overviewMap.overview().setFrameMap(self.map)
checker = QgsLayoutChecker('composermap_overview', self.layout)
checker.setColorTolerance(6)
checker.setControlPathPrefix("composer_mapoverview")
myTestResult, myMessage = checker.testLayout()
self.layout.removeLayoutItem(overviewMap)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 332a69c

Please sign in to comment.