Tag Info

New answers tagged

0

Using arrows is not an option defined in the current CSS of CartoDB, but bullets are defined here. You'd need to add them from the image uploader (IMG button) for legends in order to use them. Unfortunately, there are no arrows in the icon sets available, so you'll need to use your own images.


3

QGIS can not produce a legend like the right one on your color plate 1.2. There is a currently outstanding feature request to add size-scaled features to the legend in print composer, but it has not yet been implemented. Best try would be to generate it in a third party software or some drawing application, and then add the legend as an image to the print ...


1

Maybe you would like to try a different way. First you can generate an empty vector grid like a fishnet (Vector > Research Tools > Vector Grid (Output Grid as Polygons!)), then you can make a spatial join (Vector > Data Management Tools > Join Attributes by Location (Take summary of intersecting features! > you will need the COUNT Field in the result shape ...


1

Here are the screen shots of the final work. The webpage and part of the html code which i had to alter Thanks so much for the help.


2

1: The legend table has the granularity of the layer table. So: one entry in the table per layer. If you define an entry in legend_ico and legend_exp only the first line in the attribute table will be used. 2: legend_ico could contain one path like 'pictures/legend_1.jpg' with a local path for your image. You need to create the image either by hand or place ...


0

your question isn't a QGIS question, but a QT quetion. Legend tree is managed by QgsLegendTreeView that is a QTreeView. So all what you need is to browse you tree an hide rows to compact your legend with http://doc.qt.io/qt-4.8/qtreeview.html#setRowHidden If you simply want to remove a layer from QGIS (standalone or not) simply unregister it from ...


1

you have to change the css, but also the javascript that is used to generate the html for the legend. From the section of the tutorial where the legend is generated ("Creating a control with a legend..."), change the part with the comment "loop through our density intervals...", to something like the following var legend = L.control({position: ...


2

To complement Luigi's answer, this is how you can use the Layer Tree View for adding a legend and/or a ToC to your application. After you create your canvas in your standalone PyQGIS application, you need to create a QgsLayerTreeView. For that, you need a model, and for the model you need the layer tree root. Additionally, you need to use a ...


1

follow this guide Lutra consulting qgis-layer-tree-api-part-3 regards, Luigi Pirelli


2

The colors are stored with the TIFF file, but either the legend class names are not in there or else they are not read by raster. Therefore you will have to manually copy the legend names from the Web site and manually create an informative legend, but you can automatically display the codes for the colors. The first color in the color table is the ...


2

You have to provide a color palette: library("raster") mapd <- raster("MCD12C1_T1_2011-01-01_rgb_1440x720.TIFF") plot(mapd, col=terrain.colors(255), axes=FALSE) The rasterVis package has lattice based methods for plotting Raster objects (spplot(...)): library("rasterVis") spplot(mapd)


1

Realized this is really old, but you could try something like this for those looking at this now. // Creates the Legend from list of Feature Classes shown on map // Dynamically changes depening on scale and what features are visible map.on("layers-add-result", function(evt) { var layerInfo = arrayUtils.map(evt.layers, function(layer, index) { ...



Top 50 recent answers are included