Andre, Thanks for your reply. That answers my question about the relationship between 'viewbox' attributes and 'scale'. What would be the steps (using CurrentScale/Translate) to zoom in to the selected property extent and display the corresponding scale?
Thanks Kiran --- In [EMAIL PROTECTED], "Andr� M. Winter" <[EMAIL PROTECTED]> wrote: > hi, > > scale doesn't change after viewBox changes because the scale is > reinitated on viewBox updated. thus it stays or reverts to 1. > > don't mix viewBox handling and currentScale/Translate. both have their > advantages but switching results in undesired results as you have seen. > > andr� > > > >Hello all, > > > >I am using SVG to create a mapping application. I have a dropdown > >list of some properties within a city. When a user clicks on any one > >from this list, the map zooms to that particular property. To zoom > >to that property and fit it entirely in the viewport, the only thing > >I do is set the viewbox attributes (x,y,width,height) equal to the > >extent of that property. This works fine but my problem lies > >with 'scale'. After the property is displayed, I also would like to > >display the 'scale' at which it is being displayed. But when i try > >to read the scale (after zooming), the scale still shows the > >original scale (before zooming). Why is the 'scale' not being > >changed ? Doesnt changing the 'viewbox' attributes automatically > >change the scale? How do i find the 'current' scale after the > >property is zoomed in? > > > >Thanks for your help, > >Kiran > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/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/

