<community>of XML and SVG Developers</community>
This is a discussion on how to zoom to a specific area within the SVG Questions forums, part of the SVG Forums category; hi all My web application use SVG to show a map over where various ship are. Instead of having the ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| My web application use SVG to show a map over where various ship are. Instead of having the user having to press CTRL and make a square over the area where the ship of intrest is - i want to be able to let the user to choose the ship in a dropdown box and then automatically zoom into the area where it is.. So the question then is.. How do i zoom in on a specific svg element? How do i set the specific element in the focus where the zooming is happening? Thanks in advance -Ronny |
| |||
|
Hi ronny, Your dropdown list can return some new coordinates for the viewBox. You will get the new coordinates by using the function getBBOx() of your ships. An other way to do it is explain to this adresse: http://www.yoyodesign.org/doc/w3c/svg1/linking.html go to this paragraph:17.2.2 Les identifiants de fragment SVG It is in french, but the exemple is clear enough. S?bastien. |
Ink Jet Cartridges...
View the numerous different makes of inkjet cartridges available online.
printer ink cartridges
Top quality printer ink cartridges for rock bottom prices. Buy directly from the factory right now! Make a saving, order with us online.
HARD DISK DRIVE DATA RECOVERY CHESHIRE
Professional, prompt and cost effective hard disk drive data recovery. Click above!