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
10
votes
1answer
3k views

Adding labels with symbols to legend in ArcMap?

I'm creating a map with ArcGIS Desktop v10.2.2, showing museums as points. The museums layer has no symbol and the labels are made of a circle filled with color with the ID inside, taken from the [ID] ...
10
votes
5answers
10k views

Displaying dynamic table in Data Driven Pages environment?

I am creating a map series that has many polygons per sheet. There is annotation for the polygons however some polygons are very small with no annotation for them (annotation would completely hide a ...
48
votes
8answers
48k views

Using continuous color band for raster legend in QGIS composer legend?

I'm looking for a way to insert continuous colour legend for a raster layer. I managed to create discrete symbols with values along the bar, but I would like to have a continuous bar with some values ...
14
votes
4answers
29k views

Showing only legend items that are actually displayed on map in ArcGIS Desktop?

Using ArcGIS Desktop, is there a way for the legend, to only show the subitems that are displayed on the map?
10
votes
3answers
8k views

Subscript labels in QGIS legends

Is it possible to include subscript and superscript text in the title of a legend item in QGIS ? I have tried using <sub>some text</sub> but this just appears in the title with no change ...
9
votes
3answers
9k views

Resizing symbols in QGIS Print Composer legend?

I am trying to map a count data type via graduated symbol against a chloropleth and the legend is too big. The circles of the graduated symbols are the actual size of their corresponding values in ...
5
votes
2answers
609 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 ...
11
votes
7answers
2k views

Platforms for repetitive automated mapping?

I could give a lot of examples, but imagine you have to do, for example, a study in 10 different locations and have to generate a lot of maps with the same layout, legend. Maps can contain vector ...
14
votes
9answers
25k views

Manually classifying graduated data outside of range in ArcGIS for Desktop?

I have two shapefiles representing grids with values that are symbolized with graduated colors, shown below: You can see that the two shapefiles encompass similar ranges of data, but assign slightly ...
5
votes
3answers
3k 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. ...
8
votes
6answers
3k views

Creating legend with new data defined symbols functionality in QGIS?

I have a large geology data set that I need to display using an industry standard set of symbols and colours. The symbols and colours are attributes of the data. I have been using the data defined ...
7
votes
1answer
2k views

Showing only some layers in QGIS legend? [duplicate]

My QGIS 2.8.2 standalone app provides several decorating layers (e.g. cartographic grid, background layers, reference points) which should be not changed by the user (neither editing nor hiding), as ...
6
votes
2answers
887 views

QGIS styling a legend

I am a newbie working on QGIS 3.6 / Windows 10 I need to style a legend for map with headings and sub headings The main divisions of the legend item need to be subdivided into sub-classes i.e. The ...
6
votes
2answers
1k views

Setting layer name in composer legend as "Hidden" using PyQGIS?

Is there a way to hide a layer name in the composer legend using pyqgis as we do from the legend properties (see picture)? The only way I've found so far is by changing the layer name in the composer ...
5
votes
3answers
2k views

Resequencing Legend Items using ArcPy?

I create various layers programmatically using ArcPy. I can adjust how the layers are sequenced using the arcpy.mapping.MoveLayer command. However, I want to have the legend reflect a different ...
2
votes
2answers
3k views

Add a legend in an ArcGIS Javascript API

I am quite new to Javascript. I have made a html script that includes services I published to ArcGIS for server. It all does exactly what I want and I made it by copying working scripts together and ...
10
votes
3answers
5k views

Is it possible to change legend symbols in the QGIS print composer legend?

I have some layers with very complex data-defined symbols. If I use a legend in the print composer these symbols are not drawn correctly. Is there a way to change the legend-symbols with pyqgis, so I ...
32
votes
1answer
20k views

Getting legend label on multiple lines in QGIS?

This question was posted in 2011, and someone has said that QGIS now allows multiple lines for legend entries, but no one mentioned how to do this. I am running wein 2.8.1 and I cannot figure out how ...
8
votes
3answers
4k views

Label legend interval with number of elements in ArcMap?

I have made a series of choropleth maps in ArcMap 10. When I classify the interval the bottom of the dialogue tells how many elements are in the class. Is it possible to have this number ...
5
votes
1answer
3k 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 ...
9
votes
2answers
8k views

Placing label designs in legend of ArcMap

I'm working in ArcMap 9.3.1 and apart from "regular" slayers with symbology, I have a few layers which I do not show their symbol on the map, but only their label (for example: cities layer ...
6
votes
2answers
431 views

How to get back discrete raster legend symbols in QGIS 3.16

In the recent QGIS version, layer tree symbols for pseudocolor continuous raster palette have changed, so that it shows as bar with continuous color range with only minimum and maximum value of the ...
5
votes
2answers
1k views

Creating new legend using ArcObjects?

I am trying to add simple legend to the map. I wrote some simple test code below to see what happens but it did not work. var map = activeView.FocusMap; IGraphicsContainer ...
16
votes
1answer
25k views

Allowing for multiple lines in legend of ArcGIS Desktop?

How can I force the description text in my legend to occupy more than one line? This is basically the same question as Forcing long layer names to multiple lines based on specified legend width in ...
6
votes
1answer
656 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 ...
4
votes
1answer
723 views

Updating Layer tree after changing symbology with PyQGIS

When I change symbology for a given QgsVectorLayer (QGIS 2.14.16 LTR) by r=iface.activeLayer().rendererV2() r.symbol().symbolLayers()[0].setColor(0,0,255,255) as shown here: and refreshing the map ...
8
votes
2answers
3k views

Displaying multiple attributes in QGIS Composer legend

I have a polygon layer which has a number attribute and a text attribute. When I make a legend in the composer, it automatically chooses the number to display while I would like to have both the ...
5
votes
2answers
4k views

Creating a gradient-based legend

I have a map with graduated symbology, with 328 unique values. I would like to add a legend to my map (as in the picture), illustrating that light blue indicates low values and dark blue high values. ...
4
votes
1answer
264 views

Legend symbol is not visable in Layout Composer when styling points with two different attributes

In QGIS 3.10.2 I have a map that I want to show points by colour using one category and size by another. I have tried to follow the instructions here: https://docs.qgis.org/3.10/en/docs/user_manual/...
4
votes
1answer
1k 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
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
10k views

Showing just color ramp in legend without values

I'm using ArcMap 10.3.1. Is there a way to show, on the legend, just the color ramp as a single patch instead of with each group of values? I don't really need to show those values on the legend. ...
2
votes
3answers
4k views

Converting from ArcGIS layout into Google Earth as kmz with legend?

How to display an ArcGIS legend in kmz or kml file? I am trying to do so in conversion tool of ArcGIS but while exporting it to Google Earth it is not showing the legend.
2
votes
1answer
283 views

QGIS Print Composer - Display Symbols for Empty Classes?

I am working on a map of mortality rates for several racial/ethnic groups and I have created custom classes to encompass the rates instead of the QGIS classes created through its various modes. This ...
2
votes
1answer
446 views

removeGroup() in QGIS 3

I am updating a plugin from QGIS 2 to 3. I need to iterate through the groups (the names are dynamic) and remove them with their respective child layers. I need to get a list of groups and then ...
1
vote
1answer
1k views

Seeking 1-band raster colour table workaround in QGIS

Does anyone know what the workarounds are for the 1-band raster colour table plugin in QGIS? Currently I find it will run once, then crash on the second iteration. The workaround I use is to delete ...
33
votes
1answer
39k views

Raster legend in R: how to colour specific values?

I have an elevation model plotted in R r <- raster("example.dem") plot(r, col = topo.colors(20)) Some of the values are below sea level (0), and I'd like to have those display in red. How can I ...
23
votes
2answers
42k views

Add/Remove legend with Leaflet layers control?

I have two overlays http://02d0c8c.netsolhost.com/dev/lcb_census_layers3.html that can be turned on and off with a Layer Control. I’d like the legend for each layer to turn on/off along with the ...
10
votes
2answers
22k views

Adding Leaflet legend?

I am trying to add a legend to my leaflet map and no matter what I try I cannot get it to display properly. I have imported a point level geojson into my map and I have styled the points in a similar ...
10
votes
1answer
5k views

Is there a way to show a layers feature count in the TOC?

I'm using ArcGIS 10. In ArcMap's table of contents (TOC), is there a way to have the "Layer Name" automatically show a count of the total number of features in each layer? I was thinking the TOC ...
11
votes
1answer
1k views

Is there cartographic convention to ordering legend items (high-low or low-high)?

When you symbolise a layer in ArcMap, the symbols are ordered from low value to high value by default. Is that necessarily "correct"? I've never officially studied cartography - is there a convention ...
10
votes
2answers
6k views

How to create a vertical scale bar in ArcMap?

Wondering if anyone out there knows how to create a vertical scale bar in ArcMap? With text I can adjust the angle. Is this possible with a scale bar as well?
9
votes
3answers
2k views

Setting symbol descriptions of ArcMap layout legends from table?

ArcMap has the ability to show an extended description for each item in the symbol list. How can I populate that property from a table? The goal is to avoid having to edit each symbol one by one in ...
8
votes
2answers
10k views

Making legend items start in new column in ArcGIS Pro?

In ArcGIS Pro 1.3.1, I have just looked for the ability to start legend items in a new column. This functionality is present in ArcMap's Legend Properties on the Items tab which appears below: Has ...
8
votes
1answer
187 views

Vertically and Horizontally align the labels in multi-column QGIS legends

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't ...
5
votes
1answer
277 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 ...
2
votes
1answer
325 views

Wrapping legend text in QGIS MapComposer at character count

I want to wrap legend text after a certain amount of characters. Is there an automatic way to do that? I don't want to enter a character (e.g. *) for each line as described in this post, that is too ...
13
votes
1answer
4k views

How to automatically format the legend labels? in QGIS

I have to do 10 maps (for a start) with "style" -> "graduate" with quantile mode. I need to format the label of the different ranges so that the legend looks comprehensible: Instead of having 1.0000 ...
9
votes
1answer
6k views

What's the QGIS Legend Format Syntax to label percentage values?

I asked a question about formatting legend text a while back and I'm happy to see the issue has been solved in QGIS 2.6: How to remove trailing zeros from QGIS Graduated Style Class labels? But I'm ...
7
votes
1answer
12k views

How to create leaflet legend for points

I have points like this in a leaflet map. The points come originally from a GeoJSON file and I used L.circleMarker to convert them to circles. How can I create a legend for these points? Based on ...