one approach would be to query the bounding box of the element
(element.getBBox()) and then use the values to set a viewBox for zooming.
Andreas
[EMAIL PROTECTED] wrote:
Hello,
How can we zoom on an specific elements of the SVGDocument?
I have to show a map on the screen and if the user click on a room (=Dom
elements), it must zoom on it.
I can make a zoom, I can put a listener on a click event but I don't know how
to zoom on a specific room...
thx
--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/[email protected]/topic.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093 Zurich, Switzerland
Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: [EMAIL PROTECTED]
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]