Beta Feature : Add Base layers without symbology to the Legend

In previous versions of Surfer, the only base layers that have symbology could be included in the legend. Now, all vector base layers are included in the legend. For example, import multiple SHP files as base layers for pipelines, tenements, drainage lines, and field boundaries and they’ll each be included in the legend.

BaseLegend.png

Create a legend that automatically displays all objects in all vector base layers.

 

What is this new feature

This feature gives you the ability to automatically create legends including all base layer features in your map.

  • Include samples in the legend for every base layer in your map

  • Draw features in your base layers and include them in the legend

  • Eliminate the need to manually create legends to include this information

How to use it

To use this feature, all you need to start with is a vector base layer, with drawn objects in it.

 

Follow these steps:

  1. Open Surfer 32.

  2. In the Welcome to Surfer dialog, under Files, make sure Sample Files is selected, select Base.srf and click Open. In the map, there are two vector base layers (Transportation and Hydrology).

  3. Let’s first add one more base layer to the map. Download Golden Contours.gsb, attached to this KB article.

  4. In the Contents window, select the Map and click Home | Add to Map | Layer | Base, select Golden Contours.gsb and click Open.

  5. When prompted to adjust the limits, just click No.

  6. Click Map Tools | Add to Map | Legend. A legend is created. It happens to be on top of the map scale, so just select the legend and move it off to the left.

    1. 1 initial legend.png

  7. Now we can customize the legend. In the Contents window, select the Legend.

  8. In the Properties window, click the Layers tab.

  9. With the Layer to edit set to Hydrology:

    1. Change the Template to: \sample \layername

      1. Note: Changing the directive from \name to \layername shows the name of the layer instead of the name of the object. 

    2. Click the Select samples button

    3. In the Show Samples dialog, uncheck the box for the Polygon and click OK. Now we just see the blue line for Hydrology. 

      1. Note: The Show Samples dialog allows you to show (or hide) objects from being shown in the legend. You also have the ability to change the name of the object, as it is displayed in the legend.

  10. Change the Layer to edit to Transportation:

    1. Change the Template to: \sample \layername

  11. Change the Layer to edit to Base(vector)-Golden Contours.gsb

    1. Change the Template to: \sample Elevation Contours

    2. 2 med legend.png
  12. Now you can add the finishing touches, such as:

    1. Clicking the General page in Properties, and setting the Type to Square

    2. For the Title text, enter “Legend”. You can expand the Font properties and increase the size and edit other properties for the title font.

    3. You can also select the new Golden Contours Base layer in Contents, and in Properties, on the General page, expand Properties | Line properties and change the Color to gray (or any other color). As soon as the properties are changed in the map, they are updated in the legend as well.

3 legend.png

Add three vector base layers easily to your legend, choosing to show the layer name or custom text for the legend label.

 

Notes/Tips:

  1. By default, the Value and Name for the sample in the legend is the object name in Contents.

    1. You can set the object name for the objects in Contents to any attribute, so that way the attribute is displayed as the label in the legend.

  2. The directives that are available to use in the legend layer template for base layers are:

    1. \sample = this shows the point, polyline or polyline sample

    2. \value = this shows the value for the object, which is the name of the object as shown in Contents 

    3. \name = this shows the name of the object. By default, this is the same as the value (the name of the object), but can be customized to anything you wish in the Show Samples dialog 

    4. \layername = this shows the layer name

  3. There is a new option for Number of columns. If your layer has many samples in it you wish to include in the legend, then you can increate the number of columns to help distribute the samples. This works only on a per-layer basis. If you have one layer with 15 items, then you can display these in multiple columns. If you have 15 layers each with 1 item in it, then the Number of columns will not affect the display. 

  4. Logic:

    1. All objects with the same properties and same names will be displayed as a single sample in the legend.

    2. Objects that have different properties, with the same name, will be different samples in the legend.

    3. Objects that have the same properties, but different names, will be different samples in the legend.

Was this article helpful?
...

Comments

0 comments

Please sign in to leave a comment.