Zoomable and draggable view ROS web interface

Is there a way to make the mapview in ROS web interface zoomable and draggable?
When i load a large map its compressed inside the canvas and not shown properly.
Thanks in advance.

Hello @mohamedSaleh77 ,

It should be implemented, actually.
The zoom and the position are both parameters of the map render, for example the method below
viewer.scaleToDimensions(...)

You would need to catch the mouse events

e.g: window.addEventListener

and change the parameters accordingly.

Hope it can help you

Regards

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.