Skip to content

Commit

Permalink
fix layout of legend
Browse files Browse the repository at this point in the history
  • Loading branch information
davemfish committed Nov 8, 2023
1 parent c044274 commit d07fce4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ html, body, #root, .App {
display: flex;
/*height: 1rem;/*
/*padding-bottom: 2rem;*/
width: 250px;
width: 350px;
position: absolute;
bottom: 1rem;
right: 1rem;
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/map/legendControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function LegendControl(props) {
{
(lulcCode)
? (
<div>
<>
<div
style={{
backgroundColor: landuseCodes[lulcCode][lulcType].color,
Expand All @@ -52,12 +52,11 @@ export default function LegendControl(props) {
}}
/>
<span>{landuseCodes[lulcCode][lulcType].name}</span>
</div>
</>
)
: <div />
}
</div>
// <div className="map-lulc-legend lulc-legend">{'?'}</div>
)
: <div />
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/map/lulcLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const COLORMAPS = {
};

export function getStyle(lulcType) {
console.log(lulcType)
// https://openlayers.org/en/latest/apidoc/module-ol_style_expressions.html#~ExpressionValue
// https://github.com/openlayers/openlayers/blob/main/test/rendering/cases/webgl-palette/main.js
return {
Expand Down

0 comments on commit d07fce4

Please sign in to comment.