You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by iceDice <nm...@gmail.com> on 2009/02/25 12:58:40 UTC
Zoom in Batik
Hello,
I am interested is Batik capable of displaying .svg files depending on zoom
level which is used?
Precisely, some object should be displayed only if zoom level is appropriate
e.g. on some scale
only major cities are visible and when user zoom in specific details shows
up (like city streets...).
Thanks.
--
View this message in context: http://www.nabble.com/Zoom-in-Batik-tp22201436p22201436.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: Zoom in Batik
Posted by Helder Magalhães <he...@gmail.com>.
Hi iceDice,
> I am interested is Batik capable of displaying .svg files depending on zoom
> level which is used?
> Precisely, some object should be displayed only if zoom level is appropriate
> e.g. on some scale
> only major cities are visible and when user zoom in specific details shows
> up (like city streets...).
You seem to be referring to Level of Detail (LOD [1]). This can be
accomplished by hiding/showing certain layers depending on the zoom
level. I've seen this implemented using ECMAScript (therefore using
the SVG's built-in script environment) -- there's a live sample [1],
found at svg-whiz.com's samples [2], although you may also implement
this within the Java environment.
Hope this helps,
Helder Magalhães
[1] http://en.wikipedia.org/wiki/Level_of_detail
[2] http://svg-whiz.com/svg/simpleLOD.svg
[3] http://svg-whiz.com/samples.html
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org