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
6
votes
2answers
4k 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 ...
6
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.
6
votes
2answers
2k views

Removing white gap in ArcMap Legend?

I have a legend created in ArcMap 10.1 which appears to be generating an abnormal white gap to the right of the legend content. How can I remove this?
6
votes
1answer
4k 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 ...
6
votes
3answers
14k views

Create legend with OpenLayers 3 / GeoServer

I am using OpenLayers 3 and GeoServer to create a map. I would like to create a legend for the map that I have created. I've been looking for a good example I could base my map legend off of, but was ...
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
357 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
2answers
518 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 ...
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
1answer
256 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 ...
6
votes
2answers
6k 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
431 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
810 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
717 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
610 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
11k 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
91 views

Spacing between ArcMap class name and description in the legend

I am wanting to reduce the gap between the class name (crop type) and the description (ac) with in the legend. It appears to be based on the longest class name. is there a way to have it a set ...
5
votes
2answers
236 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
35k 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
313 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
79 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 ...
5
votes
1answer
3k 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
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
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
2answers
8k 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 ...
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
60 views

Matching legend symbology with data driven symbology?

I am tightly bound to a client's CI and fortunately, the data I am working with comes with RGB values in the attribute table. Perfect for data-driven symbology. But how can I (easily) manage to make ...
5
votes
1answer
17k 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
135 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
1k 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
170 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
349 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 ...
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
2answers
306 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 ...
5
votes
1answer
620 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
783 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
2k 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
162 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
1answer
544 views

Changing Legend Arrangement/Style in ArcGIS Pro?

In ArcMap 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 ...
5
votes
1answer
932 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
358 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 ...