Questions tagged [legend]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
363 views

How to do bivariate or multicriteria line symbolization in QGIS?

Bonjour, je cherche à faire sur Qgis un tracé d'un itinéraire avec comme légende une couleur pour le type de route et la largeur du trait pour la fréquentation de cette route. J'ai vu qu'il était ...
5
votes
2answers
588 views

Is there a Legend Limiter in QGIS?

Is there in QGIS a function or a plugin that works similar to Legend Limiter in ArcGIS? The attribute I want to show in my legend has many possible values, I want my legend to only show those values ...
5
votes
1answer
1k views

Changing the attribute behind a legend without changing the symbology

I have a geology layer with a very large legend that was painstakingly created based on a geological code. I now have a new attribute which is a friendly description for each code and I would like ...
5
votes
0answers
525 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
0answers
816 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
1answer
1k views

Make legend in QGIS only show features in the view extent?

I am trying to create a legend in QGIS 2.18.22 so that it only shows the features that are in the current map extent in the print composer. I have been selecting the 'only show items inside current ...
4
votes
3answers
2k views

Why are size-scaled symbols missing from map layout legend? [closed]

I have a designed a map using a scaled simple marker symbol. It is a rule-based design and symbol scaling is done by the siye assistant based on a field value for any of the rules in the same way. ...
4
votes
2answers
1k views

Creating multiple lines under same label in legend of ArcGIS Desktop?

I have a shapefile consisting of a number of fields with values of an index score. I classified its symbology categorized and classified the values into 3 classes. The classes are like below- I want ...
4
votes
4answers
4k views

Difference between Table of Contents (TOC) and Legend in ArcGIS Viewer for Flex?

I have been using the ArcGIS Viewer for Flex for quite a while. I couldn't help noticing there were still two widgets, one for Table of Contents (TOC) and the other for Legend. It looks to me TOC is ...
4
votes
1answer
1k views

Fine-tuning horizontal legends in QGIS

I made a map with a horizontal legend to show 10 categories in QGIS 2.18.6 (see below), and here comes some questions. Hopefully I can have some suggestions here: First, I indeed create the legend ...
4
votes
1answer
793 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
489 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
4k 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
914 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
363 views

Change anchor point using ArcPy

Is it possible to changed the legend element anchor point using arcpy? This is the default anchor point: and i want this anchor point loaction: I know how to changed the legend element position x,y....
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
196 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
693 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
184 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
304 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
730 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
547 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
168 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
534 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
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
835 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
949 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
188 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
2k 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
1k 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
960 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
2k views

Filter MapComposer legend to only show layers visible on the map

I have written a function in Python / PyQGIS (no standalone application, so copy/paste it to the Python console editor to run it) that takes a VectorLayer as argument, creates a MapRenderer object for ...
4
votes
1answer
182 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
1answer
617 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
307 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
576 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
129 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
2answers
2k views

How to change symbol size in QGIS map composer legend?

I need to set an identical size to several symbols inside a QGIS map composer legend. The 'Symbol' menu in the Legend properties allows to set a height and width but this has no effect on the size of ...
4
votes
1answer
1k views

Performing Dynamic Legend Classifications with Data Driven Pages?

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 ...
4
votes
1answer
763 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
151 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
145 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
0answers
392 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
849 views

Inconsistent word wrapping in legend of ArcGIS Desktop? [closed]

I have been using word wrapping for my legends in ArcGIS 10.3. I have had some success with this, but am getting errors in the way the labels are displayed. Here is a pic of the settings: The ...
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 ...

1 2
3
4 5
14