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