Using Map Template

Map template records parameter information such as map layer info, layer style, and thematic settings. In SuperMap, a map template is essentially an *.xml file that records map-related information. If the map uses non-system symbols, the map template also saves symbols from the map, allowing the symbols to be imported and applied together during next use. Users can obtain new maps by modifying based on the map template, making it convenient for users to quickly create maps based on templates.

SuperMap supports loading map templates for use in other maps, and also supports saving the settings of the current map as a template file, making it convenient to apply this information to other maps.

Load Map Template

Function Entry

  • Workspace Manager-Map node context menu->Load Map Template.

Operation Steps

  1. Right-click the Map collection node in the workspace manager, select "Load Map Template" from the context menu, and the "Load Map Template" dialog box will pop up;
  2. Supports batch selection of map template files (*.xml). You can select multiple map templates simultaneously using the Shift or Ctrl key, making it convenient for users to quickly create maps in batches based on templates. If the template uses non-system symbols, importing the template file will import the required symbols for the map.
  3. When importing symbols, it will perform a duplicate symbol detection between the imported symbols and existing workspace symbols.If duplicate symbols are detected, a duplicate symbol dialog box will pop up.
    • Symbol Matching Rules: Provides two options: Symbol ID and Symbol Style, with Symbol Style selected by default for matching.
      • Symbol ID: Symbol ID is used to uniquely identify the symbol in the symbol library; in the same symbol library, the symbol IDs of different symbols cannot be the same.
      • Symbol Style: Symbol style refers to the rendering content of the symbol, including geometric shape, size, color, and other attributes.
    • Duplicate Symbol Information: Outputs duplicate symbol information, for example, "There are 3 symbols that duplicate existing symbols. Please handle the duplicate symbols:".
    • Detailed Info: A detailed comparison information list of duplicate symbols, including imported symbol ID, imported symbol style, existing symbol ID, and existing symbol style content.
    • Duplicate Symbol Retention Handling:
      • Retain Imported Symbol: Meaning the imported symbol replaces the existing symbol entirely.

      • Retain Existing Symbol: Meaning abandon the import and retain the existing symbol.

      • Select Symbols to Retain: Pops up the Select Symbols to Retain dialog box, allowing users to select which symbols to retain for each symbol by checking checkboxes.

        • If only the imported symbol option is checked, the imported symbol replaces the existing symbol.

        • If only the existing symbol option is checked, abandon the import and retain the existing symbol.

        • If both imported symbol and existing symbol options are checked, append the imported symbol to the symbol library.

    • Since workspace resources require unique symbol IDs, the program automatically handles ID conflicts based on user selection (as shown in the table below):

Matching Rule Duplicate Handling Method Symbol Handling Symbol ID Change
Symbol Style Retain Imported Symbol Imported symbol replaces existing symbol
  • If the imported symbol ID duplicates an existing ID, replace entirely with the imported style and ID.
  • If the imported symbol ID does not match any existing ID, automatically modify the symbol ID in the existing map to match the imported symbol ID.
Retain Existing Symbol Abandon import and retain existing symbol
  • Automatically modify the symbol ID used in the template map to match the existing symbol ID.
Select Symbols to Retain Append imported symbols to the symbol library
  • If the imported symbol ID duplicates an existing ID, automatically modify the imported ID (current symbol library max ID +1) and update the template map ID accordingly.
  • If no ID duplication, append normally.
Symbol ID Retain Imported Symbol Imported symbol replaces existing symbol
  • Symbol ID remains unchanged.
Retain Existing Symbol Abandon import and retain existing symbol
  • Symbol ID remains unchanged.
Select Symbols to Retain Append imported symbols to the symbol library
  • Modify imported symbol ID to current symbol library max ID +1, and automatically update the template symbol ID accordingly.

Output Map Template

Function Entry

  • Workspace Manager-Map node context menu->OutputMap Template.

Operation Steps

  1. Right-click the map node in the workspace manager, and select "Output Map Template" from the context menu.
  2. Right-click in the map, and select "Output as Map Template" from the context menu.

Related Topics

Map Operation