Skip to content

Commit

Permalink
[Maps] Reverse the attribution order so left-to-right order matches t…
Browse files Browse the repository at this point in the history
…op-to-bottom (#44415)

* Reverse the attribution order so left-to-right order matches top-to-bottom layer order

* Update snapshot to reflect new attribution order
  • Loading branch information
Aaron Caldwell committed Sep 3, 2019
1 parent 739cb22 commit 4cbe9ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -56,6 +56,8 @@ export class AttributionControl extends React.Component {
}
}
}
// Reflect top-to-bottom layer order as left-to-right in attribs
uniqueAttributions.reverse();
if (!_.isEqual(this.state.uniqueAttributions, uniqueAttributions)) {
this.setState({ uniqueAttributions });
}
Expand Down

0 comments on commit 4cbe9ff

Please sign in to comment.