Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [legend]

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

1
vote
1answer
25 views

How to exclude some classes from legend?

I have a raster file with 8 classifications (all numerical), however the last classification I have coloured with 'no colour' so it does not show up on the map, however I also wish to exclude this ...
1
vote
0answers
20 views

Set the same font in QGIS legend as in map

I want to use the same fonts in the legend that are used on the map (different feature = different font). Is it possible? I only get one font for all items.
1
vote
0answers
26 views

Data-defined size legend QGIS and Map Unit symbol

In QGIS, I am making maps of the same project in different scale (global and local). To make my symbol looks alike in all scales, I've choose to use proportional symbol with a size in "map unit". ...
0
votes
0answers
21 views

Changing size of stretched color ramp legend in ArcMap?

I am using ArcMap 10.3. The default settings create a nice label shown bellow: . However, when I specify the interval size and edit the label numbers it stretches everything and also creates a ...
1
vote
1answer
52 views

Rounding numbers in QGIS raster legend?

Is it possible to have the numbers in the raster legend automatically rounded off? In the example below I'd like the labels to be 8, 29, 51 and so on. I know I can manually edit the labels, but is ...
1
vote
0answers
27 views

Legend for OpenTopoMap in Leaflet

I want to use OpenTopoMap as background map in Leaflet. I can't find information about the colour encoding of heights to create a legend. Does anyone know the correspondence between colours and ...
0
votes
1answer
27 views

Editing Legend Text in Carto (“Other”)

I'm working on a map that has nine unique categories and Carto adds an "Other" category to the legend. There is no other data outside of my nine unique categories and I can't get rid of Other label on ...
0
votes
1answer
33 views

Point Cluster in QGIS and Legend

I am using the point cluster symbology in QGIS and have defined the size of each point based on the cluster size using @cluster_size in the size assistant. It looks great on my map, but I cannot ...
2
votes
3answers
51 views

Size-related point in QGIS

I want to map the absolute increase/decrease of the population of a city. The amount of people that increased/decreased is represented by a size-related point. If it's negative I want to have it in ...
0
votes
1answer
49 views

Map legend is not working in GWC WMS and WMTS

I am not getting map legend in GWC WMTS or WMS service, QGIS returns an error "Returned legend image is flawed". but when I am accessing that layer using WMS in QGIS, Map legend is showing with the ...
0
votes
1answer
16 views

Legend shows items not in visible extent

I have a layer which I have set the primary symbology to 'Unique Values'. I have then used an expression which combines the values from two fields: $feature.code + ' ' + $feature.name The code and ...
1
vote
0answers
38 views

QGIS - Legend Columns - Uneven distribution of legend items

I'm working on a legend in QGIS 3.2 but cannot figure out how to get a set of legend items to distribute across 3 columns, but with an uneven number of rows. For example I have 9 items that display ...
5
votes
2answers
66 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 ...
0
votes
0answers
21 views

QGIS Atlas overview in legend [duplicate]

I create with the atlas function of the print composer different maps from small parts of a big area. In the legend I want an overview where every map is located to the other maps. The legend should ...
1
vote
0answers
28 views

How to export vector layer's legend separately in QGIS

I have a vector layer with QgsRendererRangeV2() objects. I searched to get legend belongs to the vector layer and found this: legend = QgsComposerLegend(c) legend.model().setLayerSet(mapRenderer....
4
votes
0answers
71 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 ...
1
vote
0answers
30 views

QGIS - Rule-based Symbology - Added Ranges do not carry over Legend entries [closed]

When I add ranges to a rule, under Rule-based Symbology, the auto-populated (or modified) legend values do not carry over. To fix this, I would have to manually change each line in the legend ...
0
votes
1answer
27 views

QGIS composer changing legend position when exporting

I'm observing the same issue seen in QGIS map composer changing legend position when exporting atlas as images It is happening when the checkbox "Main properties > Resize to fit contents" is checked. ...
0
votes
0answers
15 views

Symbolizing housing unit percentage by census tract in ArcMap?

I am trying to symbolize housing unit percentage by census tract. A few tracts have no housing units, due to no population. I want to symbolize these tracts differently than the rest. In other words, ...
2
votes
1answer
60 views

Making long labels visible in a legend

How do I handle map legend with tens of classes using QGIS? I searched for instructional videos and previous post relating to the question but could not find any helpful material. The legend text in ...
1
vote
0answers
64 views

Use harmonized world soil database (HWSD) in QGIS ie load .blw, .hdr and .stx files coming with .bil raster

I am trying to use the data of the HWSD in QGIS. See: http://webarchive.iiasa.ac.at/Research/LUC/External-World-soil-database/HTML/ How do you get the same result in QGIS as in the viewer ? More ...
1
vote
1answer
31 views

Legend styling in QGIS: How to create overlaying points based on size

I have a categorized point layer, were the size of the points is based on a feature. Normally in the legend, there would appear multiple points with different sizes. However they consume a lot of ...
1
vote
2answers
57 views

Displaying multiple symbols/patches for the one layer in an ArcMap legend

I'm mapping incidents of an invasive species on a map, where the observations during surveying were recorded as points and also a line where there was a long continuous strip of the species along a ...
0
votes
1answer
55 views

Show/hide layers (not sublayers) via selector in legend - carto.js v4

I am trying to build a layer selector using carts.js.v4, similar to the one provided in Carto Builder. Examples of layer selectors that I have found utilize sublayers and my maps are using separate ...
3
votes
1answer
86 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 ...
1
vote
0answers
32 views

How to filter legend by map content in composer with raster layers?

Does the "Filter Legend by Map Content" button in composer of QGIs 3.2 version work only for vector layers? It seems it's a bug reported in 2.18.x version and should be fixed for 3.x versions (https://...
0
votes
0answers
25 views

Map size, change the language of the legend plus get rid of the islands

I was able to build this map with data from the Eurostat As I am working in Spanish, the legend should be in this language nevertheless, in the legend still appears two words in English (under and ...
4
votes
1answer
209 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 ...
0
votes
0answers
10 views

Map Automation: Auto Sort Legend Items by Quanity

Using ArcMap 10.6.1, I have a python script to automate the production of 10 maps, each representing a State. For each state, I have 4 point layers. The number of points in each layer differs by state....
2
votes
0answers
46 views

How to show label styles in map legend?

In a QGIS map legend, what methods can be used to show examples of a feature's label, in addition to its symbol? For example, a single point symbol might be used to show all cities, but the label ...
1
vote
1answer
98 views

Renaming ArcMap Legend item titles

My legend is currently displaying both the layer name and indented data name underneath the layer name. How to display just its name shown in the table of contents?
1
vote
1answer
129 views

How to remove single class from ArcGIS legend for graduated polygons?

I have the following legend item: I would like to remove the class in the red circle from the legend. In QGIS you can simply delete or remove it. How can one do this in ArcGIS without affecting the ...
2
votes
2answers
85 views

Same colour palettes for two different maps in ggplot2

I am constructing two ion concentration maps in the UK using ggplot2. The dataset used for mapping are lzn.kriged1 and lzn.kriged2 which basically has the same structure: > str(lzn.kriged1) Formal ...
1
vote
0answers
26 views

Forcing legend entry to display markers in QGIS

Is there a way to force the patch in the legend to include a loosely spaced marker symbol in QGIS print composer? I'm using a large, loosely spaced marker symbol to represent wetlands in a map I'm ...
0
votes
0answers
37 views

Text to legend based on attributes?

I am currently using the data driven pages with dynamic text to populate information within the legend. Is there another way to do this as I have quite a few maps to make and would like to automate ...
0
votes
2answers
82 views

Formatting numbers coming from dataset to include commas for thousands in Carto map legend?

I'm using carto.js v4 to build my map. The legend I've put together displays some of the data as numbers next to value scaled markers As example I have: document.getElementById('gasDistmax')....
0
votes
0answers
34 views

Can GDAL give the scale of a raster?

I have a GeoTIFF and I am trying to overlay a scale (miles or km) using GDAL. Is there a function in GDAL that will do this? I believe ArcPy has this functionality, but I am guessing GDAL does ...
0
votes
2answers
91 views

Adding a legend to CARTO.js v4 map application

I have made a map that shows fire risk for the different Districts within South Africa, and each fire risk is styled by value to match a certain color. I am trying to add a legend to show what each ...
1
vote
1answer
27 views

QGIS Atlas legend title width

I want to create an atlas legend with the option "Only show items inside current atlas feature". This works fine. But for the legend title I want a black background. So far, I used a separate item ...
2
votes
2answers
344 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. ...
5
votes
1answer
102 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 ...
0
votes
0answers
42 views

Geoserver create custom legend for WMS [duplicate]

I am working with Geoserver for some weeks now and were able to deploy some services already. For my thematic map (e.g. temperature) I created a custom style displaying all tiles in specific colors (...
1
vote
2answers
212 views

Geoserver create Legend for WMS Service

I am working with Geoserver for some weeks now and were able to deploy some services already. For my thematic map (e.g. temperature) I created a custom style displaying all tiles in specific colors (...
1
vote
1answer
93 views

Freezing legend on map composer so that it stops updating when changing symbols on map?

This seems like a counter intuitive question, but is there a way to freeze the legend so that it stops updating itself in the print composer? My auto-update box is unticked for the legend, but the ...
1
vote
0answers
72 views

Invert the legend scale representation [in R environment]

Through the following code, cols <- (heat.colors(255)) plot(raster_sum3, col=cols[round(seq(1,255,length.out=10))], legend=TRUE) # raster of the study area plot(site_3003, add=TRUE) # site ...
0
votes
0answers
16 views

Spacing Between Custom Symbols and ArcGIS Symbols in Legend

I am wondering why the legend spacing between picture symbols that I imported into ArcGIS and standard ArcGIS symbols (e.g. circle points) is different? The pictures symbols I imported seem to be ...
3
votes
1answer
86 views

Proper assignment of QML legend to raster failed in QGIS 3.0.1

I downloaded raster data sets together with the legend qml files from the SoilGrids page (ftp://ftp.soilgrids.org/). Assignment of the qml legend (TAXOUSDA_1km/TAXN_WRB_1km) didn't work in QGIS 3, as ...
2
votes
0answers
25 views

Is ArcGIS Pro truncating of some legend titles documented?

To understand what was causing a legend title to be truncated from "What's on the map?" to "What's on the" in an ArcGIS Pro 2.1.3 layout I developed the test below: Start ArcGIS Pro Create a new ...
1
vote
0answers
50 views

How to create a complex legend in qgis?

I would need to create a complex legend divided into many sub-sections that does not correspond to different layers but to different rule-based styling objects. It seems to me that this possibility is ...
3
votes
2answers
144 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, ...