Questions tagged [legend]

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

6
votes
1answer
9k 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 ...
6
votes
2answers
2k views

How do you make map styles NOT appear in a legend?

I am using GeoServer to serve up OSM data. I am making use of the GetLegendGraphic command, but I do not want some of my styles to appear in the legend (for example, the styles that are ONLY for text ...
6
votes
2answers
1k views

Controlling “Fill Properties” in ArcGIS, so that that symbols are visible in legend?

I use marker fill symbols in my legend in ArcView 10, in order to identify different habitats, and frequently have to increase the separation of the symbols in order to make the map more readable. ...
6
votes
1answer
293 views

Print Composer with semi-transparent raster but full opacity in legend

I am trying to make a map with a semi-transparent (60%) raster layer overlying an areal photo (raster) base map. This works fine and looks good but when I add a legend to display the values of the ...
6
votes
1answer
2k views

Showing only some layers in QGIS legend?

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

Go through items in a composer legend (QGIS 2.6)

I'm trying to develop a plugin in QGIS 2.6, which opens a composer, add a map and a legend, and (among other things) adjusts the legend. Is there a way to go through items in a composer legend with ...
6
votes
2answers
2k views

Legend showing info for world map

I'm using ArcGIS 10.1 API for JavaScript. I'm showing dynamic map service layer containing 8 layers and I want to show legend for the currently visible layer (only 1 layer is visible at a time). The ...
6
votes
2answers
5k views

How to hide/toggle legends with layer controls in Leaflet for R

In the package leaflet for R, you have the ability to toggle layers on and off with the addLayersControl() option. If you use legends for each individual layer, however, these layers are not toggled ...
6
votes
1answer
386 views

Accurate way to show values of each classification range in the legend in QGIS?

What is the best and most scientific way to represent data in the legend? For example, in the picture below (my data), picture 1 is the actual data (too long in my idea), picture 2 is a rounded ...
6
votes
1answer
2k views

Automate export of ArcMap legends

I've been building legends for my javascript websites that use 9.3.1 services. I know there's the ESRI legend tool for older services but I don't feel that it does a good job of producing legend ...
6
votes
1answer
704 views

Opacity / Transparency in raster legend QGIS

I have a classified raster with three classes. One of them has to be hollow. I added a legend which looks like this. Apparently, the opacity level - in this case 0% - is not transferred to the ...
5
votes
3answers
605 views

Group legend in ArcMap basing on field value

I'm using ArcMap 9.3.1 and have a point feature with an attribute table like this: What would be the easiest way to generate a legend like this? Generating different tables (feature classes) for ...
5
votes
2answers
524 views

How to change legend orientation in QGIS?

I created a legend in the print composer and the default layer orientation is How can i change the legend elements orientation like in ArcGIS? I seeked in the Item properties but didn't found any ...
5
votes
1answer
10k views

How to remove layer names from the print composer legend?

I'm creating a map in QGIS Composer that is the result of two merged layers. The legend (screenshot below) is adding two rows with the titles of the layers. The edit property sheet does not give me an ...
5
votes
2answers
2k views

Adding legend to canvas in standalone PyQGIS application? [closed]

I am trying to develop a standalone PyQGIS application. The map display does not pose any problems, but I do not know how to add a legend to the canvas.
5
votes
2answers
208 views

Why does QGIS legend does not take the indentation?

I created a legend with refinement in QGIS print composer. As you can see (picture 1) in the item properties for the legend the items are hierarchical indented. picture 1 But in my map the ...
5
votes
5answers
32k views

How to remove <VALUE> text from legend in layout view?

I'm producing a map in the layout view which I will eventually export as a jpeg. I've added a legend which includes 15 classes but when I insert a legend in layout view its including the word VALUE at ...
5
votes
2answers
2k views

Different legend properties with ArcGIS API for JavaScript

I have a map template that I use to display a variety of feature layers and dynamic layers. I have found a snippet of code to add the legend to my map: //add the legend dojo.connect(myMap, '...
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 ...
5
votes
2answers
91 views

How to add text on top of symbols for vector layers in QGIS

I read the QGIS 3.2 Changelog and saw a new feature to add text on top of symbols for vector layers. Does anyone knows how to do this?
5
votes
2answers
2k 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 ...
5
votes
1answer
2k views

Italicizing scientific names in a legend

I am trying to Italicize a scientific name in my legend (ArcMap 10.2). I can not figure out how to Italicize one word only without having the rest of the description being italicized as well. Is it ...
5
votes
2answers
446 views

Arranging top of columns in legend

I'm using ArcGIS 10.3.1 Standard License. I have a legend item that I would like to split across two columns. Below is the output. What I would like to have is the top of the second column align ...
5
votes
1answer
3k views

How to add WMS legend in leaflet from Geoserver?

Can anyone explain me how I can include a legend within the layer control for any individual WMS layers in leaflet? The wms service works fine. I just want assign the symbol label to each layer of ...
5
votes
2answers
3k views

Annoying little line in color ramp legends - how do I remove it?

This was never a problem with ArcGIS 9 but it appears that in 10.0 Esri has added small horizontal lines as the default when including color ramps in legends. I want to get rid of these annoying ...
5
votes
1answer
14k views

Add Legend to Leaflet Map

I have a leaflet map that consists of various wms layers representing different years. I am trying to add a legend to my leaflet map but with my own custom hex colours instead of trying to use a ...
5
votes
2answers
2k views

How to display multiple attributes in a 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
1answer
116 views

Showing feature count for layout extent on legend using QGIS?

I'm using QGIS 3.6.1 on Win10. I have a print layout with a map of an area within my total work data set. I add an item to the print layout legend with the summation button on for "Show feature ...
5
votes
2answers
108 views

Using Data Driven text in legends?

I am trying to use an attribute of the data driven page in the legend. I am labeling a polygon layer set to only show if it matches the ddp through a Page Definition. This is what I want: This is ...
5
votes
2answers
897 views

Creating Custom Symbology Patchs for ArcGIS Pro Map Legends?

Does anyone know if it is possible to create a custom symbology patch to be applied to a map legend in ArcGIS Pro? I know this was possible in ArcGIS Desktop within the legend properties dialog, ...
5
votes
1answer
153 views

ArcGIS: Legend patches turn black with negative contrast

I have a problem I've never seen before in ArcGIS (Desktop 10.4). When I use the Image Analysis Window (or symbology settings), the raster DEM in the background changes accordingly... HOWEVER when I ...
5
votes
1answer
3k views

Configuring legend for ArcGIS API for Silverlight?

I can't get the simple Legend sample working with this florida mapservice and the ESRI Silverlight SDK 2.1. The names appear, but the tree doesn't get populated. Anyone see why this code shouldn't ...
5
votes
1answer
543 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
1answer
756 views

ArcGIS 10.1 Legend Issue: Gap when using the “only show classes that are visible in the current map extent”

I have a problem with a gap that appears when the setting "only show classes that are visible in the current map extent" is in use and when there is a number of items in a row that does not display; ...
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 ...
5
votes
3answers
1k views

Changing label next to symbol in Table of Contents in ArcMap using ArcPy? [closed]

I'm trying to write a script to change the label next to the symbol in the TOC so it appears in the legend. ArcPy has a way to change the name of the layer, but I can't seem to find a way to change ...
5
votes
1answer
3k views

How to sort entries in raster legend?

How do I reorder the Value field in a raster? There is no up or down button in it.
5
votes
1answer
894 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new esri.layers.FeatureLayer("...
5
votes
1answer
1k views

How do you format the legend in Geoserver when using GetLegendGraphic?

I'm new to the world of GIS and geoserver so sorry if I'm asking an obvious or simple question. I'm using GetLegendGraphic to create a legend for a raster layer on the server, as it stands it looks ...
5
votes
1answer
353 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
579 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
1answer
137 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
274 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
745 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
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
608 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
894 views

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

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
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....