Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [legend]

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

5
votes
0answers
272 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
1k views

Data Driven Pages - Dynamic Legend Classifications - Change with data frame extent

I am creating choropleth maps for quantified data. Each DDP will focus on a new county, which is shown by using a clip of the data frame (by the county boundary). I want to define quantified legend ...
5
votes
0answers
742 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
146 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
270 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 ...
4
votes
0answers
347 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
430 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 ...
4
votes
0answers
137 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 ...
4
votes
0answers
376 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
64 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
147 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
232 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 ...
3
votes
0answers
123 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
147 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
156 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
17 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 ...
2
votes
0answers
28 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
29 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
30 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
64 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
128 views

QGIS 3 - Wrong legend for datadefined size points layer

I am trying to generate a proportional symbol symbology using data defined symbol size in a QGIS 3 python plugin. Here is the working code : # Symbol creation symbolLayer = ...
2
votes
0answers
102 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
60 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
39 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
184 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
126 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
348 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
98 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
256 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
72 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
280 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
255 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
88 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
710 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
112 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
22 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
0answers
22 views

Bar Chart Legend

I am trying to add legend to a map with bar charts which would be meaningful. The default legend doesn't explain the size of bars on the map. I have tried this one: https://www.esri.com/arcgis-blog/...
1
vote
0answers
77 views

How to edit a legend for WMS map in layout

I'm working on a project in QGIS and I'm trying to edit a legend for a WMS map in a layout (see pic below). From what I read the legends for WMS maps are provided as images and therefore they cannot ...
1
vote
0answers
26 views

Set the same font in QGIS legend as in map

I want to use the same fonts in the legend that are used on the map (different feature = different font). Is it possible? I only get one font for all items.
1
vote
0answers
77 views

Legend for OpenTopoMap in Leaflet

I want to use OpenTopoMap as background map in Leaflet. I can't find information about the colour encoding of heights to create a legend. Does anyone know the correspondence between colours and ...
1
vote
0answers
49 views

How to export vector layer's legend separately in QGIS

I have a vector layer with QgsRendererRangeV2() objects. I searched to get legend belongs to the vector layer and found this: legend = QgsComposerLegend(c) legend.model().setLayerSet(mapRenderer....
1
vote
0answers
135 views

Use harmonized world soil database (HWSD) in QGIS ie load .blw, .hdr and .stx files coming with .bil raster

I am trying to use the data of the HWSD in QGIS. See: http://webarchive.iiasa.ac.at/Research/LUC/External-World-soil-database/HTML/ How do you get the same result in QGIS as in the viewer ? More ...
1
vote
0answers
75 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://...
1
vote
0answers
45 views

Forcing legend entry to display markers in QGIS

Is there a way to force the patch in the legend to include a loosely spaced marker symbol in QGIS print composer? I'm using a large, loosely spaced marker symbol to represent wetlands in a map I'm ...
1
vote
0answers
130 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 ...
1
vote
0answers
56 views

How to create a complex legend in qgis?

I would need to create a complex legend divided into many sub-sections that does not correspond to different layers but to different rule-based styling objects. It seems to me that this possibility is ...
1
vote
0answers
425 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 ...
1
vote
0answers
117 views

Creating a legend in r

I have a data set comprising a number of debris surveys around Australia. I wanted to aggregate these counts by grids of 10km by 10 km (approximately) and found a very useful post here: Aggregating ...
1
vote
0answers
63 views

Displaying representation symbology (lines with markers) in ArcMap legend?

I have a polyline feature class with numerous cartographic representations of line types. Some of these representations only have a line component (see top-half image below) while other ...