Questions tagged [table-of-contents]
Table of Contents, a tabbed list of data frames and layers (or tables) on a map that shows how the data is symbolized, the source of the data, and whether or not each layer is selectable.
112
questions
1
vote
1answer
30 views
Turning off single category of categorized symbology in ArcMap
I am new to ArcGIS Desktop.
I have one layer with different types of sewer: for rain water only, for waste water only and both mixed.
Every type of sewer should have his own color: rain - blue, waste ...
4
votes
0answers
32 views
QGIS 3 Dragging layer in table of content with keyboard
Sometimes it is hard to drag a layer with a mouse.
Is there a way to drag a layer (сhange its position relative to other layers) in a QGIS 3 table of content using only the keyboard?
1
vote
0answers
15 views
How to configure grouped layers in the LayerList widget with feature layers
This applies to the ArcGIS Server JavaScript API v4.x.
This LayerList widget example code contains grouped layers, whereby the San Francisco parent checkbox also controls its child layers:
The ...
1
vote
0answers
40 views
Change group legend behaviour in QGIS 3
In QGIS 2, when you click on a group which contains subgroups, all subgroups are checked/unchecked at the same time.
In QGIS 3, when you click on the same group, only that group is checked. Its ...
0
votes
1answer
23 views
How can I add a custom-named output to TOC which is a managed data in ModelBuilder
I'm trying to make a model using the ModelBuilder. Everything is working properly, except the fact that I want to add the outputs to TOC with the specific layer name.
The problem is that in order to ...
3
votes
1answer
12k views
Hiding a layer in Layers panel, but showing in Map Canvas [duplicate]
When a layer is added to QGIS, it is ordinarily added to "Layers" panel and "Map Canvas". The same thing happens when a memory layer (loaded/created by QgsVectorLayer) is added using QgsProject....
1
vote
0answers
47 views
Removing/hiding items in TOC panel (pie chart symbology)
I work in ArcMap 10.4. I need to find a way to remove/hide some of the items displayed in the TOC after applying Pie chart symbology to features.
The main idea is the items are somewhat duplicated but ...
0
votes
0answers
297 views
Updating xy fields in attribute table automatically when moving points to new locations in ArcMap?
I work on ArcGIS Desktop 10.3.1 and try to move several points so they are corresponding simultaneously to the coordinates value in the attribute table immediately.
I know this question repeats in ...
1
vote
0answers
99 views
QGIS layers panel doesn't show symbology
In the layers panel, the symbology next to the layer name doesn't show. Reinstalling QGIS has not fixed the problem.
These are PostGIS point layers that draw on the map perfectly fine. The symbology ...
2
votes
1answer
526 views
QGIS 3 move layer to group
In the layer tree, I want to move a few layers at root level to a group also at root level.
From what I have gathered so far, I have to clone the layer first, add it to the group and then delete the ...
1
vote
0answers
41 views
Keeping TOC layers unchecked on first load in ArcGIS JavaScript API
I am new to ArcGIS and it's API.
I am using NLiu's TOC widget for displaying the layers. It is working perfectly, however, I wanted to keep all layers unchecked when it is loading on the browser (for ...
1
vote
0answers
39 views
Scrolling TOC programmatically using ArcObjects in ArcMap AddIn?
I've created the small add-in command for ArcMap, that allows find in TOC and select the layer by it's alias or feature class name. Useful when map document contains several hundreds of layers.
The ...
2
votes
1answer
56 views
Getting layer label from ArcMap Table Of Contents?
How do I get a layer´s label from the TOC?
I can´t find a similar question and ArcGIS Help tells nothing about it. I have searched even in other knowledge bases but with no success.
I need to get ...
6
votes
3answers
1k views
Sort layers in table of contents in QGIS 3?
When I load a bunch of layers into QGIS, they seem to load in reverse alphabetical order. I'd like to sort them alphabetically.
In this thread a solution is proposed, but that does not work in QGIS 2....
-1
votes
1answer
36 views
2
votes
0answers
33 views
Copying Table of Contents from QGIS into Excel?
Is there a way to copy and paste the contents of the Table of Contents in QGIS into an Excel spreadsheet?
For example, I have many layers (groups of vector shapefiles which are underneath various '...
1
vote
2answers
88 views
Move files from Table Of Contents to a geodatabase in ArcPy?
I have a program that selects certain files and imports them to the Table Of Contents in ArcMap.
I would like to do some self intersect operations to all and put them both the original files and the ...
0
votes
1answer
183 views
Preventing Append_management from adding target to Table of Contents? [duplicate]
I am using ArcGIS Desktop 10.2.
I have a script that successfully converts a .csv into an already-existing feature class by first truncating the feature class table and then using the following line ...
6
votes
1answer
559 views
Change background color of Layer in the TOC / QgsLayerTreeLayer with pyqgis
I would like to change the background-color (or font color) of some items in the TOC of QGIS:
Example-Mockup:
I tried several ways but nothing did the trick so far:
layer_list = QgsProject.instance(...
0
votes
1answer
171 views
Removing layer from TOC when it has space in name using ArcPy?
I am trying to remove layers from the TOC using Python Toolbox. It works provided that the layer names have no spaces in their names. Tho whole script looks like:
class ...
1
vote
3answers
562 views
Concatenating two columns in ArcGIS 10.2.1: “no records within table”?
I am trying to merge two text columns (consisting of 2 digit and 3 digit numbers respectively) into one in ArcGIS 10.2.1 desktop version, but unable to do so. I have added a new field and kept it as ...
1
vote
0answers
403 views
Selecting the active layer in Layers tree in QGIS [closed]
How do I programmatically (in QGIS with Python) set the position of the active layer and show it in the legend tree.
Specifically if the layer is in a collapsed group or is it far below the list?
1
vote
1answer
868 views
How to duplicate a map layer at most once as the bottom layer in qgis3 (python)
I wanted to duplicate a layer in qgis3 using python (display the same vector data as different layers) per this question (How can I duplicate a layer in QGIS?). In addition, I need to:
make sure that ...
1
vote
0answers
55 views
Getting signal when toggling group in PyQGIS? [duplicate]
I have a group which contains x number of layers. I can connect the group's node visibilityChanged signal to a simple print function so that when the group is toggled, a message is printed to the ...
3
votes
2answers
2k views
Set layer order in QGIS with PyQGIS
There are several similar questions around, like Sort layers in QGIS table of contents or Order layer in QGIS with PyQgis, but I can't get it to work. Here is what I do:
# image and shapefile are ...
3
votes
1answer
104 views
Connect symbol layer from Layers Panel to function
If I create a simple function:
def print_me():
print 'Clicked!'
and I switch off the symbology for Elephant as shown below:
I would like the function to run. What would be ideal is if we can ...
15
votes
1answer
985 views
How to apply changes in QSettings immediately?
With PyQGIS, you can change various settings such as making the groups in the Layers Panel (or table of contents) bold:
from PyQt4.QtCore import QSettings
QSettings().setValue("/Qgis/legendGroupsBold"...
0
votes
1answer
741 views
How to create TOC icons from a geojson leaflet style
I have a leaflet map that shows a couple of geojson layers. The style for each layer is represented in a TOC by means of the plugin Grouped Layer Control. The TOC has the following aspect:
The ...
4
votes
1answer
1k views
Setting different context menu actions for each layer type with PyQGIS
I want to set different actions(context menu) for vectors,rasters,etc .
class MyMenuProvider(QgsLayerTreeViewMenuProvider):
def __init__(self, view):
QgsLayerTreeViewMenuProvider.__init__(self)
...
5
votes
1answer
836 views
How to change visibility of a particular layer category in PyQGIS?
I've got one layer with its symbol MARKER, categorized by an expression in 4 colors. The colors depends on a value of a column. So from the TOC, I'm able to click and enable/disable, as they were ...
1
vote
1answer
39 views
Add layer subsets in table of content
As I have too much data in one shapefile (it is too long to load), I created from this shapefile 4 layers showing the level of environmental risk. However I would like these shapefiles to be subsetted ...
0
votes
0answers
309 views
Clear/refresh table of contents in Geoprocessing tools
I'm building a Python toolbox and when I run one of my tools, I noticed that the table of contents doesn't update itself in the drop down list of my Python tool. As you can see in the image below, ...
5
votes
1answer
151 views
Can QGIS for Windows use ticks instead of crosses in the Table of Contents?
In a fairly old blog, Martin Dobias shared a post detailing the use of the QGIS Layer Tree API where one of the images shows the Table of Contents (or Layers Panel in QGIS jargon) using ticks to show ...
2
votes
1answer
1k views
How to prevent zoom-in when clicking in the Leaflet table of contents window?
The Leaflet grouped layer control plugin has a demo page, where double-clicking within the Table of Contents window has no effect on the map. This sample uses Leaflet 0.73.
When using this plugin ...
3
votes
1answer
633 views
Make this the only selectable layer (greyed out)
Someone else has tried Creating shortcut (button) for "Make this the only selectable layer" in Python 2.6? but, as pointed out there, the answer doesn't work.
When adding "Make this the ...
12
votes
2answers
608 views
Setting width of layers panel in QGIS?
When I open QGIS, the Layers Panel defaults to a width that doesn't show the "Remove Layer/Group" button. So I have to resize the panel to show the button every time I open QGIS.
Is it possible to ...
2
votes
1answer
1k views
Is it possible to alter the UI colour within ArcMap?
I was wondering if anyone knows if it's possible to change the colours of the user interface within ArcMap? Specifically the background and text colours of the table of contents and the ArcCatalog/...
3
votes
1answer
188 views
Show full layer name (including extension) in QGIS table of contents
Is there an option in QGIS to show the full name of a layer (including the extension) in the TOC?
I'll take a python solution as well, but it would need to trigger on layers being added.
2
votes
1answer
528 views
How to only check one layer in a group at a time?
I have a group of layers and in my plugin, I would only like one layer from a specific group to be checked at any time. The plugin contains a toggle button which connects each layer to a function. The ...
6
votes
1answer
255 views
Turning off representation descriptions in ArcMap table of contents?
Using ArcMap 10.3.1, advanced, how do I turn off the display of the layer representation descriptions in the TOC? I've highlighted what I'm trying to turn off in the screenshot below.
Nothing in the ...
3
votes
0answers
31 views
Python Add In Change tab in Table of Contents [duplicate]
I'm working on an add in that generates new structures for an addressing system. The tool is working well, but as it runs, at some point it changes tabs in the Table of Contents to the "List By Source"...
4
votes
3answers
471 views
Renaming layer in a TOC using a tool within Python Toolbox
I created a simple tool that renames layers in the TOC using a for loop. As a tool within my normal toolbox it works fine. Now I´m trying to work more and more with the Python Toolbox and want to ...
14
votes
1answer
2k views
How to make a layer or group invisible in the Layers Panel?
I have a number of layers in the Layers Panel inside a group but I don't want them shown (there's quite a lot so it looks untidy). These layers are also joined to several others.
Is it possible to ...
8
votes
4answers
5k views
How to move layers in the Layer Order Panel using PyQGIS?
Related to the following question but looking for a PyQGIS method:
QGIS Layer Order Panel - add layers at top of layer order
The following is a simple setup containing a group with three layers.
...
1
vote
0answers
236 views
TOC ArcGIS JS API app Is empty
I've been trying to use Nliu's TOC . I've followed a few examples and looked through the threads here, but I'm totally stumped on why my code isn't working.
This is my code
<!DOCTYPE html>
<...
5
votes
1answer
145 views
Turning on another layer when one is selected in TOC using PyQGIS?
I have a large number of raster model files of water depths with corresponding velocity vectors in point shapefiles. I want to be able to 'walk through' the results displaying the depths and velocity ...
4
votes
1answer
1k views
Re-order layers in QGIS table of contents using python
I am using the following code in a script tool to import a set of shapefiles from a folder specified by the user, duplicate two of the layers, style all of them and re-order them in the layers panel.
...
1
vote
1answer
279 views
Renaming the value of a proportional symbols layer in Table of Contents in ArcMap
In the case of a - for example - graduated colors or graduated symbols layer, it is easy to rename the value in the Table of Contents. I always click the value name and press F2.
However, pressing F2 ...
2
votes
2answers
541 views
Arcpy deselect layer in TOC
With python-addin-wizard I created a combobox which enables the user to select a specific ID of features in multiple featureclasses of the Table Of Content and then it zooms to the selected feature. ...
1
vote
1answer
216 views
How to sort layers in TOC in custom order?
Recently I saw a script that moves layers according to their names in TOC.
I wanted to make a complete script for my work in which all needed layers are listed and probably should be sorted in a way I ...