Skip to content
Permalink
Browse files

Tweak default symbol for overviews

  • Loading branch information
nyalldawson committed Oct 21, 2017
1 parent aa2b73d commit 332a69cecef876eaf4a10245bc9106340230aaf7
@@ -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)
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 332a69c

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