Skip to content

Commit

Permalink
Merge branch 'main' into fix-pedestrian
Browse files Browse the repository at this point in the history
  • Loading branch information
na9da committed Dec 1, 2023
2 parents c2799e5 + ad3ccec commit 95e2f10
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 35 deletions.
9 changes: 7 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Change Log

#### next release (8.3.10)
#### next release (8.4.1)

- [The next improvement]

#### 8.4.0 - 2023-12-01

- **Breaking change:** Replaced `node-sass` with (dart) `sass`
- You will need to update your `TerriaMap` to use `sass` instead of `node-sass`.
- Added `apiColumns` to `ApiTableCatalogItem` - this can now be used to specify `responseDataPath` per table column.
- `ArcGisMapServerCatalogItem` will now use "pre-cached tiles" if available if no (or all) `layers` are specified.
- [The next improvement]

#### 8.3.9 - 2023-11-24

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ The template will replace all occurrences of `{{property}}` with the value of th

The result is:

<img src="./img/template.png">
<img src="../img/template.png">

instead of:

<img src="./img/no_template.png">
<img src="../img/no_template.png">

You can provide a template to use for the name of the collapsible section (eg. to replace `RGB` in the example above), like so:

Expand Down Expand Up @@ -150,7 +150,7 @@ If `{{Pixel Value}}` equals to `150` and `{{feature.data.layerId}}` to `2`, the

For features with time-varying table-based data structures (eg. CSV, SOS2, SDMX-JSON, if there is a time column), the feature info panel also includes a chart of the data over time, eg.

<img src="./img/feature_info_with_time_series.png">
<img src="../img/feature_info_with_time_series.png">

You can place this chart in your template using `{{terria.timeSeries.chart}}`. Alternatively, you can access the following component information:

Expand Down
21 changes: 0 additions & 21 deletions doc/contributing/problems-and-solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,3 @@ Then run the following to install NodeJS v16 and use it:
nvm install 16
nvm use 16
```

---

### Problem

Python errors when building NodeJS dependencies (eg `node-sass`). This is common on M1/M2 macs.

### Solution

You may need to install Python2 to build NodeJS dependencies (like `node-sass`)

We recommend using [`pyenv`](https://github.com/pyenv/pyenv#installation) to install Python2.

Follow installation instructions [here](https://github.com/pyenv/pyenv#installation).

Then run the following to install Python 2.7.18 and use it:

```bash
pyenv install 2.7.18
pyenv shell 2.7.18
```
4 changes: 3 additions & 1 deletion lib/ReactViews/Analytics/invoke-function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
}
}

@include empty-module("description") .btn {
@include empty-module("description");

.btn {
composes: btn from "../../Sass/common/_buttons.scss";
composes: btn-primary from "../../Sass/common/_buttons.scss";
}
2 changes: 1 addition & 1 deletion lib/ReactViews/DataCatalog/data-catalog-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
.catalog-group {
composes: list-reset from "../../Sass/common/_base.scss";
padding-left: $padding;
padding-top: $padding / 2;
padding-top: calc($padding / 2);
&--lower-level {
margin-left: 20px;
border-left: 1px solid $grey-lighter;
Expand Down
2 changes: 1 addition & 1 deletion lib/ReactViews/Mobile/mobile-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
svg {
position: absolute;
top: $padding;
left: $padding/2;
left: calc($padding / 2);
fill: #ffffff;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@
// On small screens (mobile), it make be up to 90% of the screen.
// In between, it may be up to 90% of the largest mobile screen ($sm), minus a bit to leave room
// for the map controls on the right. This is computed in $feature-info-medium-max-size.
$feature-info-medium-max-size: $sm * 0.9 - $feature-info-right-margin * 0.5;
$feature-info-forty-percent-size: $feature-info-medium-max-size * 100 / 40;
$feature-info-medium-max-size: calc(
$sm * 0.9 - $feature-info-right-margin * 0.5
);
$feature-info-forty-percent-size: calc(
$feature-info-medium-max-size * 100 / 40
);

z-index: $front-component-z-index - 20;
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions lib/Sass/common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ $splitter-thumb-width: 40px;
// Generated legends
$legend-item-width: 30px;
$legend-item-height: 16px;
$legend-padding: $legend-item-height / 2;
$legend-spacer-height: $legend-padding / 2;
$legend-padding: calc($legend-item-height / 2);
$legend-spacer-height: calc($legend-padding / 2);

$tool-primary-color: $color-primary;
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terriajs",
"version": "8.3.9",
"version": "8.4.0",
"description": "Geospatial data visualization platform.",
"license": "Apache-2.0",
"engines": {
Expand Down Expand Up @@ -217,13 +217,13 @@
"klaw-sync": "^4.0.0",
"minimist": "^1.2.8",
"node-notifier": "^5.1.2",
"node-sass": "^6.0.1",
"plugin-error": "^1.0.1",
"prettier": "2.7.1",
"pretty-quick": "^1.10.0",
"react-shallow-testutils": "^3.0.0",
"react-test-renderer": "^16.3.2",
"regenerator-runtime": "^0.13.2",
"sass": "^1.66.1",
"terriajs-server": "^4.0.0",
"yaml": "^1.10.0"
},
Expand Down

0 comments on commit 95e2f10

Please sign in to comment.