Walls2D - SVG Map Viewer |
Top Previous Next |
|
Walls2D is a browser-like application designed to recognize the Scalable Vector Graphics (SVG) files generated by Walls. It also works if the files have been modified and rewritten by an SVG editor, such as Adobe Illustrator. This means that if the SVG file has any of the named groups described in SVG Layer Definitions (specifically w2d Walls, w2d Detail, w2d Survey, w2d Labels, w2d Notes, w2d Flags, and w2d Grid) their display can be toggled on and off via toolbar buttons. The program will also recognize georeferencing information in a group named w2d Ref. As you move the mouse cursor across the program's window, coordinates will be displayed on the status pane.
Other types of SVG files, even normal Web pages and URL addresses, can be accessed as well. That's because Walls2D functions as a container for Microsoft's Internet Explorer browser control, a component of most Windows installations. (IE version 5.5 or greater is required.) The latest version of IE is available as a free upgrade at www.microsoft.com/windows/ie.)
The program also functions as a container for Adobe Systems' free SVG viewer plug-in, ASV 3. You're actually using ASV's functions when you zoom and pan a displayed map via the keyboard and mouse. When an SVG document first loads, you'll see this message on the status pane: "To navigate: CTRL-drag to zoom in, CTRL-SHIFT-click to zoom out, ALT-drag to pan, right-click to access other functions." Clicking the right mouse button, for example, opens Adobe's context menu. From there, you can select Help to obtain more information about available functions.
Updated: Adobe's plug-in is not part of the Walls installation package. When Walls2D attempts to open an SVG file, it checks to see if ASV 3+ is already installed on your system. If not, you're informed of this and an About box displays a link that (last I checked) no longer leads us to the plug-in. Instead, you can use a direct link to the setup file at Adobe's website. Just download and run the setup executable (SVGView.exe). Except for the 2.2 MB file transfer, the process is fast and simple; there are no installation options.
Important: If you last installed ASV prior to an upgrade to Internet Explorer 9 or newer, you' likely need to reinstall ASV.
Walls2D keeps a list of recently-opened SVGs, opening the most recent one if it's launched without an argument. If there are no recent SVGs, it tries to open a compressed SVG file named "walls2D.svgz" in the Walls2D program directory. (A small sample map comes with the Walls installation.) One way to send someone an SVG map you've created is to save it as a compressed SVG named "walls2D.svgz", then bundle it in an archive with walls2D.exe. Note that one of the choices in Adobe's context menu saves the loaded document as either a compressed or uncompressed SVG file.
More Details Another context menu choice is to view the loaded SVG file as text ("View Source"). If the SVG was exported from Walls, you'll see comments that describe (to a minimal extent) the file structure and how you might change certain display attributes with a text editor. If you're inclined to explore further, you may want to know how Walls2D communicates with the SVG document when displaying layers, coordinates, and so forth. When instructed to open an SVG file (extension svg or svgz), the program doesn't load the file directly. Instead, it generates a small HTML "wrapper" file (walls2D.htm) and instructs the browser control to load it. The HTML contains a reference to the SVG file and also a set of JavaScript functions serving as the communications link. Walls2D uses one of those functions, for example, to determine which of the above named groups, or layers, exist in the SVG. The corresponding toolbar buttons are then grayed out for those layers that don't exist. The HTML wrapper file is not erased; the last one generated can be found in the Windows %TEMP% directory, which for Windows versions Vista and above is normally "C:\Users\<name>\AppData\Local\Temp."
Planned Features Since an SVG can have image elements (linked PNG files), a planned enhancement is support for another layer named "Image". This will be a PNG background image that the Walls export function takes from a georeferenced TIFF (or PNG) file attached to the project. The next Walls2D release will also offer a better printing function (see below) and a way to convert the current view to a raster image with a specified resolution.
Future Availability of Adobe's SVG Viewer Although Adobe ended official support of the viewer in January 2009, the ASV EOL FAQ states the following :
Adobe does not currently have plans to remove Adobe SVG Viewer from the Adobe.com download area. Adobe recognizes that customers have built Web applications that depend on ASV being available for download, and although Adobe does not plan to develop ASV further, we plan for the existing versions to be available for download as long as our customers rely on them.
The FAQ also mentions some limitations of the viewer when running under Windows Vista, such as the View Source context menu option not working. (This has in fact worked on my computers running Vista 64-bit SP1 and Windows 7 64-bit and Windows 8.1 64-bit.) These limitations are apparently minor and don't affect the functioning of Walls2D. Nevertheless, I'm investigating other options for rendering SVG content, particularly using the capabilities now available in recent versions of IE.
Printing from Walls2D While Adobe Illustrator has better facilities for printing SVG, Walls2D does provide the standard IE-based printing functions in the File menu: Print, Page Setup, and Print Preview. Unfortunately, in part due to issues with the interface between Internet Explorer and Adobe's plug-in, an attempt to print will likely result in a poor-quality map with the wrong aspect ratio. (The grid cells, for example, won't be square.) Accidentally, I discovered the following workaround for obtaining a printout with the correct aspect ratio using IE 8. Later versions of IE behave differently and you'll likely need to experiment to get a decent result.
1) After Walls2D is opened, select File | Page setup and choose landscape mode.
2) Next, select File | Print Preview. The first time you do this, you'll see a fairly crude rendering of the map. Also, the aspect ratio will probably be wrong, just like with a printed version. Note that if you right-click on the image, no context menu pops up.
3) At this point, close the preview window by clicking on the 'X' at the extreme upper-right corner of the window. Important: Do not close it by clicking on the toolbar button labeled "Close" (if present). If you do, the next step doesn't work!
4) Again, select File | Print preview. This time (and at subsequent times) the preview image will look different. You will have the original non-zoomed view and the quality will be better. Also, a right-click of the mouse will bring up Adobe's context menu. You can then use the mouse (and only the mouse) to zoom to the portion of the image you want to print. Be careful not to touch the keyboard! Pressing ALT, for example, will crash the print preview function, producing the message, "There was an internal error, and Internet Explorer is unable to print this document."
5) Finally, print the image by selecting "Print.." from the Print Preview window toolbar. You should get a good result.
The only problem I've found with this bizarre workaround is that any layer visible when the document was loaded will be present in the printout, even though you may have toggled it off. Therefore, it helps that the SVG export function of Walls lets you choose which layers are initially visible. This bug occurs not only with Walls2D, but also with IE/ASV when accessing many of the SVG files posted on the Internet. Only certain kinds of SVGs seem to be affected: those intended to fill the browser window, but in a manner that preserves aspect ratio. That's the kind Walls2D needs to display and print.
|