Skip to content

Commit

Permalink
Merge pull request #4342 from camptocamp/backport-legend-refresh-fix
Browse files Browse the repository at this point in the history
Backport of Update legend on (map resolution) change
  • Loading branch information
ochriste authored Oct 30, 2018
2 parents 6f94b71 + 7bd14c0 commit b9ab53e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contribs/gmf/src/directives/partials/layertree.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,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 b9ab53e

Please sign in to comment.