Mycoding
15 Aug 2011, 9:26 AM
I want to relize zooming not over changing width of windows or panels but over
clicking on buttons like in map
http://www.ammap.com/
If i do it over
surface.items.setAttributes({
scale: {
x: 0.5,
y: 0.5
}
}, true);
I get all items on the same position but with changed size.
I found in source code this function.
surface.setViewBox(0, 0, 1000, 1000);
But I think it is private function and works not as I expect. It scale good by with some logic that I do not understand right.
Please guve me advice how to realize zooming like in this sample
[/URL]http://www.ammap.com/
If you also can give me advice how to do dragging.
I think I am kooking for this sample [url]http://dev.sencha.com/deploy/ext-4.0.2a/examples/draw/Tiger.html (http://www.ammap.com/)
with behavior of this http://www.ammap.com/
clicking on buttons like in map
http://www.ammap.com/
If i do it over
surface.items.setAttributes({
scale: {
x: 0.5,
y: 0.5
}
}, true);
I get all items on the same position but with changed size.
I found in source code this function.
surface.setViewBox(0, 0, 1000, 1000);
But I think it is private function and works not as I expect. It scale good by with some logic that I do not understand right.
Please guve me advice how to realize zooming like in this sample
[/URL]http://www.ammap.com/
If you also can give me advice how to do dragging.
I think I am kooking for this sample [url]http://dev.sencha.com/deploy/ext-4.0.2a/examples/draw/Tiger.html (http://www.ammap.com/)
with behavior of this http://www.ammap.com/