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

Tooltip showing only for highest Layer #6

Open
chathika opened this issue Aug 30, 2022 · 1 comment
Open

Tooltip showing only for highest Layer #6

chathika opened this issue Aug 30, 2022 · 1 comment

Comments

@chathika
Copy link

I noticed that the tooltip only displays for agents on the highest "Layer" in the portrayal when using mesa.visualization.CanvasGrid and mesa.visualization.ModularServer. Is there a way to enable tooltips for agents on other layers as well?

@rht
Copy link
Collaborator

rht commented Aug 31, 2022

Unfortunately, there is no straightforward fix for this. The lookup table used for the mousemove event is overwritten whenever there a layer is drawn. See https://github.com/projectmesa/mesa/blob/3664aa25c29e71fdb2b8486df5821324e46d4338/mesa/visualization/templates/js/GridDraw.js#L76.

@rht rht transferred this issue from projectmesa/mesa Aug 7, 2023
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

No branches or pull requests

2 participants