Skip to content

Commit

Permalink
Update legend on (map resolution) change
Browse files Browse the repository at this point in the history
  • Loading branch information
ger-benjamin committed Jul 25, 2018
1 parent 7abbedf commit b367836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contribs/gmf/src/layertree/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@
{{'Hide legend'|translate}}
</a>
<div ng-if="gmfLayertreeCtrl.isNodeLegendVisible('#gmf-layertree-node-' + layertreeCtrl.uid + '-legend')">
<div ng-repeat="(title, url) in ::gmfLayertreeCtrl.getLegendsObject(layertreeCtrl)">
<p ng-if="::gmfLayertreeCtrl.getNumberOfLegendsObject(layertreeCtrl) > 1">{{title|translate}}</p>
<div ng-repeat="(title, url) in gmfLayertreeCtrl.getLegendsObject(layertreeCtrl)">
<p ng-if="gmfLayertreeCtrl.getNumberOfLegendsObject(layertreeCtrl) > 1">{{title|translate}}</p>
<img ng-src="{{url}}"></img>
</div>
</div>
Expand Down

0 comments on commit b367836

Please sign in to comment.