Skip to content
Permalink
Browse files

Don't show map tips for layers with scale range visibility which are …

…out of the range
  • Loading branch information
nyalldawson committed Jan 4, 2021
1 parent 83b50cd commit 7184905e2b5043af7c41857187b395992d9d4c6c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgsmaptip.cpp
@@ -190,6 +190,11 @@ QString QgsMapTip::fetchFeature( QgsMapLayer *layer, QgsPointXY &mapPosition, Qg
if ( !vlayer || !vlayer->isSpatial() )
return QString();

if ( !layer->isInScaleRange( mapCanvas->mapSettings().scale() ) )
{
return QString();
}

double searchRadius = QgsMapTool::searchRadiusMU( mapCanvas );

QgsRectangle r;

0 comments on commit 7184905

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