Questions tagged [legend]
The description of the types of features included in a map, usually displayed in the map layout.
828
questions
1
vote
0
answers
19
views
Changing depth colorscale showing the intervals instead of only the minimum and maximum in print layout
I have made a legend with the bathymetry color scale in it
example:
It only shows 0 and -30 while I have made the color scale using 10 meter intervals, so 0, -10, -20, -30.
Does anyone know how to ...
0
votes
1
answer
24
views
What do the colors mean on this 1892 plat map?
A while back I happened upon a page from a Plat Map of my hometown from 1892. I like staring at it and looking for families that were still in town when I was a kid 100 years later, street names that ...
1
vote
1
answer
22
views
MapServer HTML Legend How-to
I am trying to build my first HTML legend with MapServer, but I can't find any full example.
As I understand:
mylayer.map (just after the classes END):
LEGEND
TEMPLATE "../path/mylegend.html&...
0
votes
0
answers
8
views
Selecting a field in an ArcGIS layer/map in a Nuxt application result in adding legend colorSlider on top of each other in the same div
I am using ArcGIS in a Nuxt application. I have got a map with a feature layer (hosted on ArcGIS) and a legend with a color slider in the top-right corner. The user can visualise different fields from ...
0
votes
0
answers
13
views
Using interactive legends in latest version of qgis2web
I used to create maps with interactive legends (that is: individually selectable layers) with qgis2web, but after my latest QGIS and extension updates, I am not longer able to make this work.
Prior to ...
1
vote
0
answers
36
views
Legend layer - displayed on each tileWMS (OpenLayers)
I have a strange symptom when add legend to layer WMS (OpenLayers v.6.14.1).
The same layer display via GeoServer - everything it's ok.
How to avoid display legend on each tile at WMS layer?
Should ...
1
vote
2
answers
59
views
How to get more information about the legend of a WMS
I am working with OWSLib in Python and I am trying to read a WMS of the Corine land cover in Ireland for the year 2000. Below you can see the request of the WMS.
from owslib.wms import WebMapService
...
0
votes
0
answers
17
views
Add legend of published portal item in ArcGIS Pro Layout
I have a hosted feature layers-based web map in my portal. I am working on creating a pdf map. instead of downloading the layers from the portal and then applying symbology on each, I directly opened ...
4
votes
1
answer
73
views
Changing the justification of legend symbol text set from "set labels from expression..." in QGIS
In QGIS, I have a polygon layer with several text column attributes. I am theming on one, but want the text of another column to show up in the legend. I have successfully populated the text column ...
0
votes
0
answers
13
views
How to exchange QGIS legend symbology into ESRI ArcGIS? [duplicate]
Is there a possibility to import the legend symbology, which has been created in QGIS, to Esri ArcGIS?
Or a possibility, to create a .lyr file from QGIS?
1
vote
0
answers
42
views
OpenLayers - Add PNG image static from local disk? [closed]
I have some layers in GeoServer, where I used the OpenLayers technology to act as a viewer for these.
The code is the following:
<!doctype html>
<html lang="es">
<head>
&...
1
vote
1
answer
36
views
How to combine Legend Values of existing LULC in GEE?
I'm trying to refer my study area with this amazing LULC, I found on Earth Engine Apps, but it has about 255 legend values. I am not understanding how to proceed with this classification of my study ...
1
vote
1
answer
37
views
Expression in QGIS print composer legend keeps reverting to expression instead of result
I have a number of expressions in my legend of the following type to show proportions of a total and label them as a percentage of that total, eg:
19th century ([%round(aggregate(layer:='...
0
votes
0
answers
32
views
QGIS - Providing Legends on Maps
Is there an automated method to provide a legend of labels/icons used on the maps/layers within QGIS? Something equivalent to legends on charts to help illustrate what rule/name each icon is ...
0
votes
1
answer
79
views
Add legend, north arrow, and scale bars
I have three DEM layers on QGIS. They show slope, aspect and coloured DEM. I need to add a legend, north arrow, and scale bars to them but I'm completely confused at how to do this. The data I am ...
2
votes
0
answers
96
views
QGIS: Legend patches do not honor opacity [closed]
Background:
At 3.22.3 I have a slope raster (32-bit floating point, single-band tif) derived from a DTM. I display this using a discrete interpolation, with three value ranges: 0-20, 20-40, and 40-90 ...
2
votes
0
answers
40
views
QGIS legend feature count by map extents
I have a legend in a layout and want to show the feature count within the extents of the map on the layout (Map 1). When I click on 'Show feature count for each class of vector layer', the count of ...
0
votes
1
answer
24
views
Making one legend from two multiplied layers in QGIS [duplicate]
I'm very new to QGIS and was wondering how I can make a legend for two seperate layers that are multiplied. The two layers selected in the picture underneath are the ones I multiplied and I would like ...
0
votes
1
answer
30
views
QGIS How to change display name of layer in legend using layer metadata?
In the Layout Manager, I want to change for a selection of layers the name displayed in legend without changing the layer names.
I am using QGIS 3.16
I am getting the legend entry names from the layer ...
0
votes
0
answers
36
views
Unable to resize legend in QGIS application
I am attempting to display a legend for a mesh map layer in a custom QGIS application (3.20 Odense, C++). I've previously just added the layer tree view to a dock widget, but it took too much space ...
0
votes
0
answers
26
views
How to display only one layer in legend using QgsLayoutItemLegend in QGIS application?
I have a custom QGIS application which loads a raster + two vector layers upon selecting a product to display (scalar field, contours, and wind barbs). I only wanted the color ramp to be displayed in ...
2
votes
0
answers
46
views
Strange behavior of layer panel / legend in QGIS 3
I've been noticing a strange behavior in the layer panel / legend of QGIS 3 - I don't know exactly when I noticed it, but it must have been since QGIS 3.
The legend entries in the layer panel are ...
2
votes
1
answer
151
views
Creating a vertical color bar in Google Earth Engine
I'm trying to create a color bar on Google Earth Engine and I'm not sure which portion of the code allows a user to define whether the color bar is to be made horizontal or vertical.
This is one ...
1
vote
2
answers
72
views
Rounding numbers in a raster legend in Google Earth Engine
I have a legend in Google Earth Engine which pulls minimum and maximum values for my raster (imported as a cloud asset).
I would like to round those numbers in order to remove the decimals. It seems ...
2
votes
1
answer
69
views
Automate max and mix values of a raster in my color palette on Google Earth Engine
Is there a way to automate my code so that Google Earth Engine can pull minimum and maximum values from a raster and update my color palette accordingly? I'm using the following code currently.
// ...
0
votes
1
answer
487
views
Customizing a continuous legend in Google Earth Engine
I've created legends in ggplot, which look like this
With the code I've used in Google Earth Engine, this is what my legend looks like
Is there an easy way for me to edit my Google Earth Engine code ...
0
votes
2
answers
158
views
Make 0 values transparent or white on Google Earth Engine
I plotted a raster onto Google Earth Engine, with a colour palette, and created a legend as shown.
// Pull the package from the GitHub repo which stores colour palettes to be used in GEE
// See https:/...
2
votes
1
answer
78
views
PyQGIS Legend doesn't update with renderer
I am using QGIS 3.22.2.
I am relatively new to QGIS and have been trying to automate part of a workflow, including changing the rendering of a raster. Following the PyQGIS cookbook, I have this code:
...
1
vote
0
answers
25
views
Generating complex legend with specific layout using Python script in ArcMap or ArcGIS Pro [closed]
Aim
I need to generate complex legend with specific layout using Python script. Either using built-in legend / graphic elements or generating features in new geodatabase and data frame. It is possible ...
1
vote
0
answers
65
views
Display embedded symbols in the layout legend in QGIS?
I have opened a MapInfo TAB file in QGIS ver 3.22.1 and can display the correct symbology by using "Embedded Symbols". The TAB file is a geology map and the only symbology relates to the ...
0
votes
1
answer
46
views
ArcPy method for amending layer symbology heading
Is there an ArcPy method for amending the heading of a layer's symbology without having to amend the field name (which would be problematic)?
I know how to change the layer's name & the ...
0
votes
1
answer
36
views
Interpreting unknown symbol on MapBox GL JS map
In my MapBox GL JS map, I've encountered this weird, thick line that goes all over the place:
It doesn't seem to be a railroad, or a road of any kind. Possibly some kind of border marker. But I ...
1
vote
1
answer
556
views
Showing the legend in GeoPandas when color is given by value
I'm coloring the entities of a GeoDataFrame by the column 'Color'. This column has been created to plot the different continents with different colors, so all the countries belonging to the same ...
0
votes
0
answers
29
views
Showing feature label in Layout Legend using QGIS
I am using QGIS 3.18.2.
I have a polygon layer, with labels, as in the following image.
When I create a layout, the legend contains the layers feature, but no label, as in the following image.
How ...
2
votes
1
answer
38
views
Only displaying Legend for elements present inside another polygon?
I am building a map of a particular region and imported some data layers with lots of attributes because it's got info on the entire country. Many of these attributes aren't present in the region I ...
4
votes
2
answers
64
views
Replicating ArcMap legend in QGIS 3
I am trying to replicate this ArcMap legend in QGIS but i can't seem to get it right.
I am stuck in print layout and using QGIS 3. I have the title 'LEGEND' but i do not know how to categorize the ...
0
votes
0
answers
39
views
Legend columns in ArcGIS Pro are too far apart despite zero pt column spacing
I split the legend into two columns but the columns have a huge gap which cannot be decreased. Similar thread here but the legend in the pictures show a proper column spacing Making legend items start ...
1
vote
0
answers
44
views
Creating circle legend around map using ArcMap
I saw following picture in an article. I want to create a map like this for my datasets with that circle legend around it.
How can I create that circle legend around that map visualizing 30 polygons ...
2
votes
1
answer
195
views
Adding a custom legend to my layout using PyQGIS
I am creating a layout with two maps, several boxes, picture, ... The problem turn up when I add a legend where I modified the layers. For that I create a list with layers in my map, after that, I ...
1
vote
1
answer
168
views
How to make legend have no number overlap in Leaflet
I'd like my legend to go from 0-25 to 26-50 to 51-75 rather than what it is in the screenshot included.
How should I go about doing that?
function getColor(d) {
return d >= 75
? "#...
1
vote
1
answer
45
views
Adding"no data" square to legend in Leaflet
I want to add a square above the red one in my legend that is Grey and says "No Data".
How do I do this?
var grades = [0, 25, 50, 75];
function getColor(d) {
return d >= 75
? "#...
2
votes
0
answers
121
views
Inserting copyright symbol in label item in QGIS Print Composer
I have a label item in a print composer map layout. In there I'd like to insert a copyright symbol (red cross). Is there a shortcut or workaround?
2
votes
0
answers
53
views
ArcGIS Pro legend changes after export, What you see is not what you get
I have a map made in ArcGIS Pro v2.7. After export I noticed that the legend has changes its location and the map frame (named layers) appears in the exported PNGs legend. This also happens when ...
2
votes
0
answers
163
views
Setting legend subgroup to hidden using PyQGIS
I am trying to set the legend subgroup to hidden with PyQGIS.
The context :
self._project = QgsProject()
layout = QgsPrintLayout(self._project.instance())
map_= QgsLayoutItemMap(layout)
legend = ...
4
votes
1
answer
159
views
Text from attribute table as symbols (font marker?) not showing correct in legend (QGIS)
I need to place symbols (point layer) with abbreviations from a attribute table. I solved that with "font marker" and data defined override as you can see in the screenshot below. The result ...
1
vote
1
answer
58
views
Dynamic breaks of legend text in text in QGIS Atlas 2
I have tried the solution found in Dynamic breaks of legend text in QGIS Atlas
I am using QGIS 3.10.6-A Coruña.
I have attached a screengrab below. I use the "wordwrap" expression and it ...
2
votes
2
answers
312
views
Dynamic breaks of legend text in QGIS Atlas
I want to wrap legend text after a certain amount of characters depending on the width (variable) of the legend item.
I already tried the answer given at Wrapping legend text in QGIS MapComposer at ...
1
vote
0
answers
87
views
Getting raster legend to change to match raster in map when dynamic range setting is turned on using ArcGIS Pro
When I bring a raster into ArcGIS Pro, I usually turn DRA on so the raster visualization changes depending on my map extent, but the legend never changes in the contents pane, or in the actual legend.
...
0
votes
0
answers
23
views
Show symbology varying by size in legend using ArcMap
I am looking for a way to display point features with a symbology varying by size while using an expression to generate the size of the point features. I know I can do that by choosing Single symbol --...
2
votes
1
answer
61
views
Making legend with singleband pseudocolor in QGIS
I have a continuous raster with values from around 0 to around 1. I used these parameters on the symbology tab:
When I head to the print layout and add a legend to my map, it displays like this (the ...