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

learn more… | top users | synonyms

4
votes
0answers
30 views

Qgis Python - Legends in Horizontal

I have successfully added legends in Map using Qgis QgsComposerLegend () python programming .(using Qgis python console) but legends are added vertically.I wanted to place legend horizontally. If you ...
3
votes
0answers
58 views

Approach to controlling which layers display in a QgsComposerLegend

I've tried 2 approaches to control what shows up in print legends. Neither of them work which is troubling because other than pruning the layerRootTree in advance of composer.addItem(legend), there ...
3
votes
0answers
85 views

LegendGraphic gray color from external SLD file

I'm trying to add legendgraphic from a WMS layer with an external SLD file wich is generated dynamicly. The legend is added but the colors from SLD file are all gray. The WMS layer is colored by SLD ...
3
votes
0answers
165 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) ...
3
votes
0answers
295 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
122 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
0answers
273 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
0answers
30 views

Creating a Legend with arcpy and comtypes

I am relatively new working with python and arcobjects. Under normal limitations I know that you cannot create a Legend or any arcobject with arcpy.mapping. Is there a generic example of creating a ...
2
votes
0answers
52 views

How to show draw effects in legend in QGIS

I have edited the features on my map using the draw effects tool (colourize, glow etc). However, in Print Composer, the legend shows these feature symbols in their original form. How can I get them to ...
2
votes
0answers
92 views

Altering legend labels in Matplotlib

I have a choropleth map which displays crime percentage change. It is plotted from a geodataframe and the choropleth intervals are determined in the background by Python. Unfortunately, the first ...
2
votes
0answers
50 views

How to set more than one font sizes for a legend item in a QGIS?

I am looking for a possibility to set a second font size for one legend item in QGIS (2.8.1) Printcomposer. For every item (name of a plant) I need a smaler expression in brackets (name in latin). Is ...
2
votes
0answers
75 views

QGIS Set Composer Legend to shrink the font size to fit

QGIS 2.10.1. I have read that it is "impossible to make the legend smaller then its contents". Is there a way to set the legend to shrink the font size when re-sizing the bounding box? Or when you ...
2
votes
0answers
65 views

Remove Legend from CartoDB Layer

I am trying to remove the legend associated with the current CartoDB generated map and replace it with a legend from a map generated when the user selects a radio button. My code is as follows: ...
2
votes
0answers
104 views

How to create a legend for quantitative visualization with increasing icon size?

I am trying to find a way to do a map and legend like this: I am using QGIS 2.6 Brighton. The only way was to do a pie chart but I think it's not possible to create classes. I can create circles ...
2
votes
0answers
59 views

Is there a limit of the number of legend labels passed to ArcGIS server print service?

Is there any limit on the ArcGIS print service for the number of legend labels? I am using ArcGIS server 10.2 and ArcGIS Javascript version 3.10 and am able to print with legend labels (item ...
2
votes
0answers
269 views

Using QGIS legendInterface from standalone

In Python console from within QGIS, we use qgis.utils.iface.legendInterface().moveLayer( layer1, 1 ) to make modifications to the legend. What is the equivalent in a standalone python script ?In ...
2
votes
0answers
517 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 ...
2
votes
0answers
51 views

how to display the legend when the map contains external icons in R

I haven't found anything about the legend when the map contains icons external R (in png), is't possible to use the legend function or another function in R.
2
votes
0answers
117 views

Placing layer name beside their symbols in legend using representations of ArcGIS for Desktop?

I want to place the layer name of my feature class (styled with a representation) beside (right hand side) its symbol in the legend of my map in ArcMap 10.1. I know that the format can be changed via:...
2
votes
0answers
81 views

Moving legend items up and down in QGIS

How can I change sort order in layer properties styles tab? The only way I've found is to change their labels and order by it.
2
votes
0answers
102 views

Map Package is not showing points on map

I am fairly new to GIS, but I am working on an interactive legend and I need to just be able to add a map package to the xaml and it place the points on the map. The legend seems to be working. All of ...
1
vote
0answers
40 views

How to convert legend to graphics in QGIS?

I am trying to convert the legend element in the print composer into graphics, like the option in the ArcGIS: Is there some way to do this in QGIS?
1
vote
0answers
47 views

How do I edit stretched raster legend labels using arcpy?

I'm trying to edit a stretched raster legend item to only show values instead of the "High : " and "Low : " that are standard. I've created a layer template that doesn't include the high/low in the ...
1
vote
0answers
45 views

Programmatically adding folders & layers to QgsComposerLegend

I've been building up QgsLayerTree object with a directory structure that reflects the desired legend. Specifically I'd like the Group(s) to be titles and their contained layers to legend items. ...
1
vote
0answers
28 views

How can I change layer names in my legend when using layers with representations? Arcgis 10.3.1

When using a Feature Class layer with symbology converted to a representation there is no option in the symbology tab of the layer's properties to enter legend text. I can't see any options in legend ...
1
vote
0answers
28 views

ESRI Javasacript API Legend digit: Modify Layer Names

I am using the ESRI Javascript API Legend Digit in a map application and I would like to alter the display names as they appear in the legend. I'm accessing map services with cryptic names like "...
1
vote
0answers
32 views

Showing only legend items that are actually displayed within current map extent using ArcGIS API for JavaScript?

I'm using TOC/Legend widget as a default legend panel in my ArcGIS based JavaScript API web app. It works great, beside now i want to filter this legend panel based on users current map extent. The ...
1
vote
0answers
36 views

How to generate mapguide legend?

I'm trying to generate the legend of my mapguide map from the mapguide API but I've found any samples... Have you an idea of how to use GenerateLegendImage function on a layer and how to convert the ...
1
vote
0answers
19 views

Accessing feature legend style name using QGIS?

I have a vector layer classified by some combination of field values. I want to add a field for each feature, filled with the legend style name of the element. How can I do this? via Function Editor?...
1
vote
0answers
27 views

qgis legend with calculated field symbol

I am making a map with a bunch of features plotted on it, each with a two-letter combination used as the symbol and a color. The letters are unique for each feature, drawn from a column containing the ...
1
vote
0answers
183 views

dynamic legend for tiles in Leaflet

Good day dear professionals! I have a little problem. I started to learn javascript and leaflet not so much time ago, and now I can work with layers, but creating controls that I need is to hard for ...
1
vote
0answers
57 views

How do I get the default NLCD symbology back after clipping/projecting?

NLCD landcover rasters downloaded from MRLC have default legends and symbology as shown here: http://www.mrlc.gov/nlcd11_leg.php However, when I extract the raster through a mask, or reproject the ...
1
vote
0answers
84 views

How to add legend to Mosaic Dataset (ArcGIS Image Service Layer)

I have snow cover data of MODIS (46 images for an year) I put them in a mosaic dataset (with in a file geodatabase) and published them as an Image Service from ArcCatalog and added a time slider. I ...
1
vote
0answers
21 views

Default item on legend for QGIS

when I make a legend in QGIS, everything shows up how it should except for one item. The item is just a pale brown color that says "default". I can't find this item in any of my layers and have no ...
1
vote
0answers
143 views

Toggling layers with legends in CartoDB.js?

I created a map on the CartoDB website with multiple layers, each with its own legend. I now wish to use CartoDB.js to be able to toggle between the layers, so the legend will toggle on with the ...
1
vote
0answers
41 views

With ArcGIS Server's REST API, can I request a non-default symbol size when requesting a legend JSON?

I am using the ArcGIS Server REST API to retrieve legend information for one of our map services. I am requesting that information as a JSON object, so my HTTP request URL looks like this: http://<...
1
vote
0answers
209 views

How to change symbol size in QGIS map composer legend?

I need to set an identical size to several symbols inside a QGIS map composer legend. The 'Symbol' menu in the Legend properties allows to set a height and width but this has no effect on the size of ...
1
vote
0answers
21 views

ArcGIS 9.3. for Silverlight Missing color swatch inside legend

I have an ArcGIS 9.3. MapService and a Silverlight Application that consumes it. The application is deployed on two diffrent Systems. On system A everything is fine. On system B the map service is ...
1
vote
0answers
39 views

Identify based on legend items visibility

I have built a WPF app that has a dynamic legend that is refreshed as a user toggles on/off a layers visibility. I would like the identify task to only identify layers that are visible in the legend ...
1
vote
0answers
82 views

How can one modify map service legend (specifically raster layer)?

I've got the raster layer in my map service, which in fact is created automatically by asynchronous GP service as its output result ("View results with a map service" option). The raster is symbolized ...
1
vote
0answers
67 views

Inverting color ramp in legend

I have inverted the color ramp to display land surface elevation, now when I add a legend in print composer it shows the lowest value at the top and the highest at the bottom. See below: It is more ...
1
vote
0answers
168 views

GeoExplorer - Show layer by default in published map

I am able to publish a map using GeoExplorer and can add the icon on the published map to show the legend. However, I'd like the legend to appear on the published map by default. Is there a way to do ...
1
vote
0answers
200 views

How to add Legend Panel to Dojo / Openlayers?

I have openlayers app on dojo framework. I've been serving WMS layers with geoserver and wanted to use GetLegendGraphic to build legend for all layers. I've seen there are some ready widgets (like ...
1
vote
0answers
383 views

GetLegendGraphic with WMS layers in QGIS Server

I've created a project in QGIS where I've loaded some WMS layers. Now when I look at legends in QGIS Web Client, it just displays the label but not the associated color. Is it possible to have the ...
1
vote
0answers
57 views

How to extract numbers from each vectors?

I'm trying to create custom legend for a layer where OpenLayers.Rule objects are created dynamically and added to a layer. new OpenLayers.Rule({ symbolizer: { ...
1
vote
0answers
145 views

Segmentation Violation in ArcView 3.1 while performing UpdateLegend?

I am loading a ".avl" legend file into ArcView 3.1 and I am plagued with a recurring Segmentation Violation Error when I execute the updatelegend command in the theme. It looks like the legend file ...
1
vote
0answers
262 views

How to bring Legends of basemaps from ArcGIS online on map layout

I have used some base maps from ArcGIS online as background. We use a GP tool to print maps from this MXD online. So, how can I include the Legends of these base maps on my printed map? I did not see ...
1
vote
0answers
644 views

Create a color scale/legend for choropleth map using geotools (or other open source Java library)?

I'm experimenting with choropleth maps using geotools. Is there an easy way to add a color scale to the map (using geotools itself or some other os library)? By a color scale I mean a bar that shows ...
0
votes
0answers
7 views

Edit map legend properties from pause drawing screen Arcmap

Is there a way to edit a legends properties form the Paused Drawing screen? The reason I ask is so I can update a legends properties without having it redraw each time
0
votes
0answers
32 views

Placement of the Legend in Layout

I am trying to put the legend at a specific place in the layout using ArcObjects. I am creating an Envelope and trying to create the UpperLeft corner but the placement does not appear correct. I am ...