Skip to content

Commit

Permalink
chore: move legend to be next to layer selector
Browse files Browse the repository at this point in the history
Closes #652
  • Loading branch information
stdavis committed Mar 5, 2024
1 parent 7f15263 commit 3bf0556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default function MapComponent() {
(expanded) => expanded && logEvent('view-legend'),
);

view.current.ui.add(legend, 'top-left');
view.current.ui.add(legend, 'top-right');

view.current.on('click', (event) => {
view.current.hitTest(event).then(({ results }) => {
Expand Down

0 comments on commit 3bf0556

Please sign in to comment.