mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
@@ -144,7 +144,7 @@ const LayersVisibilityController = (props: {
|
||||
<em>All layers</em>
|
||||
</CheckboxLabel>
|
||||
<LayersVisibilityList>
|
||||
{props.layers.map(({ id, visible }) => (
|
||||
{props.layers.map(({ id, visible }, idx) => (
|
||||
<li key={id}>
|
||||
<CheckboxLabel style={{ paddingLeft: 8 }}>
|
||||
<input
|
||||
@@ -153,6 +153,13 @@ const LayersVisibilityController = (props: {
|
||||
onChange={toggleLayer}
|
||||
data-layer-id={id}
|
||||
/>
|
||||
<span
|
||||
style={{
|
||||
width: ".8rem",
|
||||
height: ".8rem",
|
||||
backgroundColor: schemeSet3[idx % 12],
|
||||
}}
|
||||
/>
|
||||
{id}
|
||||
</CheckboxLabel>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user