Questions tagged [legend]

The description of the types of features included in a map, usually displayed in the map layout.

173 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
810 views

Creating text buffer in legend QGIS 2.18?

I work with this polygon layer and this is my map composer: I used the labels with Text Buffer (yellow and red), and I try to find how I can make the same text buffer in the layer name in the legend. ...
5
votes
1answer
178 views

Legend and Attribute Table change throughout map composer

I'm using QGIS 2.18.3 (Las Palmas) For a project I have about 15 maps with the same extent, where each map displays a different attribute. I have followed Automating Atlas to create maps for all ...
5
votes
0answers
855 views

Programmatically removing layer from QGIS composer legend without removing it from map canvas?

I am working on a QGIS Python plugin which includes automated map production. I use a series of map templates, each of which has a main map, an overview map (with a layer set different to the main ...
4
votes
0answers
326 views

Styling the legend in QGIS with line layer

Working on QGIS 3.4.13. I have a vector line layer, there are rivers. I put a rule based symbology with two categories and different scale max / min for each category. I want to put style for the ...
4
votes
1answer
146 views

Changing legend spacing to be further away from map border in QGIS?

I am using QGIS 3.2.3 I am creating a map in which I have added a legend to (see figure below). My issue is that I am trying to create a legend which has spacing between the two columns. I have ...
4
votes
0answers
780 views

Question marks ("?") in QGIS layer panel when using svg markers defined with "Data defined override"

When using svg marker symbols and set the path to svg file via Data defined override the svgs display well in the map canvas, but not in the layers panel (applies for QGIS 2.x and 3.x). svg marker ...
3
votes
0answers
47 views

Arranging rulebased symbology alphabeticaly

QGIS version 3.16.4 I'm working with a layer that has a lot of different items in rulebased symbology. But they seem to be ordered randomly. Is it possible to arrange them alphabeticaly? I'm hoping ...
3
votes
0answers
63 views

Setting QGIS WMS character encoding

I am using the QGIS as a WMS client. I'm loading the WMS layer but the legend characters (which are in Persian language) are not displayed correctly in the Layer tab. Is there anyway I can handle the ...
3
votes
0answers
68 views

Classifying range of symbology classes

I want to create several dozen maps where all have a field with a range from 0 to 100. I need to classify these into symbology classes every 15 and make a legend out of this. However, the map I am ...
3
votes
0answers
383 views

Split a tmap legend and display in two locations

I would like to split the legend of a tmap object, so that one of the two elements is in the top left, and one in the top right. I have been through the documentation of tm_legend, but could not find ...
3
votes
0answers
163 views

Displaying Legend for Variable Width Line in QGIS

I am using QGIS v3.4 to display a simple line as a line of varying width using the variable line width attribute facility of QGIS (please see screenshot below). The layer displays correctly within ...
3
votes
0answers
294 views

How to filter legend by map content in composer with raster layers?

Does the "Filter Legend by Map Content" button in composer of QGIs 3.2 version work only for vector layers? It seems it's a bug reported in 2.18.x version and should be fixed for 3.x versions (https://...
3
votes
0answers
86 views

How to show label styles in map legend?

In a QGIS map legend, what methods can be used to show examples of a feature's label, in addition to its symbol? For example, a single point symbol might be used to show all cities, but the label ...
3
votes
0answers
682 views

Creating "heatmap" based on data with legend in QGIS?

I am new to QGIS. I need to make a map that looks like a heatmap, but is based on data values, not point concentrations, and with a legend. I was able to make a heatmap based on data values, but not ...
3
votes
0answers
364 views

ArcGIS Pro Legend Range Display

When creating graduated color legends, other than manually formatting value ranges under the symbology legend label, is there any way of automatically showing the full numeric value range in the ...
3
votes
0answers
117 views

QGIS Print Composer Legend: Polygon symbol not closed

The legend of my map doesnt't match the symbology of my polygon layer, the polygons are not closed. Here a screenshot of the layer windows: And here one of the legend from the print composer: If I ...
3
votes
0answers
416 views

LegendGraphic gray color from external SLD file

I'm trying to add legendgraphic from a WMS layer with an external SLD file wich is generated dynamicly. The legend is added but the colors from SLD file are all gray. The WMS layer is colored by SLD ...
3
votes
0answers
145 views

How to set more than one font sizes for a legend item in a QGIS?

I am looking for a possibility to set a second font size for one legend item in QGIS (2.8.1) Printcomposer. For every item (name of a plant) I need a smaler expression in brackets (name in latin). Is ...
3
votes
0answers
156 views

Remove Legend from CartoDB Layer

I am trying to remove the legend associated with the current CartoDB generated map and replace it with a legend from a map generated when the user selects a radio button. My code is as follows: ...
3
votes
0answers
201 views

Moving legend items up and down in QGIS

How can I change sort order in layer properties styles tab? The only way I've found is to change their labels and order by it.
2
votes
0answers
46 views

Inserting copyright symbol in label item in QGIS Print Composer

I have a label item in a print composer map layout. In there I'd like to insert a copyright symbol (red cross). Is there a shortcut or workaround?
2
votes
0answers
13 views

ArcGIS Pro legend changes after export, What you see is not what you get

I have a map made in ArcGIS Pro v2.7. After export I noticed that the legend has changes its location and the map frame (named layers) appears in the exported PNGs legend. This also happens when ...
2
votes
0answers
75 views

Setting legend subgroup to hidden using PyQGIS

I am trying to set the legend subgroup to hidden with PyQGIS. The context : self._project = QgsProject() layout = QgsPrintLayout(self._project.instance()) map_= QgsLayoutItemMap(layout) legend = ...
2
votes
1answer
34 views

Organizing legend symbols in more than one column using QGIS

Is there a method to organize the legend symbols in more than on column in QGIS layout manager? For the same label I want to have a symbol that represents the actual situation and one that represents ...
2
votes
0answers
118 views

QGIS 3.18.2 Print Composer/Layout map legend vanishes/goes blank when layer/theme is changed

Using the print composer/layout in QGIS 3.18.2 I have the following problem ... Starting point: I had a print layout set up with a map and legend. The map layers were set by 4 themes. The layout used ...
2
votes
0answers
65 views

ArcGIS Pro Legend patch and layer name not center aligned

I have some issues with my legend in Pro, where some patches and their layer names are aligned centrally, but others are aligned to the bottom of the patch. I can't seem to make sense of it or find a ...
2
votes
0answers
42 views

Why is the pdf output of my QGIS map different from the one I see in the Print Composer?

I'm working on a map of migrant deaths and missings in and around the Medditerranean Sea. It includes a legend. When I work in the print composer mode, the legend seems to be looking fine. Here it is: ...
2
votes
0answers
71 views

Remove a raster from the composer legend, but display it on the map

I'm working with PyQGIS in QGIS 3.10. I'm trying to remove a layer from the composer legend if it is a raster (but I want to see the raster on the map). This is my code: for i in self.newLayout.items()...
2
votes
0answers
39 views

Creating legend for data-defined colors in table using QGIS

I am using QGIS 3.10.6. I have imported satellite imagery and geological maps from government servers. The polygon tables have a column with a code for colors. Such that I can color code my map with ...
2
votes
0answers
219 views

Cannot change legend shape in print layout of QGIS

I am using QGIS 3.x. I would like to customize the legend in my print layout. Unfortunately I am quite restricted, as I can't change my shape appearance. According to the link below: https://docs.qgis....
2
votes
0answers
60 views

Add a legend to Leaflet map

I am trying to add a legend in Leaflet based on a GeoJSON layer like this: This is my code: L.geoJson(Viales_Transitables).addTo(map); var Viales_TransitablesStyle = { ...
2
votes
0answers
105 views

Changing color symbol legend by field

I changed the color of the polygon symbology with a specified field. Now, I need to categorize the symbology for better data management and to be displayed on a map. But, this not change the legend ...
2
votes
1answer
122 views

Categorized symbology with transparency including raster basemap?

I'd like to include the background map in legend symbols, rendered under transparent fill. For matters of better representation and easier orientation, it would be helpful if the symbols in the ...
2
votes
0answers
28 views

Add 'Abc' to styles in legend

Is there a way to add a 'dummy' label to symbols in the legend such as this? The layer it self has a brown/red outline, as shown in the image, and labels are turned on. Since there are a ton of ...
2
votes
0answers
30 views

How do you link QGIS legends in different print composers?

I have a long linear QGIS project with about 20 separate print composer layouts. I'd like to link each legend to the original one, so I don't have to copy and paste 20 times every time I need to ...
2
votes
0answers
125 views

Making informative legend for Kernel Density Estimate in QGIS?

I have used heatmap (kernel density estimation) in QGIS 3.0.1 to make a heatmap of boat counts. In my point data-each point is one boat. Then, in my kernel, I have used a 500m radius, with 500m pixel ...
2
votes
0answers
208 views

Creating a horizontal legend with labels in GeoServer

Im am trying to ask GeoServer for a horizontally orientated colorbar legend for my raster layer. I prepared an SLD style for the layer and asked for the legend with the GetLegendGraphic method, ...
2
votes
0answers
338 views

Managing space in columns in QGIS legend

Is there a way to set up a legend so the group name spans multiple columns in QGIS print composer? Trying to set up a legend where one of the items is split into columns, but the group spans the ...
2
votes
0answers
66 views

Resolution/displaying issue with legend item in QGIS

I'm having an issue in QGIS print composer. I am using QGIS 2.18. Some of my legend items are displayed in low resolution or are partially cut off. The strange thing is that some groups of the legend ...
2
votes
0answers
466 views

Add basemap copyright in QGIS?

I am using the QuickMapServices plugin for basemap imagery and was wondering if I can add a QGIS legend that includes default copyright information? I know this can be done in ArcMap...!
2
votes
0answers
373 views

QGIS - Legend Columns - Uneven distribution of legend items

I'm working on a legend in QGIS 3.2 but cannot figure out how to get a set of legend items to distribute across 3 columns, but with an uneven number of rows. For example I have 9 items that display ...
2
votes
0answers
350 views

Invert the legend scale representation [in R environment]

Through the following code, cols <- (heat.colors(255)) plot(raster_sum3, col=cols[round(seq(1,255,length.out=10))], legend=TRUE) # raster of the study area plot(site_3003, add=TRUE) # site ...
2
votes
0answers
760 views

Export map with legend using openlayers3

Is there any one who has an idea about how to export a thematic map that is accompanied with a legend (picture) using openlayers3? I searched in the openlayers documentation but I get a map without a ...
2
votes
0answers
112 views

Filter legend entry for raster layer QGIS

Is it possible to use the "Filter legend by Map content" button, or achieve the same functionality with a raster layer? I've got a map that has a dozen different raster layers, but am only displaying ...
2
votes
0answers
176 views

QGIS Composer Legend Filter by Map Content Not Showing Item

I'm trying to filter a composer using the Filter by Map Content Button. It works for the most part. There is a line layer that doesn't fit completely in the map window that gets filtered out, I'm ...
2
votes
0answers
1k views

Legend is not displaying all active features/layers in ArcGIS Pro using ArcPy?

I created a script tool that positions the north arrow, legend, scale bar, and title in a layout; and then zooms to a bookmark and exports the layout as a PDF. But when I go and look at the PDF, the ...
2
votes
0answers
549 views

Need to Add/Remove .png Legend with Leaflet Layers Control?

Supporting Links Website Location: http://bit.ly/2fXCiTH .JS File Location: http://bit.ly/2g56W0U Trying to accomplish I would like to have a specific .png legend associated to each individual ...
2
votes
0answers
808 views

Logarithmic legend for raster in QGIS

I would like to have a logarithmic scale legend for my raster, anyone know how to do this in QGIS?
2
votes
0answers
274 views

Approach to controlling which layers display in a QgsComposerLegend

I've tried 2 approaches to control what shows up in print legends. Neither of them work which is troubling because other than pruning the layerRootTree in advance of composer.addItem(legend), there ...
2
votes
0answers
311 views

Editing stretched raster legend labels using ArcPy?

I'm trying to edit a stretched raster legend item to only show values instead of the "High : " and "Low : " that are standard. I've created a layer template that doesn't include the high/low in the ...