Tag Info

New answers tagged

2

It's still an open issue. The ticket on the current bug tracker is http://hub.qgis.org/issues/3239 I imagine a few users with interest in right-to-left languages could easily fund this together.


1

I can think of a few ways to accomplish this, if you want to automate the process you would use a similar approach to this example in the ArcGIS help LegendElement example 4: The following script updates all layers in the legend to use a custom legend item style item called MyNewStyle. import arcpy mxd = ...


0

If the legend is dynamic, you may use the Layer (arcpy.mapping) class, using a combination of the isRasterLayer property and VISIBLE parameter to turn on or off raster layers, which should hide or show that item in the legend.


2

Have you looked at the arcpy.mapping LegendElement? Not sure that will do what you want, but is one way of manipulating legend elements.


0

You can use arcobjects for this by grabbing the element envelope and converting it to graphic: This example shows how to do it for legend element. Converting Legend to IGraphicsComposite in C# // Convert legend to graphics IPageLayout pageLayout = mxDoc.PageLayout; IActiveView activeView = (IActiveView) pageLayout; IGraphicsContainer graphicsContainer = ...


0

I eventually found a solution to this in a discussion on Esri's GeoNet: Controlling Layers in Legend Control. The method is to include a LayerIDs="[list]" property in the legend declaration. So for instance, you only want to display your baselayer in the legend: <esri:Map> <esri:ArcGISTiledMapServiceLayer ID="baseLayer" Url="..." /> ...


1

Values or classes not present in the data are typically not displayed in an automatically generated legend. There are a couple of workarounds typically used to address this. Create a sample dataset containing all values/classes and use that to generate the legend, but keep it out of view in the map. Convert the automatically created legend to a graphic - ...


3

I don't know of any built-in functionality or plugins for this, but here is a solution that should get you started (using jQuery). In short, because the Layer Control is generating dynamic html, we use jQuery to select the leaflet control layers overlays, and add a description. Then make use of these built in Leaflet map events to show and hide the ...


1

QGIS sees four bands inside the netcdf file, and tries to create an RGBA (red-green-blue-transparency) image out of it. This might make little sense. You get a better result if you click on the layer, go to the style tab, and change the colouring from multicolour to one-band-pseudocolour. Then you can classify the data, and you will get a legend in the ...


0

I still think that this is a duplicate of Resequencing Legend Items using ArcPy? where I think this answer provides the way to a very messy workaround/procedure that would involve basically: removing all layers from your Table of Contents, setting autoAdd to True, adding the layers back in the order you want for your legend, removing all layers from ...


0

The legend will always reflect the draw order of the map, AFAIK. You can change the draw order using arcpy.mapping.MoveLayer. There is a code example from the ESRI help import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") df = arcpy.mapping.ListDataFrames(mxd, "County Maps")[0] for lyr in arcpy.mapping.ListLayers(mxd, "", df): if ...


1

Looking at the examples provided with the ?iconlabels function, the author uses the column landuse from the meuse dataset. That column is from class factor. So I tried to convert your column cluster from class integer to class factor and it worked. X = read.table(text="code,cluster,name,longt,latit 101,1,A,-89.6171,35.24992 ...


3

Perhaps you could use the "Unique Values, Many Fields" symbology option and choose the number field then the description field: Then when you insert the legend it will show the number and the description: Its not perfect because it doesn't show the number inside the symbol but it might do the trick and I bet if you convert the legent to graphic then do ...


4

You can't easily display label information in the legend, so the best solution is to have unique symbology for each of your points. The simplest way to do this is to open the properties for your layer and and select the Categories option on the left hand side (see below). You can then select the field to create a different symbology for each point. ...



Top 50 recent answers are included