kamal maji wrote:

> hi all,
>
> i am facing a big problem in zooming to a particular state/county from 
> country level in svg map. could anybody please help.
>
>
hi kama

you can use something like this:
-where "state" is a reference to the shape you want to zoom in to
-and "root" is your svg root element

function zoom(){
var box=state.getBBox()
root.setAttribute("viewBox",box.x + " " + box.y + " " + box.width + " " 
+ box.height)
}

hth
Holger



-----
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/
 



Reply via email to