How do I remove unneeded controls?

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.

Basic Editor

  • 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.

Advanced Editor

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.

// Line 1 of your Advanced Editor:
@controls {
  ...There will be other code inside this block

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 to help out!

Last updated