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 continuous map updates #30

Merged
merged 1 commit into from
Feb 29, 2016
Merged

Fix continuous map updates #30

merged 1 commit into from
Feb 29, 2016

Conversation

guilhermelawless
Copy link
Contributor

-Revert Viewer shifting offsets before scaling
-Added an example page to view continuous map updates

Started on issue #29, although nothing to do with the title.

Previous build would not revert the offset shift for map origin, causing the following scales and shifts to go out of control and map not showing any more, only black background. In order to revert the offset, the previous offset was saved in new viewer variables viewer.x_prev_shift and viewer.y_prev_shift

This seems to be working for both continuous and one-time map updates. Someone with more experience could make the necessary adjustments in the code, most likely.

-Revert Viewer shifting offsets before scaling
-Added an example page to view continuous map updates
@rctoris
Copy link
Contributor

rctoris commented Feb 29, 2016

👍 Awesome, thanks!

rctoris added a commit that referenced this pull request Feb 29, 2016
@rctoris rctoris merged commit 3029145 into RobotWebTools:develop Feb 29, 2016
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.

2 participants