Skip to content

Commit

Permalink
Fix: adding attribution
Browse files Browse the repository at this point in the history
- doesn't need list item
- no pipe needed, as each attribution has its own line
  • Loading branch information
iamvdo committed Dec 9, 2021
1 parent 1d19540 commit b561e72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/yeti/map-layers/YetiLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export default {
this.mapLegend.items.forEach((item) => {
item.color = `rgb(${item.color[0]}, ${item.color[1]}, ${item.color[2]})`;
});
this.layer.getSource().setAttributions('<li>| ' + this.mapLegend.attributions + '</li>');
// add attribution (each attribution on its own line)
this.layer.getSource().setAttributions(this.mapLegend.attributions);
},
toLinearRing(extent) {
let minX = extent[0];
Expand Down

0 comments on commit b561e72

Please sign in to comment.