Skip to content

Commit

Permalink
Merge branch 'develop' into feature-1758-data-table-previews-3
Browse files Browse the repository at this point in the history
  • Loading branch information
rushirajnenuji committed Sep 25, 2024
2 parents 72b0634 + 337975e commit b417482
Show file tree
Hide file tree
Showing 11 changed files with 410 additions and 1,163 deletions.
Binary file removed docs/screenshots/views/maps/LegendView.png
Binary file not shown.
210 changes: 113 additions & 97 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@actions/core": "^1.9.1",
"cheerio": "^1.0.0-rc.11",
"express": "^4.19.2",
"express": "^4.21.0",
"fomantic-ui": "^2.9.4-beta.65",
"puppeteer": "^22.11.2",
"sinon": "^17.0.1"
Expand Down
17 changes: 3 additions & 14 deletions src/css/map-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ represents 1 unit of the given distance measurement. */
background-color: var(--portal-col-primary-1, #15324e);
}

.layer-item__legend-and-settings {
.layer-item__settings {
/* Show button when layer is hovered. */
display: flex;
border: 1px solid var(--portal-col-neutral-4);
Expand Down Expand Up @@ -919,19 +919,14 @@ represents 1 unit of the given distance measurement. */
}
}

.layer-item__legend-and-settings {
.layer-item__settings {
/* Show button when layer is shown. */
display: flex;
border: 1px solid var(--portal-col-primary-2);

/* Only show legend when layer is shown. */
.layer-item__legend-container {
display: block;
}
}
}

.layer-item__legend-and-settings {
.layer-item__settings {
/* By default, don't show button. */
display: none;
align-items: center;
Expand All @@ -948,12 +943,6 @@ represents 1 unit of the given distance measurement. */
color: var(--portal-col-neutral-6, currentColor);
}

.layer-item__legend-container {
/* By default, don't show legend. */
display: none;
margin-left: -0.5rem;
}

/* Use the same style on button hover and when selected. */
&.layer-item--selected,
&:hover {
Expand Down
3 changes: 1 addition & 2 deletions src/js/templates/maps/layer-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<%= label %>
</span>
</span>
<span class="<%= classes.legendAndSettings %>">
<span class="<%= classes.settings %>">
<i class="icon-gear layer-item__settings-toggle"></i>
<span class="layer-item__legend-container"></span>
</span>
2 changes: 2 additions & 0 deletions src/js/themes/arctic/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ MetacatUI.AppConfig = Object.assign(

// CesiumMap
enableCesium: true,
cesiumToken:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiMTE3MTBiYy1iODY1LTQxNjMtODUzNS0yMzM1NGE3M2JhMWIiLCJpZCI6NjkzOTcsImlhdCI6MTY3ODkwMDg5M30.xzIlG_tPIzB9FmYPzPTzOJ49R2J4yIG2y0ittFqdbMc",
useDeprecatedDataCatalogView: false,
catalogSearchMapOptions: {
clickFeatureAction: "zoom",
Expand Down
2 changes: 1 addition & 1 deletion src/js/themes/dataone/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MetacatUI.AppConfig = Object.assign(
title: "DataONE Data Catalog",
theme: "dataone",
baseUrl: "https://search.dataone.org",
mapKey: "AIzaSyDuQ9r_7EeSfspKYs2SET7sv4c8FysLIk4",
mapKey: "AIzaSyB61wRRIFZngUXO81ipq3ljUjsClKcT9mk",
repositoryName: "DataONE Data Catalog",
emailContact: "support@dataone.org",
nodeId: "urn:node:CN",
Expand Down
2 changes: 1 addition & 1 deletion src/js/views/filters/FilterEditorView.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ define([
description:
"Allow people to select a search term from a list of options",
filterTypes: ["filter"],
blockedFields: [...MetacatUI.appModel.get("querySemanticFields")],
blockedFields: [],
modelFunction: function (attrs) {
return new ChoiceFilter(attrs);
},
Expand Down
Loading

0 comments on commit b417482

Please sign in to comment.