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.

Filter by
Sorted by
Tagged with
1
vote
0answers
23 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
37 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
55 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 ...
1
vote
1answer
97 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
30 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
32 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
50 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 ...
4
votes
3answers
357 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
26 views

Dock ArcGIS 9.3 table of contents

How do I dock the table of contents within the ArcGIS window.
2
votes
0answers
29 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
72 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
152 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
325 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
132 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
340 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
299 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
643 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 ...
2
votes
2answers
1k 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
99 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
731 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
590 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
832 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) ...
3
votes
1answer
642 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
38 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
240 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
142 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
955 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
492 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 ...
11
votes
2answers
458 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
742 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
169 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
402 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
238 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
30 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
314 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 ...
13
votes
1answer
1k 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 ...
7
votes
4answers
4k 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
204 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
141 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
859 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
213 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
487 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
174 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 ...
2
votes
2answers
276 views

Repairing data sources using ArcGIS for Desktop?

I work with MXD file that contain 50 layers (all layers located in different folders), some of them have broken Data source: The problem is that anytime i try to repair all the layers data source ...
2
votes
1answer
120 views

Updating symbology values/fields shown based on location selection in Data Driven Pages?

I am producing some maps for a client who owns a lot of water and sewer assets. The data supplied by the client has automated symbology which imports when dragging them in from the geodatabase based ...
0
votes
1answer
643 views

Button to turn off all layers in ToC at once?

I have created a map that has a Table of Content that i use to turn on and off desired layers. Is there a way to create a 'Clear' button that will untoggle the selected layers? I have a clear button ...
2
votes
2answers
143 views

Turning off visibility of layer using ArcObjects Java?

I'm making a geoprocessing tool with ArcObjects Java (IBasicGeoprocessingTool) and I need to make a layer not visible. I managed to get this layer as IFeatureLayer and I get an access to the map or ...
1
vote
0answers
91 views

TOC with secure services

I have secured map services with AGS. I also have the proxy.config, proxy.ashx, and web.config in my application. My map layers display OK using the proxy. When I try to display my legend using the ...
1
vote
1answer
66 views

How to calculate specific rows in layer field- ArcGIS 10.3

I try to calculate specific rows (OBJECTID 23-29) in "field_name" field with field calculator- i try to fill in the value "rt8". This is the attribute table: but i can't find any option to calculate ...