I must be dumb: I can not make it work :( do you have an example ? TIA, Pierre.
> -----Original Message----- > From: "Andr� M. Winter - Carto.net" [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 19, 2005 3:18 PM > To: [email protected] > Subject: Re: [svg-developers] pseudo LOD > > > bonjour pierre, > > the outermost svg tag in ASV has the properies innerWidth and > innerHeight (you may call them with > onload="myFunc(this,innerWidth,innerHeight);"). those values give you > the extent of the canvas in px in whatever the plugin gets loaded. > > on the other hand you have your initial viewBox width and > height. those > give you your drawing size in drawing units. with the pixels > from above > you get a scale (-figure). > > when the user zooms around, you can track this with the > onzoom-event in > the outermost svg tag. onlaod the value always is 1. as long > as you do > not touch the viewBox (re-inits onzoom with 1), onzoom always > gives you > a correct value of the actual zoom level. > > andr� > > -- > ___________________________________________________________________ > andre m. winter, > <http://www.vectoreal.com/> SVG consulting and development > <http://www.carto.net/> online cartography focusing on SVG > <http://www.carto.at/> print and online touristic map solutions > > > > > > Bru, Pierre wrote: > > >AFAIK, there is no provision for level of detail (LOD) in SVG. I can > >simultate it with by hidding thin elements at large scale and showing > >them as needed. but... how can I know how much zoom is currently used > >(say with ASV) ? > > > >TIA, > >Pierre. > > > > > >[Non-text portions of this message have been removed] > > > > > > > >----- > >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 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 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/

