Skip to content

Commit

Permalink
Overture sidebar (#1644)
Browse files Browse the repository at this point in the history
* Basic necessities to fire hover/select of overture data, with skeletal Overture inspector.

* Fix message for the overture service- we no longer use STAC.

* Add overture wordmark for display in sidebar.

* Remove the dedicated overture layer and fold it back into the Rapid layer.

* Fix some issues with dataset ID that were breaking the overture sidebar rendering.

* Get something rendering in the sidebar for overture places data.

* Get the rest of the data to appear in nicer columns.

* Change the layout of the overture inspector to show multiple values per heading item.

* Remove leftover references to the now-deleted overture layer.

* Fix overture sidebar title font, padding, weight, and border so that it looks like the regular Rapid dataset header.

* Fix the propeerty names in the data rendering.

* Make property headings a bit bigger, increase space between rows.

* Move the overture wordmark as per PR feedback.

* PR Feedback: slightly improve json processing so we don't parse it twice.

* Add rtl logo capability.

* Fix the close button for the overture inspector, make it honor rtl/ltr.

---------

Co-authored-by: Benjamin Clark <[email protected]>
  • Loading branch information
Bonkles and Benjamin Clark authored Dec 11, 2024
1 parent 07cd5a5 commit 0d3a88b
Show file tree
Hide file tree
Showing 13 changed files with 483 additions and 180 deletions.
52 changes: 44 additions & 8 deletions css/80_app_fb.css
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,27 @@ button.rapid-features.layer-off use {
.rapid-inspector .header svg.logo-rapid {
height: 35px;
}
.rapid-inspector .header button.rapid-inspector-close {
.rapid-inspector .header button.rapid-inspector-close,
.overture-inspector .header button.overture-inspector-close {
position: absolute;
top: 0;
right: 0;
background: transparent;
border-radius: 0px;
}
.ideditor[dir='rtl'] .rapid-inspector .header button.rapid-inspector-close {
.ideditor[dir='rtl'] .rapid-inspector .header button.rapid-inspector-close,
.ideditor[dir='rtl'] .overture-inspector .header button.overture-inspector-close
{
right: unset;
left: 0;
}
.rapid-inspector .header button.rapid-inspector-close svg {
color: #da26d3;
}
.rapid-inspector .header button.rapid-inspector-close svg {
color: #000000;
}

.rapid-inspector .header button.rapid-inspector-close:hover {
background: #8885;
}
Expand All @@ -240,14 +247,16 @@ button.rapid-features.layer-off use {
padding: 20px 0;
}

.rapid-inspector .feature-info {
.rapid-inspector .feature-info,
.overture-inspector .feature-info {
display: flex;
padding: 5px 10px;
border-radius: 5px 5px 0 0;
border: 1px solid #333;
}

.rapid-inspector .feature-info .dataset-label {
.rapid-inspector .feature-info .dataset-label,
.overture-inspector .feature-info .dataset-label {
flex: 1;
font-size: 14px;
font-weight: bold;
Expand All @@ -256,7 +265,8 @@ button.rapid-features.layer-off use {
font-size: 13px;
}

.rapid-inspector .tag-info {
.rapid-inspector .tag-info,
.overture-inspector .property-info {
padding: 7px;
background: #444;
color: #ddd;
Expand All @@ -267,9 +277,12 @@ button.rapid-features.layer-off use {
display: flex;
flex-flow: row wrap;
}
.rapid-inspector .tag-heading {
.rapid-inspector .tag-heading,
.overture-inspector .property-heading {
margin-right: 5px;
margin-top: 5px;
padding-left: 3px;
font-size: larger;
}
.rapid-inspector .tag-info .tag-entry {
display: flex;
Expand All @@ -281,12 +294,31 @@ button.rapid-features.layer-off use {
font-weight: 300;
margin: 0 3px;
}

.overture-inspector .property-info .property-entry {
display: flex;
flex-flow: row wrap;
border-radius: 5px;
font-size: smaller;
font-weight: 300;
margin: 0 3px;
}

.rapid-inspector .tag-key,
.rapid-inspector .tag-value {
.rapid-inspector .tag-value,
.overture-inspector .property-key {
flex: 0 1 auto;
padding: 0px 3px;
}
.rapid-inspector .tag-key {

.overture-inspector .property-value {
border: 1px solid #aaa;
border-radius: 5px;
padding: 0 3px;
}

.rapid-inspector .tag-key,
.overture-inspector .property-key {
font-weight: bold;
font-size: unset;
}
Expand Down Expand Up @@ -355,6 +387,10 @@ button.rapid-features.layer-off use {
padding: 15px;
}

.overture-inspector img.wordmark-overture {
width:100%;
}

/* For things that should stack in rows */
.rapid-stack {
display: flex;
Expand Down
53 changes: 53 additions & 0 deletions dist/img/omf-wordmark-rtl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0d3a88b

Please sign in to comment.