Questions tagged [legend]

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

4
votes
1answer
3k views

How to remove selected elements from a QGIS legend?

I'm working with a QGIS project with a number of layers. When assembling a printout all visible layers are automatically added to the legend: I would like to exercise some control over the legend ...
4
votes
1answer
679 views

Checking if layer is visible in legend using ArcPy?

I want to be able to check if a layer is visible in the legend and if so then perform another operation - in python. I am using ArcGIS 10.2 for Desktop. I cannot find anywhere how to check if a ...
4
votes
2answers
4k views

How to set proportional value in legend?

I have a GIS table with traffic flows.The thickness is proportional to the traffic value and I'd like to have a little legend with 3 links proportional to setted value (eg: link1 proportional to 100 ...
4
votes
1answer
157 views

Showing size of pie chart in legend of QGIS?

I'm using a pie chart map in which the size of the pie chart convey an attribute value (scaled size). Is it possible to show this classification in the legend of QGIS 3?
4
votes
1answer
3k views

leaflet create legend

I am following this video tutorial on how to create a leaflet legend. here is my full JS code function getCountyColor(popEst){ if(popEst>100000000){ ...
4
votes
1answer
856 views

QGIS print composer: Transparency in legend symbols

Is there a way to make the legend in the QGIS (v2.0.1) print composer reflect the same degree of transparency as set in the Style box in the main window? The legend symbol colours are shown with no ...
4
votes
1answer
2k views

Leaflet Legend fixed image? not SLD?

I have a style pulled from my GeoServer and have created a basic legend, with a fixed PNG. However I was wondering if it is possible to have this legend be pulled from the layers SLD? so that if the ...
4
votes
3answers
184 views

Alternative layperson-friendly names for 'Legend'?

I am making a mobile mapping app that has a button that displays a legend. Because my legend is initially hidden from view, it is really important the text I put in the button that displays the legend,...
4
votes
1answer
449 views

Changing legend item text with pyQGIS?

Using code I found at Go through items in a composer legend (QGIS 2.6) I can access the the layers in my legend fine. However, I have layers that are styled by category and I can't figure out how to ...
4
votes
2answers
97 views

Bring a single point forward for display

I am attempting to display various shellfish species on a map. The shellfish layer is organized so that the species display in the desired order on the legend. However, the result is that one point is ...
4
votes
2answers
247 views

How to resize the Legend Item Wndow in Map Composer?

I am just wondering if there is any simple way (no messing with codes) to adjust this Legend Item Window in Map Composer. I am using QGIS 2.14 in windows 8. A much larger (taller) window would really ...
4
votes
3answers
4k views

Openlayers 3 get legend not working

So I am trying to display the appropriate legend for my first map. This is my javascript for my first_map. function firstmap() { var first_map = new ol.Map({ target:'FirstMap', ...
4
votes
1answer
2k views

How to change text legend orientation from right to left reading with arcpy

I working on mxd with ArcMap 10.3 . The default's legend properties is- Layout - left to right reading (Marked with a red ellipse) : when it unmarked i get this legend: i want to know if there a way ...
4
votes
4answers
7k views

How to remove empty classes from legend in ArcGIS Desktop?

I have a classification image with only 12 classes. I'm preparing layout using this image. when I add legend into layout page, a lot of empty classes loaded together with these 12 classes. Totally 255 ...
4
votes
1answer
695 views

How to save space in the legend and write the layer name besides the symbol?

I'm starting using QGIS to make a project for university and I am with a problem on configuring legends on Print Composer. The thing is I want the text of my legend to appear after the symbols/...
4
votes
1answer
534 views

Can I create a legend of a map that I had get from a WMS?

Can I create a legend of a map that I had get from a WMS? Can I create a legend of a raster map with Qgis version 1.7.4, or only with the 1.8 version?
4
votes
1answer
144 views

Include map overview details in a legend?

I'm creating a map to show BRUV sites in different marine zones. There are 6 zones (created an overview for each - please see attached image). The zones are individually displayed in smaller map ...
4
votes
1answer
399 views

How to get the legend of a Vector heatmap layer in QGIS 2.14.4?

I'm new on QGIS and PyQGIS. I'm trying to create a plugin which aims to apply a style on a vector layer (generated from a csv file) and then save the map as a png file. The style I apply on the ...
4
votes
1answer
599 views

Is it possible to print one item legend item in italic in print composer?

Is it possible to have one item in italic font (species names) and the rest in "normal"? I use QGIS 2.6. The legend consists of two items which should be written normal (trap positions and ...
4
votes
1answer
1k views

Legend items to appear / disappear simultaneaously with Layer turned on/off in Layer Control [closed]

I have a number of layers that can be turned on and off with a Layer Control. I’d like the description of each layer to show in the legend if it's turned on. And disappear again as soon as the layer ...
4
votes
1answer
800 views

Order layer in QGIS with PyQgis

I'm new in PyQgis. I'm looking for a code to move one layer in TOC to a specific position. Is it possible?
4
votes
1answer
928 views

How to save and reload legend settings using Python?

I know how to change settings of a legend individually by arcpy (like: Patch, Title, Items, Columns, Frame, Element Size&Position, etc.), but now I would like to use the exact legend settings ...
4
votes
1answer
123 views

Indenting subitems in QGIS Composer legend?

My legend looks like this: I would like the items under "Roads & Trails" to be indented to the right. Likewise for the items under "Streams". The spacing controls don't affect this. I could add ...
4
votes
1answer
1k views

How to get Legend Information from a WMS server?

I need to get the Legend Information from Geoserver in JSON or XML format, so that I can display it in my App in a custom way. I'm basically looking for something equivalent to https://resources....
4
votes
1answer
808 views

How can I flip over the values in my raster legend

I want to flip over the values in my legend so that I have Low : 0 at the top, and High : 199998 at the bottom. I have manually edited the text in the table of contents, however this doesn't change ...
4
votes
1answer
333 views

Manage space in legend print composer QGIS

I am struggling to figure out how to manage space in the legend. I have extra space between some items in my legend, which I would like to remove: How can I manage these spaces? I built my legend ...
4
votes
1answer
241 views

Preventing Symbols offset in map from being offset in legend of QGIS?

I've been searching for a solution to this, but cannot seem to find an answer. I have a map where some stacked markers have been offset to be visible on the map. This makes their symbol offset in the ...
4
votes
1answer
318 views

How to create non-overlapping intervals in the legend?

So I am trying to create a legend where the entries are, for example, like this: 1.1 - 2.0 2.1 - 3.0 3.1 - 4.0 as opposed to like this: 1.1 - 2.1 2.1 - 3.1 3.1 - 4.1 I essentially don't want the ...
4
votes
1answer
801 views

How to align QGIS legend items to the right?

Is there a way to align QGIS map composer legend items to the right, for right-to-left languages? There is only a title alignment option. Furthermore, I found this ticket from 4 years ago regarding ...
4
votes
1answer
419 views

How to interpret the legend using the Flannery method with the size assistant in QGIS?

I've tried to use the data defined override with the Size Assistant as follows Scale Method Flannery. I'd like to know how this method is working and how can we read the legend generated automatically ...
4
votes
1answer
251 views

QGIS: Displaying total length of lines in print composer legend

In the print composer (also in the layer selector) I can choose to automatically display the amount of objects in that category in square brackets. That is useful for point features/layers. But in the ...
4
votes
1answer
114 views

Displaying quantitative data in choropleth legend?

I have always struggled to come up with a great solution to handle choropleth or any other quantitative interval or dataset classifications in a map legend where the numbers are sequential. For ...
4
votes
1answer
687 views

Avoiding Legends too large to display in ArcGIS message from ArcGIS for Server WMS service?

I have created a WMS on ArcGIS for Server 10.2 with a polygon layer which contains a unique value renderer with 4 categories. The resulting legend item can be called via service call, which responds ...
4
votes
1answer
2k views

How to use PyQGIS ( Python QGIS API ) to open/close Update Drawing Order checkbox in QGIS2's Layers (Legend Interface)

Thanks qgis 2, the Legend Interface (layers dockwidget) now has Update Drawing Order check box on right-click mouse context menu. I think this feature can let user temporally closes rendering, then ...
4
votes
1answer
149 views

Automatic selection of legend object in QGIS

I'am using the Corine Land Cover data for a projet. There is around 40 types of land use in this database. In my print composer with my scale (1:20 000) I neve have more than 10 type of land use. I ...
4
votes
0answers
161 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
355 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
455 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
2answers
2k views

Making a Map with a Legend as a .pdf Without a White Background

I have a shapefile of United States counties. I also have an Excel file of the share of the black population in each county. I'd like to make a map of this using GIS. (Before you say that there are ...
3
votes
2answers
149 views

Change the symbology of a set of points in the legend

I use QGIS 3.01. I have these set of points, where they have the values "yellow, red and green". I was wondering how I can change the symbology in the QGIS layout editor to only show three symbols, ...
3
votes
3answers
986 views

How to create point symbols with smooth color gradient fill and associated legend?

I like the feature heatmap as a layer style, but it doesn't have any symbolism in the legend at the compose manager. So I took a print screen from a characteristic part of the heatmap and now I am ...
3
votes
3answers
3k views

Is it possible to add subscripts or superscripts into a legend?

I have a population density map where I'm showing the amount of people per square kilometer. In order to make it more visually appealing I want to show something like: [any symbol here] - 2.00 - 5.00 ...
3
votes
2answers
455 views

Can I get rid of the borders around the colour boxes in QGIS Print Composer Legends?

If you look closely at a legend in the QGIS Print Composer, you'll see that each colour box has a hairline (1 px) border. How can I remove these borders? By playing around with the settings, I've ...
3
votes
2answers
1k views

How to generate legend in leaflet webmap?

Although I have checked the "Create Legend" option in the qgis2leaf plugin, it did not generate any legend in the output webmap. What am I missing here ?
3
votes
3answers
3k views

Coloring SpatialLines by attribute in R?

I have a SpatialLinesDataFrame dataset of rivers in R. The dataset consists of lines (river segments) with a "Turbidity" attribute. I want to create a map and legend, where: Turbidity between 0 and ...
3
votes
1answer
149 views

Sorting features in legend

I have a map with a polygon layer containing 100+ features. I want them to display on the legend and the Layer Tree using the Polygon's ID and then its name i.e: "Id - Name". I'm using the ...
3
votes
2answers
798 views

Removing item text from a layer in a legend in the print composer

I am a new user of QGIS and I am having a problem configuring a legend on the Print Composer. I am trying to remove the item text from a layer and then alter the text below hoping that this would ...
3
votes
3answers
525 views

Making multiple legend boxes all same size using ArcGIS for Desktop?

How do I make all the rectangle or (legend box) all the same ? Look at the circles I marked in the pictures. It should be very simple thing to do. Anyone out there have a good workaround ?
3
votes
4answers
4k views

Is there a way to remove this thick gray border from my raster symbology in the legend?

I have this problem with different raster layers, in this instance it's land use data. In my layout, and in a rendered PDF of my map, the legend entry for the raster layer has an ugly, thick gray ...
3
votes
2answers
7k views

Labelling pie chart legend entries by alias in ArcGIS 10.1

When generating pie charts in ArcGIS, it appears that the legend entries generated for the different slices are named based on field name, rather than the field alias. I've done some research, and ...