범례 항목¶
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 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](../../../../_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](../../../../_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;
Resize to fit contents 옵션을 활성화하면 범례 크기를 그 내용물에 맞춰 자동적으로 조정합니다. 체크를 해제한 경우, 사용자가 설정한 크기로 고정되어 크기가 변하지 않을 것입니다. 내용물이 범례 크기에 맞지 않는 경우 잘려나가게 됩니다.
범례 항목¶
The Legend items group of the legend Item Properties panel provides the following functionalities (see figure_layout_legend_items):
![../../../../_images/legend_items.png](../../../../_images/legend_items.png)
Legend Items group¶
Auto-update 옵션을 활성화한 경우 범례를 자동적으로 업데이트할 것입니다.
Auto-update 옵션을 비활성화하면 범례 항목을 좀 더 사용자 마음대로 제어할 수 있습니다. 이 경우 범례 항목 목록 아래에 있는 아이콘들이 활성화될 것입니다.
범례 항목 창은 모든 범례 항목의 목록을 담고 있으며, 항목 순서를 변경하고, 레이어를 그룹화하고, 목록에 있는 항목들을 제거 및 복구하고, 레이어명을 편집하고, 필터를 추가할 수 있습니다.
및
버튼을 사용하거나 〈드래그&드롭〉 기능을 통해 항목 순서를 변경할 수 있습니다. 다만 WMS LegendGraphic의 경우 순서를 변경할 수 없습니다.
레이어, 그룹명, 또는 제목을 편집하려면, 먼저 범례 항목을 선택한 다음
아이콘을 클릭하십시오. 항목을 더블클릭해도 재명명할 수 있는 텍스트 상자가 열립니다.
Filter legend by map content 아이콘을 클릭하면, 범례에 맵에서 가시화된 범례 항목만 표시할 것입니다.
Auto-update 옵션을 활성화한 경우에도 이 도구를 사용할 수 있습니다.
The
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.
범례 항목의 기본 습성이 Layers panel 트리를 흉내내어 동일한 그룹, 레이어 및 심볼의 범주를 표시하기는 해도, 어떤 항목을 오른쪽 클릭하면 레이어명을 숨기거나 레이어를 그룹 또는 하위 그룹으로 옮길 수 있는 옵션을 제공합니다. 레이어에 몇몇 변경 사항을 만든 경우, 이 컨텍스트 메뉴에서 Reset to defaults 액션을 선택하면 변경 사항들을 되돌릴 수 있습니다.
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.
폴리곤 객체를 보유한 지도책을 생성하는 동안, 현재 지도책 객체 바깥쪽에 놓인 범례 항목들을 필터링할 수 있습니다.
Only show items inside current atlas feature 옵션을 체크하십시오.
폰트, 열, 심볼¶
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](../../../../_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
field. This value can be made dynamic e.g., following atlas features, legend contents, the frame size…
범례 심볼의 너비 및 높이를 변경할 수도 있고, 래스터 레이어 심볼의 경우 색상 및 두께를 설정할 수도 있습니다.
WMS LegendGraphic 및 간격¶
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](../../../../_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 LegendGraphic 옵션에서 Legend width 및 Legend height 를 설정해서 WMS 범례 래스터 이미지의 너비 및 높이를 조정할 수 있습니다.
Spacing around title, group, subgroup, symbol, icon label, box, column or line can be customized through this dialog.