凡例アイテム

The Legend item is a box or a table that explains the meanings of the symbols used on the map. A legend is then bound to a map item. You can add a legend item with the addLegend Add Legend tool following items creation instructions and manipulate it the same way as exposed in Interacting with layout items.

By default, the legend item displays all available layers and can be refined using its Item Properties panel. Other than the items common properties, this feature has the following functionalities (see figure_layout_legend):

../../../../_images/legend_properties.png

凡例アイテムプロパティパネル

メインプロパティ

The Main properties group of the legend Item Properties panel provides the following functionalities (see figure_layout_legend_ppt):

../../../../_images/legend_mainproperties.png

Legend Main properties group

メインプロパティでは:

  • change the title of the legend. It can be made dynamic using the data-defined override setting, useful for example when generating atlas;

  • set the Title alignment to Left, Center or Right;

  • choose which Map item the current legend will refer to;

  • wrap the text of the legend on a given character: each time the character appears, it's replaced by a line break;

  • checkbox コンテンツに合わせてサイズを変更する 使用して、コンテンツに合わせて凡例のサイズを自動的に変更するかどうかを制御します。チェックを外すと、凡例は決してサイズ変更されず、代わりにユーザーが設定したサイズに固執します。サイズに合わないコンテンツはすべて切り取られます。

凡例アイテム

The Legend items group of the legend Item Properties panel provides the following functionalities (see figure_layout_legend_items):

../../../../_images/legend_items.png

Legend Items group

  • checkbox 自動アップデート をチェックしておくと凡例が自動的に更新されます. 自動アップデート のチェックが外すと凡例アイテムリストの下のアイコンが有効となり, 凡例アイテムをより細かく制御できます.

  • 凡例アイテムウィンドウにはすべての凡例アイテムが表示され, アイテムの順序変更, レイヤのグループ化, 一覧へのアイテムの削除, 復活, レイヤ名の変更, フィルタの追加が可能です.

    • アイテムの順序は arrowUparrowDown ボタンを使用するか, 'ドラッグ・ドロップ' により変更できます。 WMS凡例グラフィックでは順序は変更できません。

    • addGroup ボタンを使用して凡例のグループを追加します。

    • signPlus ボタンを使用してレイヤーを追加し、 signMinus ボタンを使用してグループ、レイヤーまたはシンボルクラスを削除します。

    • projectProperties ボタンはレイヤー、グループ名やタイトルを編集するために使用されます。まず、凡例アイテムを選択する必要があります。ダブルクリックするアイテムには、その名前を変更するには、テキストボックスを開きます。

    • sum ボタンは、ベクターレイヤーの各クラスの地物の数を足し算します。

    • filterMap マップcontent ボタンでフィルタの凡例は、マップに表示のみ凡例アイテムが凡例に表示されます。checkbox このツールは、利用可能な場合のまま 自動update が有効です。

    • The expressionFilter Filter legend by expression helps you filter which of the legend items of a layer will be displayed, i.e. using a layer that has different legend items (e.g., from a rule-based or categorized symbology), you can specify a boolean expression to remove from the legend tree, styles that have no feature satisfying a condition. Note that the features are nevertheless kept and shown in the layout map item.

    凡例アイテムのデフォルトの振る舞いは レイヤーパネル ツリーを模倣することですが、同じグループ、シンボル、シンボルのクラスを表示する場合は、任意のアイテムを右クリックすると、レイヤーの名前を隠すか、またはそれをグループやサブグループにします。レイヤーにいくつか変更を加えた場合は、コンテキストメニューから: デフォルトに戻す を選択してレイヤーを元に戻すことができます。

    After changing the symbology in the QGIS main window, you can click on Update All to adapt the changes in the legend element of the print layout.

  • ポリゴン地物を使用して地図帳を作成する際に、現在の地図帳地物の外にある凡例アイテムを除外できます。これを行うには、 checkbox 現在のアトラス機能の中にのみアイテムを表示する オプションをチェックしてください。

フォント, カラム, シンボル

The Fonts, Columns and Symbol groups of the legend Item Properties panel provide the following functionalities (see figure_layout_legend_fonts):

../../../../_images/legend_fonts.png

Legend Fonts, Columns and Symbol groups

  • You can change the font of the legend title, group, subgroup and item (feature) in the legend item using the font selector widget;

  • You provide the labels with a Color using the color selector widget. The selected color will apply to all font items in the legend;

  • Legend items can be arranged over several columns. Set the number of columns in the Count selectNumber field. This value can be made dynamic e.g., following atlas features, legend contents, the frame size...

    • checkbox 列を等幅で作成 をチェックすると凡例の列幅が調整されます.

    • checkbox レイヤーの分割 オプションでは、列の間で分けて凡例を分類することができます。

  • また凡例シンボルの幅と高さ、ラスターレイヤーシンボルの場合は色と太さも設定できます。

WMS凡例グラフィックと間隔

The WMS LegendGraphic and Spacing groups of the legend Item Properties panel provide the following functionalities (see figure_layout_legend_wms):

../../../../_images/legend_wms.png

WMS LegendGraphic and Spacing groups

When you have added a WMS layer and you insert a legend item, a request will be sent to the WMS server to provide a WMS legend. This Legend will only be shown if the WMS server provides the GetLegendGraphic capability. The WMS legend content will be provided as a raster image.

WMS凡例グラフィック は, WMS凡例ラスタイメージの 凡例幅凡例高さ で調整することができます.

Spacing around title, group, subgroup, symbol, icon label, box, column or line can be customized through this dialog.