Skip to main content
Skip table of contents

Branding KMZ Downloads - SuperWEB2

Users can download KMZ format files from Map View. This file format can be loaded into mapping applications such as Google Earth.

By default, SuperWEB2 will include the table name in the file (this will appear in the layer list in Google Earth) and a legend for the map (this displays in the bottom left corner of the display in Google Earth).

There are also some parameters for the KMZ output that you can configure. To change these settings, you need to modify <tomcat_home>\webapps\webapi\WEB-INF\web.xml.

After making changes to web.xml, you will need to restart Tomcat or the SuperWEB2 service to apply the changes.

Document Author

You can configure the author name that is embedded in the KMZ file by changing the following property in web.xml:

XML
    <context-param>
        <description>
            MapView PDF Author Document Property - used to set the Document Properties for generated PDFs. 
         </description>
        <param-name>mapPdfDocumentPropertyAuthor</param-name>
        <param-value></param-value>
    </context-param>

This is the same property that is used to set the author in PDF downloads from Map View.

Copyright Statement

You can add a copyright statement to the KMZ file, by adding the following property to web.xml:

XML
    <context-param>
        <description>
            MapView KMZ Copyright Property. 
         </description>
        <param-name>kmzCopyright</param-name>
        <param-value>(c) 2013 Space-Time Research</param-value>
    </context-param>

This property does not appear in the default version of web.xml. You need to add the above text to your version of the file and set the parameter value to your preferred copyright statement.

In Google Earth, the copyright statement displays when you click the table name:

You can add a web link to the KMZ file, by adding the following property to web.xml:

XML
    <context-param>
        <description>
            MapView KMZ Link Property. 
         </description>
        <param-name>kmzAtomLink</param-name>
        <param-value>http://www.spacetimeresearch.com</param-value>
    </context-param> 

This property does not appear in the default version of web.xml. You need to add the above text to your version of the file and set the parameter value to your preferred URL.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.