Questions tagged [legend]

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

125 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
144 views

QGIS Legend multiple name for one shapefile using styles

I am using styles and presets in QGIS to display the same shapefile on various composers. The shapefile is representing townships with several fields such as population density, length of water supply ...
5
votes
0answers
279 views

How to change the group icon in legend via Python in QGIS 2.6?

How to change the group icon in legend via Python in QGIS 2.6? At version 1.x I did it this way: self.legendTree = self.iface.mainWindow().findChild(QDockWidget,"Legend").findChild(QTreeWidget) ...
5
votes
0answers
760 views

How can I programmatically remove a layer from the QGIS composer legend without removing it from the 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
44 views

Is it possible to get a dynamic legend in QGIS 3.6?

I need to send a GetPrint request for a map with a dynamic legend that only shows layers/items/symbols relevant for the current map frame. In QGIS 2.14 one can select "Filter Legend by Map Content" ...
4
votes
0answers
188 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 ...
4
votes
0answers
376 views

How to create text buffer in the 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. ...
4
votes
0answers
493 views

Legend Arrangement options in ArcGIS Pro

In 10.3 you were able to change the vertical/horizontal arrangement of patch, label, description in the legend via the Style button on the Legend Properties Items tab. I cannot locate something ...
3
votes
0answers
38 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
68 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 ...
3
votes
0answers
293 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
177 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
143 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 ...
3
votes
0answers
389 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
1answer
807 views

Altering legend labels in Matplotlib

I have a choropleth map which displays crime percentage change. It is plotted from a geodataframe and the choropleth intervals are determined in the background by Python. Unfortunately, the first ...
3
votes
0answers
125 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
150 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
160 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
36 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
37 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
33 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
49 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 ...
2
votes
0answers
91 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
3answers
132 views

Size-related point in QGIS

I want to map the absolute increase/decrease of the population of a city. The amount of people that increased/decreased is represented by a size-related point. If it's negative I want to have it in ...
2
votes
0answers
129 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
119 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://...
2
votes
0answers
67 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 ...
2
votes
0answers
48 views

Is ArcGIS Pro truncating of some legend titles documented?

To understand what was causing a legend title to be truncated from "What's on the map?" to "What's on the" in an ArcGIS Pro 2.1.3 layout I developed the test below: Start ArcGIS Pro Create a new ...
2
votes
0answers
220 views

Determine layer visibility with PyQGIS

From some other posts I found that i can determine a layers visiblity by something like #assume lyr_name the layers name to determine visibity for l = QgsMapLayerRegistry.instance().mapLayersByName(...
2
votes
0answers
136 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
358 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
105 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 ...
2
votes
0answers
239 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
268 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 ...
2
votes
0answers
216 views

Programmatically adding folders & layers to QgsComposerLegend

I've been building up QgsLayerTree object with a directory structure that reflects the desired legend. Specifically, I'd like the Group(s) to be titles and their contained layers to legend items. ...
2
votes
0answers
74 views

qgis legend with calculated field symbol

I am making a map with a bunch of features plotted on it, each with a two-letter combination used as the symbol and a color. The letters are unique for each feature, drawn from a column containing the ...
2
votes
0answers
290 views

QGIS Set Composer Legend to shrink the font size to fit

QGIS 2.10.1. I have read that it is "impossible to make the legend smaller then its contents". Is there a way to set the legend to shrink the font size when re-sizing the bounding box? Or when you ...
2
votes
0answers
262 views

How to create a legend for quantitative visualization with increasing icon size?

I am trying to find a way to do a map and legend like this: I am using QGIS 2.6 Brighton. The only way was to do a pie chart but I think it's not possible to create classes. I can create circles with ...
2
votes
0answers
90 views

Is there a limit of the number of legend labels passed to ArcGIS server print service?

Is there any limit on the ArcGIS print service for the number of legend labels? I am using ArcGIS server 10.2 and ArcGIS Javascript version 3.10 and am able to print with legend labels (item ...
2
votes
0answers
717 views

Using QGIS legendInterface from standalone

In Python console from within QGIS, we use qgis.utils.iface.legendInterface().moveLayer( layer1, 1 ) to make modifications to the legend. What is the equivalent in a standalone python script ?In ...
2
votes
0answers
136 views

how to display the legend when the map contains external icons in R

I haven't found anything about the legend when the map contains icons external R (in png), is't possible to use the legend function or another function in R.
2
votes
0answers
306 views

Inverting color ramp in legend

I have inverted the color ramp to display land surface elevation, now when I add a legend in print composer it shows the lowest value at the top and the highest at the bottom. See below: It is more ...
2
votes
0answers
113 views

Map Package is not showing points on map

I am fairly new to GIS, but I am working on an interactive legend and I need to just be able to add a map package to the xaml and it place the points on the map. The legend seems to be working. All of ...
1
vote
0answers
17 views

Custom legend with concatenated fields on QGIS 3.8.1

I prepared a map with a custom legend on QGIS 3.8.1, combining a classification of several concatenated fields. However, when creating the layout compouser and including the legend, the descriptive ...
1
vote
0answers
22 views

Manipulating ArcMap Legend Graphics

Is there a way to manipulate and edit ArcMap graphic legend items? From what I found researching, one way is to convert the legend into graphics, ungrouping all the elements and editing each graphic ...
1
vote
0answers
25 views

Stretched raster legend badly displayed ArcGIS Desktop?

I have a stretched raster in ArcGIS Desktop 10.3 with this symbology: But when I put the layer in the legend, it's showed like this: I've tried to change the styles, showing and hiding headers, ...
1
vote
0answers
43 views

Remove legend nodes of a categorized layer in a layout legend using PyQgis

I am trying to find a way to remove specific legend nodes in a layout legend for a vector layer styled with categorized symbology using the PyQgis-3 API. For example, in a QGIS project I have one ...
1
vote
0answers
18 views

Landcover Legend

When I download landcover, the legend for pseudocolouring is always a number rather than the actual legend which was shown where I downloaded the data. How would I go about getting the actual land use ...
1
vote
1answer
37 views

Adding scale bar to raster overlayed on ggmap Google Maps object

I am trying to plot a predicted surface (raster layer) over a ggmap object that contains base imagery from Google Earth. I have produced the map that I want however, I am struggling to add the legend ...
1
vote
0answers
58 views

KML title and description to generate lettered legend on map

Let's say I've exported a KML (from My Google Maps) with a list of waypoints like: <Placemark> <name>Bachledzki Wierch 8a</name> <description>tel: , 606 426 336</...
1
vote
1answer
68 views

Use expression to only keep 1 layer in the legend

When I print my project, that includes different layers, I always end up with all the layers in the legend. What I want when printing is to only show 1 layer, that always has the same name "Werken". ...