Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix map symbols appearing on top of windows #485

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

matthewCmatt
Copy link
Contributor

@matthewCmatt matthewCmatt commented Feb 18, 2025

Resolves #457

The base map currently has a z-index of 0.

Changes

This PR assigns the following new z-indexes for portions of the map:

  • 0: base map (this already exists, see above)
  • 10: DeckGL symbols (nodes) and waypoints
  • 20: map windows (node list, selected node/waypoint)
  • 30: popups (the right-click "add waypoint" menu)
  • 40: mouse hover elements (node/edge hover text)

Details

This is mostly done by wrapping the relevant elements in divs with z-# Tailwind classes. The absolutely positioned windows were changed to use z-value: inherit to let the MapView dictate this.

The react-map-gl Marker elements only take CSSProperties, and the DeckGL layer doesn't seem to be styleable from JSX, so those are styled differently accordingly.

For Reviewers

Please let me know if I'm missing any elements, or if you think this may have strange interactions with anything. I don't have multiple nodes to test the app fully at the moment!

@matthewCmatt matthewCmatt marked this pull request as ready for review February 18, 2025 02:25
@rcarteraz rcarteraz requested a review from thebentern February 18, 2025 22:10
thebentern
thebentern previously approved these changes Feb 19, 2025
@matthewCmatt
Copy link
Contributor Author

@thebentern Merged in main to solve merge conflicts. Hopefully #486 doesn't cause another.

p.s. left this message on the wrong PR, mb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graph nodes and connections display over map panes
2 participants