File - Create - New Labels

The File - Create - New Labels dialog allows us to:

 

 

Although most often labels components in our projects will be created from an existing drawing,  we can also create new, blank labels components if we like.   We can then add labels to that labels component as shown in the Labels topic.

 

To create a new, blank labels component:

 

  1. Choose File - Create - New Labels, or right-click onto a blank location in the Project pane and choose Create - New Labels.

  2. Specify a Name for the new labels component.

  3. The Based on box automatically will be loaded with <new drawing> to indicate a new drawing will be created.

  4. In the Text box, provide the name of the text field to be created in the new drawing's table that will host the text of the label, if some name other than the default field name of 'Text' is desired.

  5. Change the coordinate system if some projection other than the default coordinate system is desired.

  6. Press Create Labels.  A new labels component will appear in the project, along with a new, blank drawing and new table.

 

By default, new labels components are created using the EPSG:3857 Pseudo-Mercator coordinate system, as used by almost all modern web mapping data sources.

 

Adding new labels to a new, blank labels layer:

 

  1. Drag and drop the new labels component into a map that provides some reasonable background context so labels may be created in the desired locations.

  2. Choose a label creation tool, such as Create Points, and click into the map to create the anchor for the label.   The Record panel will pop open.

  3. In the Record panel's Style tab, specify the text for the label.  Press Ctrl-Enter or Add Record to create the label.

  4. To change formatting from defaults, open the new labels component and then use Style to specify desired formatting.

  5. To enable individual formatting for each label, in the Contents - Style pane for the labels layer, click the New Field button to add a new field for hosting style override info and then check the Use style overrides box.   When style overrides are enabled, in addition to specifying the text for a label as it is being created we can also specify the individual style for that label such as colors, font and font size.

 

Most of the time we would like to create labels for an existing drawing, which automatically appear for objects in the drawing and which automatically take the text for the label from one of the drawing's fields:

 

Creating labels for an existing drawing:

 

  1. Right-click onto the existing drawing in the Project pane and choose Create - New Labels.

  2. In the New Labels dialog provide the Name desired for the new labels component.

  3. The Based on box automatically will be loaded with the name of the existing drawing.

  4. In the Text box, choose the field to use for the text of the label.

  5. Press Create Labels. A new labels component will appear in the project.

  6. Drag and drop the labels component as a layer into the same map as the drawing.

  7. To change formatting from defaults, click on the layers tab in the map and then use Style to specify desired formatting.

 

When a label component is created based on an existing drawing it will automatically inherit the projection used by that drawing.   If desired, the New Labels dialog allows us to specify a different coordinate system.

 

Positioning:  Labels will be positioned at the location of points, aligned to and slightly offset from lines and approximately in the center of areas.   Label positioning is dynamic: if we zoom into a drawing so that only part of an area is visible, the system will attempt to position the label for that area so it is visible.

 

Creating labels for a drawing based on a query:

 

  1. Right-click onto the existing drawing in the Project pane and choose Create - New Labels.

  2. In the New Labels dialog provide the Name desired for the new labels component.

  3. The Based on box automatically will be loaded with the name of the existing drawing.

  4. In the Text box, choose the field to use for the text of the label.

  5. Press Create Labels. A new labels component will appear in the project.

  6. Labels created from drawings based on queries will appear only when used as a layer in a map that contains at least one other layer.

  7. To update the labels after any changes in source table data, choose View - Refresh.

 

If the query text is changed, we must run the query at least once after changing the text, so that any future refreshes of the labels component will use the new query text.

File - Create - New Labels

dlg_create_labels_new01_01.png

 

In the main menu choose File - Create - New Labels or right-click an empty spot in the Project pane and choose Create - New Labels.

 

Name

Name for the labels component.  "Labels" by default.  Specify a more informative name as desired.

Based on

<new drawing> by default when launched from File - Create - New Labels, or when right clicking on an empty location in the Project pane and choosing Create - New Labels.  Creates a new drawing and associated table for the labels component,  named by adding "Drawing" and "Table" to whatever is the specified Name for the labels component.    The combo box is also loaded with the names of all drawings in the project should we wish to create the labels component based on an existing drawing.

Text

The name of the text field to be created in the new drawing's table that will host the text of the label, if some name other than the default field name of 'Text' is desired.

<text type>

An option box that appears next to the Text box.  Choose the desired data type of the text field.  As a practical matter there is almost never any reason not to use nvarchar type, the default, as that allows Unicode and variable length labels text..

Coord system

The coordinate system to be utilized within the geometry field for the drawing upon which the labels are based.   The default is the same Pseudo-Mercator coordinate system that is used by almost all web servers.  

btn_coord_sys_picker.png

Coordinate system picker button.  Used to specify the coordinate system to be used by the drawing upon which the new labels component will be based.

Create Labels

Create the new labels component, the drawing upon which it is based and the drawing's table.

Edit Query

Launch the Command Window loaded with a query that creates the labels component, drawing and table using the given settings.

Cancel

 Exit the dialog without doing anything.

 

 

Create - New Labels (From a Drawing)

dlg_create_labels_from_dwg01_01.png

 

 

Right-click a table in the Project pane and choose Create - New Labels.

 

Name

Name for the labels component. Based on the table name by default.  Specify a different name as desired.

Based on

The drawing upon which the new labels component will be based.   By default, the drawing that was right-clicked.     The combo box is also loaded with the names of all drawings in the project should we wish to create the labels component based on some other drawing.

Text

Choose the text field within the drawing from which labels will take their text.  Loaded by default with the first text field found in the drawing's attributes.

<text type>

An read-only box that appears next to the Text box which gives the data type of the text field that has been selected.

Coord system

Reports the coordinate system used by the drawing on which the labels component is based.  This same coordinate system will also be used by the new labels component.

btn_coord_sys_picker.png

Coordinate system picker.  Not enabled, since the coordinate system is a property of the drawing upon which the labels component is based and is inherited by the labels component.

Create Labels

Create the new labels component using the specified drawing.

Edit Query

Launch the Command Window loaded with a query that creates the labels component based on the specified drawing using the given settings.

Cancel

 Exit the dialog without doing anything.

 

Create - New Labels (From a Drawing based on a Query)

dlg_create_labels_from_query_dwg01_01.png

 

Right-click a query in the Project pane and choose Create - New Labels.

 

Name

Name for the labels component. Based on the table name by default.  Specify a different name as desired.

Based on

The query-based drawing upon which the new labels component will be based.   By default, the drawing that was right-clicked.     The combo box is also loaded with the names of all drawings in the project should we wish to create the labels component based on some other drawing.

Text

Choose the text field within the drawing from which labels will take their text.  Loaded by default with the first text field found in the drawing's attributes.

<text type>

An read-only box that appears next to the Text box which gives the data type of the text field that has been selected.

Coord system

Reports the coordinate system used by the drawing on which the labels component is based.  This same coordinate system will also be used by the new labels component.

btn_coord_sys_picker.png

Coordinate system picker.  Not enabled, since the coordinate system is a property of the drawing upon which the labels component is based and is inherited by the labels component.

Create Labels

Create the new labels component using the specified drawing.

Edit Query

Launch the Command Window loaded with a query that creates the labels component based on the specified drawing using the given settings.

Cancel

 Exit the dialog without doing anything.

Videos

Manifold 9 - Select Labels and Dynamically Transform - In this quick and easy video we show how to select labels and then dynamically transform the field behind the label using the Transform panel.

 

Manifold 9 - New Labels Features in 9 - Take a look at new Labels features in Release 9 that can be used in the latest, free Manifold Viewer Edge as well. With two clicks we add labels to a map where each label automatically takes its text from fields in a drawing layer. Next we use a single click to create a labels layer that allows us to interactively add a label wherever we want, as a point label or along a line we draw. We see how to turn on per-label formatting so each label can be styled differently.

See Also

Labels

 

Tables

 

Drawings

 

Layer Opacity

 

Style

 

Style: Drawings

 

Style: Labels

 

Contents Pane

 

Contents - Layers

 

Example: Format the Size of City Points by Population - A common GIS task is to format the size of points in a drawing based on some value.  For example, the size of points that represent cities might be formatted based on the value of the city's population, with cities that have larger populations being marked by larger point icons.  This is an example of thematic formatting and is easy to do using the Style panel.

 

Example: Formatting Tricks - The visualization capabilities of Manifold using Style can be exploited to provide endless visual effects.   This topic provides some examples of how to use Style in unexpected ways to create a range of more elaborate effects.

 

Example: Style Overrides - Working with style overrides to individually style areas, to use or not use style overrides, to find all records using style overrides and to clear style overrides.