Skip to content

Latest commit

 

History

History
511 lines (491 loc) · 20.8 KB

controls-reference.md

File metadata and controls

511 lines (491 loc) · 20.8 KB

Controls reference

While it's possible to build controls using the Basic Editor, using the Advanced Editor is the only way to unlock the full flexibility of controls. This guide lists each property that can be used in the Advanced Editor, each possible value the properties can accept, and which @controls can recognize the properties and values.

There are two reference tables in this guide—the first lists properties for static controls (nothing happens when map readers click on these controls), and the second lists properties for interactive controls (map readers can interact with the map by clicking on these controls).

Hover over the information icon at the far right of the table rows to see additional details and valid values for each property (when there are multiple valid values, we've listed them as separate snippets of inline code). All values are unitless.

If you find a property or a value that's not documented here, let us know!

Jump to the reference for interactive controls.

Static controls

Property Color-legend Image Label Text Title SNA-dasboard
background-color
color
font-family
font-size
font-style
font-weight
height
margin
metrics
opacity
padding
src
text-align
value
width

Interactive controls

Property Filter Showcase Cluster Tagged-timeline View toggle
as
background-color
by
color
default
except
font-family
font-size
font-style
font-weight
height
margin
mode
multiple
only
opacity
options
padding
placeholder
range
summary
target
width
<script type="text/javascript"> function searchProperties(tableName) { let searchBox, searchTerm, table, rows, i, cells, textToSearch; searchBox = document.querySelector("#"+ tableName + "-search-box"); searchTerm = searchBox.value.toLowerCase(); table = document.querySelector("#"+ tableName + "-search-table"); rows = table.querySelectorAll("tr"); for(i = 1; i < rows.length; i++) { cell = rows[i].querySelector("td"); textToSearch = cell.innerHTML.toLowerCase(); if(textToSearch.indexOf(searchTerm) > -1) { rows[i].style.display = "table-row"; } else { rows[i].style.display = "none"; } } } </script>

edit this page