How do I remove unneeded controls?
Last updated
Last updated
When you're adding controls through the Basic Editor, you might sometimes add a duplicate control by accident, or add a control that says "No values found for [some field name]". To remove any of those unneeded controls, you can use the Basic Editor or the Advanced Editor.
Click the settings icon on the right to open the Basic Editor, then scroll down to "Add custom control". You'll see all existing controls listed out below.
When hovering over an existing control, click on the edit pencil to edit your existing control, or click on the trash icon to delete it.
Open up the Advanced Editor, and, unless you have added partial views, there will be a block of code right at the top starting with @controls
.
If you don't want any controls or "No values found for [some field name]" messages on your map, simply delete the entire @controls
block, then click "Save" at the bottom of the editor.
If you have some controls in there that you would like to preserve, you'll first need to learn the basics of how to read @controls
code, so that you can tell which controls you want to delete and which you want to keep.
If you want to delete all controls in a certain region of your map, then delete all the code saying top
, or top-left
, or bottom
etc. Delete the whole block to delete all the controls in that region.
If you want to delete just one control, locate it in the list of your controls and delete that whole block. You can recognize a control block by the fact that the first line is filter
, or showcase
, or cluster
, or focus
.
You can learn more about reading @controls
code in our full guide on controls. Of course you can always send us an email at support@kumu.io to help out!