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

learn more… | top users | synonyms

3
votes
3answers
440 views

Openlayers 3 get legend not working

So I am trying to display the appropriate legend for my first map. This is my javascript for my first_map. function firstmap() { var first_map = new ol.Map({ target:'FirstMap', ...
3
votes
1answer
275 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 ...
3
votes
3answers
331 views

How to improve legend spacing for ESRI ArcGIS map

I am using ArcGIS 10.1 and am trying to achieve a fairly uniform amount of white space between the first four legend items and am having difficulties pulling this off. All four items are separate ...
3
votes
2answers
986 views

Changing Names in TOC Doesn't Update Legend Properly

This is related to an ArcMap add-in I coded up this past week. I'm trying to rename a layer in ArcMap and have the legend refresh properly. The renaming part is working fine, however I cannot get the ...
3
votes
1answer
217 views

Is there any way to have the legend text above the symbol and beside it, not just above?

Is there any way to have the legend text above the symbol and beside it, not just above? What i do at present is to cut the end of the text off and insert a label then group them, however i want to ...
3
votes
3answers
2k views

How to remove empty classes from legend in ArcGIS Desktop?

I have a classification image with only 12 classes. I'm preparing layout using this image. when I add legend into layout page, a lot of empty classes loaded together with these 12 classes. Totally 255 ...
3
votes
1answer
959 views

Working with legend patches/symbology in ArcGIS Desktop?

I am working with a legend in a map from ArcGIS 10.1. The map is used as a template and will be used many times to create different maps. The legend is used to show a soil type and its descriptor: ...
3
votes
1answer
967 views

How to create complex legends in Mapserver?

I want to create a color legend on mapserver. It is working but now I have to group several classes together like a heading with a group of color in it and so on. I have 10 such groups of classes. I ...
3
votes
1answer
37 views

How to create a tabular legend in ArcMap 9.3?

I want to create a legend in ArcMap 9.3 like the image below for a polygon layer. How can I do that? The values in the first column (Molid, Brad, etc.) and in the second row of legend (1-40, 41-90, ...
3
votes
1answer
174 views

order layer in QGIS with pyqgis

I´m new in pyqgis. I´m looking for a code to move one layer in TOC to a specific position. Is it possible? Thanks a lot!
3
votes
1answer
1k views

Leaflet add and remove legends with layer selection

I'm new to Leaflet/Javascript and have been struggling to get legends a map to show only when a specific layer is selected from the layer control. I have three layers, one of which I would like to ...
3
votes
3answers
3k 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 ...
3
votes
1answer
467 views

Flip over min/max values in a stretched symbology for raster data

In ArcMap 10.1, we can render a raster in a colour ramp (stretched) symbology to draw a raster layer based on each pixel value. However, the legend for the layer by default starts from the max value ...
3
votes
1answer
891 views

Legend text wrapper (ArcGIS)

I'm interested in wrapping long legend text (in ArcGIS 9.3.1) so that the text does not exceed the layout extent. I would like to call the "GetFormattedString" Function within the ...
3
votes
0answers
18 views

QGIS Print composer Label Icon in Legend

In a legend of a map I want to label the icon with a number, just as it appears in the map. As example, I have different parcels and every parcel has a number. In the map, the parcels are labelled. In ...
3
votes
1answer
75 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 ...
3
votes
0answers
145 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 ...
3
votes
0answers
96 views

Lining up polygon legend patches in ArcGIS for Desktop?

I have tried the properties and everything, I cant understand why my polygons are not lining up correctly in the legend. I created this legend the usual way by adding my 3 layers to the legend wizard ...
3
votes
1answer
45 views

MapInfo 12 Legend settings

Does anyone know how (if) I can set the defaults within Legend Designer? I want my rectangles for each layer to default to a 20x20 square, not a rectangle. At the moment I have to change it manually ...
3
votes
1answer
419 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 ...
3
votes
3answers
551 views

Change label next to symbol in TOC

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 ...
3
votes
0answers
327 views

Make Graph (Data Management), Changing item names in legend [closed]

I'm having python produce a multi-series graph. How do you change the series name in the legend, the default being Vertical Bar, Vertical Bar1, Vertical Bar2.... ...
3
votes
0answers
234 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 ...
2
votes
1answer
1k views

Adding count of features in categories to legend using ArcGIS for Desktop?

I am using ArcGIS 10.1 for Desktop and I would like to know How to add the Count (which is visible on the Symbology tab of the Layer Properties dialog) to the legend?
2
votes
3answers
2k views

Unable to edit legend in ArcGIS layout view

Somehow I can’t open the legend properties after converting it to graphic in layout view – from what I’ve read in the ArcGIS guide and online, I should be able to edit everything on the legend through ...
2
votes
2answers
526 views

How to generate legend in leaflet webmap?

Although I have checked the "Create Legend" option in the qgis2leaf plugin, it did not generate any legend in the output webmap. What am I missing here ?
2
votes
2answers
178 views

Remove item from legend using ArcPy?

I can't remove item from the legend (lyr called "atikot") using arcpy with this code: import arcpy from arcpy import env removeLyr = arcpy.mapping.ListLayers(mxd, "atikot")[0] mxd = ...
2
votes
1answer
57 views

How to create legends with triangular end boxes in arcGIS?

I simply want my legend which is now in the form of the left bar in the following image, to be shown in the form of the bar in the right side. I couldn't find anything related for arcGIS. those anyone ...
2
votes
2answers
79 views

What exactly to write inside legend_exp column so that color Legend is seen in Qgis2Leaf?

I am new to qgis2leaf. I am getting the through qgis2leaf plugin. But as one can see i am not getting a color legend. I need to get the colors of bldg_use so that the map becomes readable. I needed ...
2
votes
2answers
101 views

A raster map without a legend?

I simply download a map from here http://neo.sci.gsfc.nasa.gov/view.php?datasetId=MCD12C1_T1. this map is a tiff file. mapd <- raster("C:\\MCD12C1_T1_2011-01-01_rgb_1440x720.TIFF") plot(mapd) ...
2
votes
2answers
269 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 ...
2
votes
3answers
506 views

How to change properties of an item in a legend in ArcMap 10.2 using python

For many of my projects I use a single mxd to create multiple maps using a python script to switch on/off various raster layers before exporting to pdf. Before beginning the exporting process I ...
2
votes
3answers
697 views

R - color SpatialLines by attribute

I have a SpatialLinesDataFrame dataset of rivers in R. The dataset consists of lines (river segments) with a "Turbidity" attribute. I want to create a map and legend, where: Turbidity between 0 and ...
2
votes
3answers
1k views

ArcGIS legend columns

I am making a legend in ArcGIS 10, and have a few layers with a large number of classes. When I try to display the legend with two columns for that layer, the second layer always lines up with the ...
2
votes
1answer
44 views

How to get a 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 ...
2
votes
2answers
95 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 ...
2
votes
1answer
99 views

Can QGIS place diagrams in map legend?

I have this map and I want to put these red circles in the legend of the map according to this form: Is there a way to do that in QGIS? Thanks
2
votes
2answers
157 views

How to use attribute data for legend labeling?

For features in a map it is possible to stuck data from the attribute table together and get a data driven label. I try to do this for my legend labels. I want to combine values from my attribute ...
2
votes
2answers
1k 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 ...
2
votes
1answer
530 views

Why do some Customised Symbols look good in map but disappear from Legend on Export?

I am using ArcGIS Desktop 10.0 I created some customised symbols for my map which ArcGIS Desktop did not have. To do this I used BMP files and imported the symbols. They look good on the map but do ...
2
votes
1answer
236 views

QGIS print composer: Transparency in legend symbols

Is there a way to make the legend in the QGIS (v2.0.1) print composer reflect the same degree of transparency as set in the Style box in the main window? The legend symbol colours are shown with no ...
2
votes
2answers
2k views

Labelling pie chart legend entries by alias in ArcGIS 10.1

When generating pie charts in ArcGIS, it appears that the legend entries generated for the different slices are named based on field name, rather than the field alias. I've done some research, and ...
2
votes
1answer
1k views

Legend labels for Vector layer symbols - how to name them (GeoEXT)

I'm coding with GeoExt and I have some problems trying to display the names of diferent features in a vector layer. This is my code: mapPanel = new GeoExt.MapPanel({ map: map }); legendPanel = ...
2
votes
1answer
337 views

How to move the QGIS Layerpanel/Dockwidget programmatically

i'm working on a QGIS-plugin and want to move the default LayerPanel/Dockwidget to somewhere else programmatically. More specific: i want to move it into a tab of my tabwidget. Is this possible? How ...
2
votes
1answer
107 views

What's the QGIS Legend Format Syntax to have thousands separated by commas?

I have numbers in the millions and would like to know what string to enter in the Legend Format box to have thousands separated by commas ex: 2,000,000
2
votes
1answer
151 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 ...
2
votes
1answer
103 views

How to align QGIS legend items to the right?

Is there a way to align QGIS map composer legend items to the right, for right-to-left languages? There is only a title alignment option. Furthermore, I found this ticket from 4 years ago regarding ...
2
votes
1answer
61 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
200 views

How do I get the legend from a ArcGISDynamicMapServiceLayer using esri javascript api?

New Code: I updated the code a bit to more a recent recent version of the api, but ashima was correct in that I was not passing my layer as an array. Fixed that and it worked map = new Map("map", { ...
2
votes
1answer
2k views

How to add a legend and toggle the legend with a layer in Openlayers?

I'm currently trying to add a legend to my map and to show/hide it, when the corresponding layer (an image layer) is shown/hidden. My approach was to add a custom button with a .png of my legend. That ...