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

ROS2D.Zoom usage with ruler/grid for scale realization. #42

Open
rahuldeo2047 opened this issue Oct 31, 2019 · 2 comments
Open

ROS2D.Zoom usage with ruler/grid for scale realization. #42

rahuldeo2047 opened this issue Oct 31, 2019 · 2 comments

Comments

@rahuldeo2047
Copy link

rahuldeo2047 commented Oct 31, 2019

mouse wheel/scroll event ?
I could utilize the pan view. However, the zoom is not working as I am not able to capture the mouse wheel event. both 'wheel' and 'mousewheel' event name tried with stage and canvas. I am able to capture other mouse events.

zoom ?
In case the mouse wheel/scroll event is captured, how can I implement the startzoom(...) and zoom(...) methods. Any example.

ruler or grid ?
After which I will need a ruler/grid alongside/on stage for scale realization as per zoom level.

map modify ? (to study about)
On top of these, I will have to modify/annotate the static/dynamic map.

However, I am getting the mouse wheel event with the direct event adding to the document element.
document.getElementById('map').addEventListener('wheel', ...);

Any implementation care so that pan and zoom do not interfere with each other.

Any direction towards these will help me achieve the mentioned goal.

@rahuldeo2047 rahuldeo2047 changed the title ROS2D.Zoom with ruler/grid for scale realization. ROS2D.Zoom usage with ruler/grid for scale realization. Oct 31, 2019
@rahuldeo2047
Copy link
Author

@zeken
Copy link

zeken commented May 25, 2020

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