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

Retrieve Zoom level via ROS Topics or services. #831

Open
joeldevasia opened this issue Nov 19, 2024 · 4 comments
Open

Retrieve Zoom level via ROS Topics or services. #831

joeldevasia opened this issue Nov 19, 2024 · 4 comments

Comments

@joeldevasia
Copy link

Hello there, I am currently using MapViz in ROS Noetic. I noticed that Visualisation Markers don't scale based on zoom. In my particular use case, the user would have to zoom in and out from few metres of screen area to several hundreds of Kilometres frequently. And the markers I publish are dynamic. So I was wondering if there is no built-in way to resize Visualisation Markers based on zoom, then if some how i could get the zoom level, I would re-publish all markers with updated scale. I could then set a fixed frequency for updating the marker or update them when zoom changes.

Are there any way to get the current zoom level?
I was thinking if its not possible them I'll have to monitor the Tile Map URL to extract the zoom level but that would be too much for me.

Thankyou in advance.

@danthony06
Copy link
Contributor

Right now there's not a way to resize that I know of, but I think that makes a lot of sense. I think I'd rather have Mapviz scale the markers itself, based on a user setting, than publish the zoom level and have the markers themselves change. If we had the markers re-publish, it would change it for all listeners of the message, which doesn't seem great.

@joeldevasia
Copy link
Author

So are there any work arounds, atleast for my particular case?

@danthony06
Copy link
Contributor

danthony06 commented Nov 21, 2024 via email

@joeldevasia
Copy link
Author

Okay thanks.

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