qqqqqq qqqqqq
hhhhhhhhhhhhhhhhhhhhhhhhhh



More About MAPublisher SVG
MAPublisher-SVG samples
Download SVG Viewer Browser Plugin
Download MAPublisher-SVG
MAPublisher-SVG Gateway
Adobe SVG Zone
  • SVG Viewer Release notes
  • Overview
    Other SVG links:
  • Carto.net
  • DBx Geomatics
  • SVG Open
  • W3C SVG Page
    Comments/suggestions
    MAPublisher-SVG mailing list
    Avenza home page

  • MAPublisher-SVG is comprised of 9 items as follows. Only the first item, MAPublisher-SVG Exporter Plugin, is required to generate SVG files in the MAPublisher-SVG format however the other 8 are required to enable your MAPublisher-SVG files to be viewable in a web browser.

    MAPublisher-SVG Exporter Plugin - This is the Adobe Illustrator plugin that provides Adobe Illustrator with the ability to create and export an SVG file in MAPublisher-SVG format. Beginning with version 9.0, Adobe Illustrator has natively had the ability to export Illustrator documents as SVG files however such files are graphics files only and do not contain the contents of the MAP Attributes tables. As such it is necessary to use the MAPublisher-SVG option when exporting to this format.

    HTML Template - There are two of these files, each of which is a browser-specific html file (one for Internet Explorer & one for Netscape) that contains the code necessary for the MAPublisher-SVG file to be displayed in a web browser.

    Query Applet - There are two of these files, each of which is a browser-specific Java applet (one for Internet Explorer & one for Netscape) that allows for the querying of the attribute data contained in a MAPublisher-SVG file.

    Attribute Applet - There are two of these files, each of which is a browser-specific Java applet file (one for Internet Explorer & one for Netscape) that allows for the display of the attribute data for a specific element of a MAPublisher-SVG file.

    SVG Viewer Applet - There are two of these files, each of which is a browser-specific Java applet (one for Internet Explorer & one for Netscape) that acts as the "main" applet that contains the applet-plugin communication.

    In order to deploy a MAPublisher-SVG file on your web server it is necessary that all 6 Java applet files, 3 for each browser type, be present in the directories that contain the html files that load the MAPublisher-SVG document. These html documents would typically be comprised of the provided html template files or other html files that contain or incorporate the html template code. If all the html files associated with your MAPublisher-SVG files are in the same directory on your web server then each of the Java applet files need only be present once for each browser type. The 6 Java applet files can be used without alteration. The only files that require editing prior to deployment on a web server are the html templates wherein the path that identifies the location of the referenced MAPublisher-SVG file must be placed. There must be an html file for each MAPublisher-SVG file.

    Installing the MAPublisher-SVG Exporter Plugin - The MAPublisher-SVG Exporter Plugin is comprised of a single file named MAPExportSVG.aip (Windows) or MAPExportSVG (Mac). In order to make this plugin operative on your system and available in Adobe Illustrator simply move or copy the plugin file to the "plugins" folder within the Adobe Illustrator 9 folder on your hard drive. On a Windows system the plugins folder is usually in C:\Program Files\Adobe\Illustrator 9.0 and on a Mac system it is typically in Applications\Adobe Illustrator 9. Please ensure that Adobe Illustrator 9.x is closed before performing the above steps. Once the above process has been completed the MAPublisher-SVG export option will be available under File->Export in Adobe Illustrator 9.x.

    Data Requirements - As is the case with other file formats exportable from Adobe Illustrator with MAPublisher (MapInfo mid/mif, Arcview Shape etc.), it is required that all features must be recognized as MAPublisher objects in order for the export process to be successful. GIS data that was previously imported by MAPublisher will be automatically made MAPublisher-aware upon import. Features that have been manually added using Illustrator's art tools must be made MAPublisher-aware using MAPublisher's Map Creation tools. Art elements not converted to MAPublisher objects may still be exported to a MAPublisher-SVG file but will not be available for query or search using the MAPublisher-SVG browser applets. All GIS data formats supported by the MAPublisher import filter (mid/mif, shape, dxf, SDTS, DLG, e00 etc.) may be used in the creation of maps for output as MAPublisher-SVG files.

    Preparing Data for Export - The usual MAPublisher work procedures still apply when preparing data for SVG output, including ensuring that different feature types (ploygons, lines & points) are maintained on separate Illustrator layers. As well, as SVG documents are text based and document size can have a direct impact on the performance of the SVG applets in a browser, it is recommended that the attribute table be optimized prior to export. Procedures such as removing unnecessary attribute columns and joining linework are recommended. It is also advisable to check that all map data is MAPublisher-aware before attempting to export. The easiest way to do this is to use the MAPublisher Selection Statistics or "SelStats" window to check the current status of the objects in the file. Objects which are recognized by the SelStats window are MAPublisher-aware. Finally, ensure that all Illustrator layers are unlocked and select File->Export from the Illustrator menu bar and select "SVG for MAPublisher (*.svg)" from the "Save as type" dropdown list. Note: When exporting, if you have inadvertently exported your file as a compressed SVG document (*.svgz) it will change your Illustrator svg preferences and the MAPublisher-SVG exporter will fail to work. In such a case it is necessary to re-do an export to normal SVG (*.svg) at which point the MAPublisher-SVG exporter will work again. The Illustrator default in non-compressed.

    Setting up a MAPublisher-SVG Document for Viewing - Provided the 3 Java applet files and an html page containing the template code with a direct reference to the location of the SVG file are all in the same folder on your web server, the loading of the html page will result in the presentation of the SVG map along with 2 small Java applet windows. One applet window is for displaying the attributes of a selected item and the other is for searching for map features that satisfy a particular query. In order to display MAPublisher-SVG files in a browser the appropriate SVG browser plugin must be present on the client machine. At this time, Internet Explorer users should have version 3.0 of the SVG browser plugin and Netscape users should have version 2.0 of the SVG browser plugin. At this time MAPublisher-SVG does not support version 3.0 of the SVG browser plugin for Netscape. In addition, Internet Explorer for Mac cannot currently be used with the MAPublisher-SVG applets due to its sub-standard JavaScript support. The folder containing the operative files for the web browser should look something like the image below.



    For each browser type the provided html template files must be modified to incorporate the path that leads to the actual SVG file location from where it will be served to the browser. The SVG file need not necessarily be located in the same folder as the html and Java applet files. Using a text editor program such as Notepad, WordPad, SimpleText or BBEdit, open the SVGViewer.html template file and locate the line that begins with "<embed src=". It is the eighth line down from the <html> file header. See the image below.



    Once you have locate the <embed src> tag simply replace the path to the SVG file with the actual location of the SVG file on your computer, web server or other delivery media then save the file with an appropriate name. For example, looking at the above image you would replace the section underlined in red with the appropriate path for the particular MAPublisher-SVG file that you wish to display.

    Querying a MAPublisher-SVG Document - When the html page referencing the MAPublisher-SVG document is loaded, two small Java applet dialogs will also be loaded. These are the MAPublisher Information dialog and the MAPublisher Query dialog. The MAPublisher Information window is used to view the attribute information for manually selected objects in the MAPublisher-SVG file. So by simply clicking on an object in the MAPublisher-SVG page, the related attributes will be displayed in the Information dialog. The MAPublisher Information dialog functions similarly to the MAP Attributes window in MAPublisher. The MAPublisher Query dialog is used to perform searches on the attribute data contained inside a MAPublisher-SVG file and to display the results in the image by highlighting the features that satisfy the query. Selections and queries may be made on various data types and layers within a MAPublisher-SVG document. The dropdown list at the top of each dialog is used to select the layer to be queried.

    qqqggggggqqqq

    Please now choose from the following links or choose a link from the list at the top of this page to continue your MAPublisher-SVG experience:

    Download MAPublisher-SVG qqq View Sample MAPublisher-SVG Maps qqq Comments and Suggestions qqq qqq Download SVG Browser Plugin



    http://www.avenza.com/svg/mapub-svg_more.html (last modification: Wednesday, November 21, 2001)
    For more information contact : info@avenza.com
    disclaimer
    mmmmmmmmmmmmmm