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
loicrollus gmail.com 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 loicrollus gmail.com
at openSubscriber.com
> ht
tp://www.opensubscriber.com/messages/batik-users xmlgraphics.apache.org/topic.html
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help xmlgraphics.apache.org
>
>
--
--
----------------------------------------------
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: neumann karto.baug.ethz.ch
www: http://www.carto.net/ne
umann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help xmlgraphics.apache.org
|