On Sun, 23 Jul 2006 22:28:14 +0200, kunci78 <[EMAIL PROTECTED]> wrote:
> Hi, > > First sorry for my bad english. > I make a map svg. Because the lot of texts (4000 texts) the rendering > time is very slow. I want to make a level of details view for the text > layer, but the display none/inline or visibility visible/hidden change > is very slow for all objects in a group. I want to set just that > objects, which is actually on the screen (inside my view zone). How can > I select just this objects? > > Thanks, > Kunci http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement getIntersectionList Returns the list of graphics elements whose rendered content intersects the supplied rectangle, honoring the 'pointer-events' property value on each candidate graphics element. That could be what you want. However I don't think all viewers have implemented this method, so in practice you're probably stuck with grouping your texts somehow, and making them visible depending on zoom level. It's also possible to implement yourself (in script) a function that checks the boundingboxes of the text elements against a rect of your choice. My guess is that Andreas Neumann already has some examples of how to do that, see http://www.carto.net. And I would recommend using display:none over visibility:hidden, especially if you have many elements in your tree. Hope this helps /Erik -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

