How Do I Save & Restore the State of a Viewport?
HI, Can someone please tell me how to save current stage (zoom,x,y) so I can create variables to save and get to this stage later on, I am tracing all coordinates (toString) in NormalizedViewPort.as, but when i am trying to use it, not sure which method i have to use. I tried ZoomTo method(this one is little off).
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Swider132,
First of all thanks for reposting your question. This will help other people to find an answer more quickly.
In order to save the state of the viewport and later restore it I recommend using the IViewport::getBounds() and IViewport::fitBounds() methods. The first one returns a Rectangle object and the second takes a Rectangle object.
Does this answer your question?
Cheers,
Daniel
The company says
this answers the question
-
PERFECT... thank you a lot!!!!!!!
Where can i donate !!!!:0 -
Swider132,
You're welcome. You will find a donation button at the bottom of http://gasi.ch/blog/openzoom-sdk/
Thanks,
Daniel
Loading Profile...




EMPLOYEE