OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] A few general questions about SVG

[ Lists Home | Date Index | Thread Index ]

Hi Roger,
 
I am sure there are better people out there to answer this question-- but I will take a stab:
 
>>1. Suppose that I render an SVG document in a browser (using the Adobe SVG plugin).  My experiments show that I can right-mouse-click on the image and select Zoom in.  However, my experiments also show that I can only Zoom in 3 or 4 times, at which time the Zoom in menu pick gets grayed-out.  Does SVG limit the level of Zooming in, or is that a limitation of the Adobe renderer?<<
 
This is an implementation specific detail.
 
>>2. Continuing with the last question ... Suppose that I have a map of a country.  How much detail can be put into the map?  Can I put details down to the level of a building, on a street, in a city, in a state in the country?  Can I then Zoom in from the country level down to see the building?<<
 
Theorectically, yes. Though I suspect this would be extremely unlikely. Imagine diagraming every building in the country in a single image. This would be immense-- and I doubt there is a renderer that could handle it-- and unlikely any computer to hold the diagram in memory. To do it you would probably want to work from a generated SVG that pulled items out of a database for each level (ultimately a new SVG for each area). But it is "possible"-- especially because SVG allows you to maintain your own coordinate spaces-- so when you zoom you are not zooming in on pixels but regions.
 
>>3. Can I associate textual information with parts of the SVG graphic?  For example, if I have a graphic of a country, I might like to associate some textual information for each city.  Is it possible to hide the textual information until the user, for example, right-mouse-clicks on the city?<<
 
Yes, but right clicking is perhaps a bad method because working with a context menu is implementation specific. A click or a key could very easily allow you to "popup" an informational window or context help. This can be done through javascript or smil.
 
>>4. Continuing with the last question ... Can I associate different textual information with different scales?  For example, when the graphic of the whole country is being displayed I want to display text relating to the whole country.  When the user zooms down to a city, I want text relating to that city.  Thus, is it possible to associate different text with different zoom levels and different parts of the graphic?<<
 
Yes. Lance Dyas posted this sample to the svg-dev list on Friday. It shows some of what you are asking-- though the example was intended for a different purpose.
 
 
Given time, I could probably come up with some more examples showing almost exactly what you are describing.
 
>>5. Suppose that I want to create an SVG image of a country.  I cannot imagine handcrafting an XML SVG document.  How do you suggest that I create the SVG document?<<
 
There are a number of tools that work from images to generate path statements for SVG. Adobe Illustrator is a good example-- anything done there can be saved to SVG. Additionally, there are some great pure SVG tools out there such as XStudio (http://www.evolgrafix.com). I believe there are some opensource converters out there, but don't know them off hand.
 
Hope this helps,
 
Jeff Rafter




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS