Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TerriaJS 8.7.9 from Bioretics fork #52

Draft
wants to merge 223 commits into
base: rer3d_from_8.7.9
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
22f3baf
Remove elevation error in coordinates
glughi Nov 2, 2021
0130fc7
Add CoordsPanel
glughi Nov 2, 2021
ccac69a
Add elevation to FeatureInfo
glughi Nov 2, 2021
a5f11f4
Use SLM instead of ellipsoid height
glughi Nov 2, 2021
bc3d14f
Switch BingMapsSearch culture from "en-au" to "it"
glughi Nov 2, 2021
bd318f9
Clamp to ground Kml
glughi Nov 2, 2021
f432f69
Add Copy icon
glughi Nov 2, 2021
7d9e5d9
Add CoordsPanel to menu
glughi Nov 2, 2021
750f28a
Print version to console
glughi Nov 2, 2021
bec62a9
Merge https://github.com/TerriaJS/terriajs into upgrade-to-v8
glughi Nov 3, 2021
651cb31
Merge https://github.com/TerriaJS/terriajs into upgrade-to-v8
glughi Nov 9, 2021
ee8105d
Set globe background color to white
glughi Nov 12, 2021
5fef9a4
Clamp to ground lines of Measure Tool
glughi Nov 23, 2021
9e46ae0
Change prettifyCoordinates default digits to 6
glughi Nov 23, 2021
f3d9ab2
Store and load last picked point coordinates
glughi Nov 23, 2021
ca03d80
Workaround for rebuild problem when MeasureTool.ts is modified
glughi Nov 25, 2021
1d5ec3f
Allow measure area of polygon
glughi Nov 25, 2021
3cb46ab
Clamp to ground user drawed polygons
glughi Nov 25, 2021
77f7eba
Enable and fix point moving when measuring distance or area
glughi Nov 30, 2021
637f6da
Add a button to MeasureTool to enable/disabled clampToGround
glughi Dec 17, 2021
856ef4d
When drawing a path with MeasureTool store its data and sampled path …
glughi Dec 17, 2021
f673893
Add elevation/path panel and chart
glughi Dec 20, 2021
1807a0c
Fix elev use in FeatureInfoPanel
glughi Dec 20, 2021
a8c25f3
Fix BingMapSearchProvider zoom to location
glughi Dec 21, 2021
da9411a
Add RerSearchProvider
glughi Dec 21, 2021
02a5f17
Add NominatimSearchProvider
glughi Dec 21, 2021
96d732e
Fix translation warning
glughi Dec 21, 2021
e3d72a0
Fix zoom to location
glughi Dec 22, 2021
27ccfa4
Fix ESlint errors and warnings
glughi Dec 22, 2021
c666b11
Increase Leaflet max zoom level from 18 to 21
glughi Dec 22, 2021
d9f5a4c
Merge branch 'main' of https://github.com/TerriaJS/terriajs into upgr…
glughi Jan 10, 2022
b3e7a7f
Add MeasurableTraits
glughi Jan 10, 2022
490c58e
Fix BingMapsSearchProvider
glughi Jan 10, 2022
3591ef0
Fix package.json
glughi Jan 10, 2022
0784b73
Add MeasurableTraits to load path data from layers
glughi Jan 14, 2022
c69e822
Better italian translation
glughi Jan 25, 2022
6e5680c
Add save and load functions to SharePanel
glughi Jan 25, 2022
b3783d8
Set default line stroke width to 4 px
glughi Jan 25, 2022
1634734
Search in catalog uses also item info
glughi Jan 25, 2022
fed9c3d
Change RerSearchProvider name
glughi Feb 1, 2022
1924e3c
Add getZoomLevel function to GlobeOrMap
glughi Feb 10, 2022
3c179ef
Add appendData trait to GeoJson
glughi Feb 10, 2022
303413d
Add RerFeatureServerCatalogItemTraits traits
glughi Feb 10, 2022
7ae4d9f
Rename RerFeatureServerCatalogItemTraits to RerFeatureServerTraits
glughi Feb 10, 2022
d4eeff2
Add RerFeatureServer traits to ArcGisFeatureServerCatalogItem
glughi Feb 10, 2022
5425f07
Disable extra credit links
glughi Feb 11, 2022
92d78a2
Set site title from config.json
glughi Feb 11, 2022
611f4a1
smallUserInterface improvements
glughi Feb 11, 2022
7979420
Fix imports from terriajs-cesium
glughi Feb 14, 2022
b08cb30
Fix Load button in SharePanel
glughi Feb 15, 2022
80628ad
Fix lint warnings
glughi Feb 15, 2022
592877c
Bump to rer3d+8.1.16
glughi Feb 16, 2022
ebe9cd3
Add control of the map from the keyboard
glughi Feb 25, 2022
3241743
Fix clipboard
glughi Mar 4, 2022
79999ff
Improve Kml polygon visualization
glughi Mar 7, 2022
e20c716
Temporary turn off search in catalog info.
glughi Mar 8, 2022
99a1038
Bump to rer3d+8.1.16-2
glughi Mar 8, 2022
f2259db
Merge remote-tracking branch 'TerriaJS/main' into upgrade-to-v8
glughi May 11, 2022
83057c3
Merge fixes
glughi May 23, 2022
daf49e4
Merge https://github.com/TerriaJS/terriajs into upgrade-to-v8
glughi May 23, 2022
efd470d
Merge fixes
glughi May 26, 2022
b353067
Refresh terrain when TerrainProvider item loaded or when its visibili…
glughi Jun 22, 2022
fdfa01d
Fix measure tool point move
glughi Jun 28, 2022
d4fee93
A new ColorPanel
glughi Jul 1, 2022
d11b263
Fix loading nested ArcGis groups
glughi Jul 5, 2022
335e496
Fix hideLayerAfterMinScaleDenominator in ArcGisMapServerCatalogItem
glughi Jul 25, 2022
6d83ade
Improve TerrainProvider refresh on workbench item visibility changes.
glughi Jul 25, 2022
b4d7988
Fix update Measurable distance
glughi Jul 27, 2022
47cd592
Fix html-to-react dependency
glughi Aug 2, 2022
21d7a21
Replace Nunito font from googleapis.com with Titillium from RER server.
glughi Sep 5, 2022
01ed73c
Fix base maps order
glughi Sep 7, 2022
52c6dc9
merge from pre-prettier-v2
glughi Sep 7, 2022
9cd2f91
Merge tag 'post-prettier-v2' into prettier2
glughi Sep 7, 2022
8747ef0
Merge branch 'main' of https://github.com/TerriaJS/terriajs into pret…
glughi Sep 7, 2022
6146984
Fix merge
glughi Sep 16, 2022
dd50c01
Run prettier
glughi Sep 16, 2022
dfd1592
Change movement amount in ZoomControl
glughi Sep 16, 2022
5abfcd3
Merge remote-tracking branch 'TerriaJS/main' into main
glughi Sep 19, 2022
5bdb4c6
Fix merge
glughi Sep 23, 2022
adefa6d
Fix merge
glughi Sep 27, 2022
9b6397c
Reduce amount of zoom to My Location
glughi Sep 27, 2022
a2c85f4
Run prettier
glughi Sep 27, 2022
34ce04c
Fix for linter
glughi Sep 27, 2022
adf38c1
Run prettier
glughi Sep 27, 2022
140b1cb
Main (#11)
glughi Oct 20, 2022
fa8d2d5
Fix merge
glughi Oct 20, 2022
f084067
Update repo url
glughi Oct 21, 2022
c018358
Change zoom movement amount in Leaflet
glughi Nov 9, 2022
27b6565
Fix merge of multiple init files workbench
glughi Nov 9, 2022
430365c
Fix width of "Add data from web" button
glughi Nov 10, 2022
0505fdf
Share link URL now use web init/catalog files.
glughi Nov 21, 2022
c83369e
Add RerSearchProvider call with bbox
glughi Dec 16, 2022
e1710dc
Prettify
glughi Dec 16, 2022
ace986e
Fix commit c83369e
glughi Dec 16, 2022
ae65760
Fix commit ace986e
glughi Dec 16, 2022
77caed9
Move map query info function in a tool
glughi Jan 25, 2023
55ae32b
Fix previous commit
glughi Jan 25, 2023
bfe8c7d
Measure tool split in two: line and area
glughi Feb 3, 2023
de2a5b5
Change description of MyLocation layer
glughi Feb 3, 2023
8351032
Fix tooltip of close button in ElevationPanel
glughi Feb 3, 2023
8a34e09
Minor improvements in the two measure tools
glughi Feb 3, 2023
7e17ad9
Allow adding points to existing segments even for closed polygons
glughi Feb 20, 2023
4da3cad
In ArcGisMapServer shows all the elements of the legend, regardless o…
glughi Mar 23, 2023
24a3fa4
Fix minor bug in UserDrawing
glughi Mar 23, 2023
f464af8
In MeasureTool allows you to open closed polylines by deleting the la…
glughi Mar 23, 2023
fa62e58
Refactorize the measurement and path data saved in the state of Terria
glughi Mar 23, 2023
4fe858c
Update MeasurePolygon icon
glughi Mar 23, 2023
7952f02
Improve the visibility of MyLocation placeholder
glughi Mar 23, 2023
6d18a38
Refactorize and improve MeasureTool and MeasureAreaTool
glughi Mar 23, 2023
7cb568b
Convert to TS and improve ElevationPanel, ElevationDownload and Eleva…
glughi Mar 23, 2023
aa88170
Adds samplingPathStep to state of Terria
glughi Mar 23, 2023
14dabf6
Working on Path and ElevationPanel
glughi Apr 4, 2023
96f40b1
Comment debug code
glughi Apr 4, 2023
82169b7
Invert drawing order of elevation charts
glughi Apr 4, 2023
3ba28ef
Link elevation chart to map
glughi May 8, 2023
9aab9db
Add missing chart placeholder icon
glughi May 9, 2023
8a11e93
Improve visibility of the chart placeholder on map
glughi May 11, 2023
55be4f7
Format altitude to show 1 decimal
glughi May 23, 2023
9aaff47
Minor changes to italian translation
glughi May 30, 2023
f891401
Add imageryProvider case to zoom function
glughi Jun 13, 2023
1c4593d
Fix zoomToDataSource
glughi Jun 13, 2023
6613ca5
Add a new feature to search within opened layers
glughi Jun 13, 2023
bce06aa
Remove useless MeasurableTraits
glughi Jun 16, 2023
182ed15
Add the GPX format and differentiate the export of lines and points
glughi Jun 20, 2023
66c54b0
Add a button to copy coordinates to clipboard
glughi Jun 20, 2023
be6d25e
Fix commit 6613ca5
glughi Jun 20, 2023
7cc377b
Fix warning
glughi Jun 20, 2023
1312ed5
Fix Cesium import at commit 182ed15
glughi Jun 20, 2023
ce91fa1
Improve coords of a point management in state
glughi Jun 20, 2023
ae2a1e3
Fix zoomTo MappableMixin with a single entity
glughi Jun 21, 2023
17295ed
Simplify prettified latitude and longitude.
glughi Jun 21, 2023
b1110c8
Slow down zoom on a new layer
glughi Jun 21, 2023
5034f48
Add "download as gpx" button to FeatureInfo
glughi Jun 21, 2023
828c510
Rearrange the bottons of the navigation menu
glughi Jun 21, 2023
9524c79
Add queryable properties to catalog items
glughi Jun 22, 2023
69daebb
Fix repainting when the visibility of an entity changes
glughi Jun 27, 2023
b4cf8a1
Add QueryPanel for QueryableCatalogItem
glughi Jul 12, 2023
baad487
Minor fix and improvements to QueryableCatalogItem components
glughi Jul 14, 2023
3923fed
Other minor fix and improvements to QueryableCatalogItem
glughi Jul 17, 2023
0cf4a37
Fix disappearing of MyLocation point
glughi Jul 19, 2023
67bc69a
Add "whereAmI" feature
glughi Jul 19, 2023
3ff3ca0
Improve the style of the mobile modal windows
glughi Jul 19, 2023
fd221e6
Show CoordsPanel only if its url is setted in config
glughi Jul 20, 2023
e2f647e
Add recharts package
glughi Jul 20, 2023
ba0452d
Fix showing QueryWindow button for all json items
glughi Jul 20, 2023
92e2d77
Minor fix to filters in QueryPanel
glughi Jul 21, 2023
576c4be
Refactorize WhereAmI feature
glughi Aug 1, 2023
95ca1cd
Add % slope to Path table
glughi Aug 3, 2023
953329f
Add number of features to QueryableCatalogItem
glughi Aug 3, 2023
35fdfa2
Move the button to open QueryPanel in FilterFeaturesSection
glughi Aug 3, 2023
b6394e7
Fix WhereAmI
glughi Aug 30, 2023
10ed06c
Add tables to Query UI
glughi Sep 5, 2023
96a98c6
Add MessageModal
glughi Sep 20, 2023
d9e8504
Refactorize and improve WhereAmI
glughi Sep 20, 2023
3adb3a6
Disable 3dsmoot mode
glughi Sep 20, 2023
22193c4
Add WhereAmI to 2D
glughi Sep 21, 2023
55bb695
Reduce the max width of FeatureInfoPanel
glughi Sep 22, 2023
9ce1a0c
Fix WhereAmI detailed message showed under FeatureInfoPanel
glughi Sep 22, 2023
eedcae9
Fix some labels and units of measurement in the area measuring tool
glughi Oct 23, 2023
8758027
Fix composite share link
glughi Oct 23, 2023
6d7a37b
Another fix to composite share link
glughi Oct 23, 2023
d0dbbf8
Add icons
glughi Nov 3, 2023
4183327
Add clusterizable traits to Geojson
glughi Nov 7, 2023
d9abbf4
Add useMyLocationFromDesktop to config
glughi Nov 7, 2023
3601d76
Add mouseAsInfoDefaultValue to config
glughi Nov 7, 2023
7e9e05b
Improve "selectToPreview" italian translation
glughi Nov 7, 2023
92a4dcf
Improve chartTable icon
glughi Nov 7, 2023
6bc49f6
Add a button to cancel all filters in FilterFeaturesSection
glughi Nov 7, 2023
75e0004
All charts in QueryChart use the same colors
glughi Nov 7, 2023
6b69caa
QueryTabTable shows only not filtered features.
glughi Nov 7, 2023
e5fa309
Fix currency and measureUnit in QueryWindow
glughi Nov 7, 2023
273eacd
Change Geojson cluster color
glughi Nov 8, 2023
e003e84
Ignore TS error using compact notation for currency
glughi Nov 8, 2023
30a45a8
Refactorize SearchableCatalogItemTraits
glughi Nov 21, 2023
fee4cce
Add SearchableCatalogItemTraits to ArcGisMapServerCatalogItem
glughi Nov 21, 2023
7970644
Translate a label to italian
glughi Nov 29, 2023
13526db
Add br after FeatureInfoDownload to ensure its visibility
glughi Nov 29, 2023
95f20d6
Add filter list to QueryChart
glughi Nov 29, 2023
61de0ff
Refactorize QueryTabAggregation
glughi Nov 29, 2023
7fe91fb
Add download CSV button to QueryTabTable
glughi Nov 29, 2023
c6f2c90
Add summary footer to QueryTabAggregation in pivot mode
glughi Dec 5, 2023
5ad5203
Minor changes to clustering GeoJson entities
glughi Dec 7, 2023
6a28ec9
Sort enum values in FilterFeatureSection
glughi Dec 7, 2023
d1e0d73
Fix 3d map crash after search with a clustered billboards layer
glughi Dec 7, 2023
1e377fe
Add useElevationMeanSeaLevel option to compute elevation correctly.
glughi Dec 12, 2023
ab0344e
A minor change in italian translation.
glughi Dec 18, 2023
4ad2629
Add "target" to MenuButton props.
glughi Dec 18, 2023
3b97060
Add management of user profiles
glughi Dec 20, 2023
72b7318
disableExport disable also FeatureInfo download
glughi Dec 20, 2023
09790e7
Add enumMultiValue to QueriableCatalogItem
glughi Dec 20, 2023
be9ccb5
Check bbox of WMS layers also in parent.
glughi Jan 10, 2024
5bac307
Enlarge pick features area
glughi Jan 10, 2024
f6420c6
Add Download screenshot to Profile manager
glughi Jan 11, 2024
04bb39d
Minor clusterization change.
glughi Jan 19, 2024
561db2e
Minor changes in QueryTabAggregation
glughi Jan 19, 2024
39682f5
Fix measure tools clamp to ground
glughi Jan 19, 2024
9637179
Improves render update on clamping mode change
glughi Jan 22, 2024
a96fddc
Improve templatint and check auth in FeatureInfoSection
glughi Jan 24, 2024
710ef17
Add "dictionary" type to QueryabkeCatalogItem
glughi Jan 29, 2024
64450ad
Prettify
glughi Jan 29, 2024
7d250aa
Minor changes
glughi Jan 29, 2024
ea00a9c
Mobile UI improvements
glughi Jan 29, 2024
46c0733
Show video in WelcomeMessage only if its url is specified
glughi Jan 29, 2024
396766a
Use Cesium 2D instead of Leaflet
glughi Jan 29, 2024
c54c88a
Fix Cesium imports
glughi Jan 30, 2024
5d33348
Use Leaflet for Preview and Minimap
glughi Feb 8, 2024
d2b961a
If feedbackUrl starts with "mailto:" opens the email client
glughi Feb 14, 2024
dda1e7f
Improve accessibility
glughi Feb 14, 2024
a242205
Fix missing perProfileInfoFields when userProfilesDefinition is defined
glughi Feb 15, 2024
aa14a25
Prettify WorkbenchButton
glughi Feb 15, 2024
9c973c6
Add pickSize parameter to change the side of the pick square
glughi Feb 15, 2024
0a5e64f
Don't show detailed WhereAmI button in FeatureInfoPanel if there is n…
glughi Feb 21, 2024
1d16659
Refactorize Path
glughi Feb 23, 2024
be9b542
Minor improvements to the RelatedMaps component
glughi Feb 28, 2024
46e0c68
If "feedbackUrl" is a mailto link, close the FeedbackForm automatically
glughi Mar 4, 2024
8fad875
Improve italian translation
glughi Mar 11, 2024
349dba6
Improve copy icon
glughi Mar 11, 2024
d6c3897
Remove copy layer from split function and add it as new feature
glughi Mar 11, 2024
c416b1b
Add useCesiumAs2DViewer parameter
glughi Mar 11, 2024
a917759
Show quality slider for raster layers also with Cesium2D
glughi Mar 12, 2024
2634890
Fix Timeline that doesn’t restart after it has been closed once
glughi Mar 14, 2024
6602233
Fix switch viewer mode in mobile ui
glughi Aug 29, 2024
44a975b
Update ci.yml to TerriaJS 8.7.7
glughi Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "14.x"
node-version-file: ".nvmrc"
- run: npm install -g yarn@^1.19.0 && yarn install

- name: Check formatting with prettier
run: yarn prettier-check

- name: Build TerriaJS tests
run: yarn gulp lint release -- --continue
run: yarn gulp lint release --continue
env:
NODE_OPTIONS: --max_old_space_size=4096

Expand Down
86 changes: 84 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,91 @@
# Change Log

#### rer3d+8.1.16-2

- Add control of the map from the keyboard
- Fix clipboard
- Improve Kml polygon visualization
- Temporary turn off search in catalog info

#### rer3d+8.1.16

- Review and merge customizations from rer3d v7
- Set default line stroke width to 4 px
- Add save and load functions to SharePanel
- Add MeasurableTraits
- Clamp to ground GeoJson, Kml, Gpx
- Add elevation to FeatureInfo
- Add CoordsPanel
- Remove elevation error in coordinates
- smallUserInterface improvements
- Increase Leaflet max zoom level from 18 to 21
- Add NominatimSearchProvider
- Add RerSearchProvider
- Fix BingMapSearchProvider zoom to location
- Add appendData trait to GeoJson
- Add RerFeatureServerTraits traits
- Clamp to ground lines of Measure Tool
- Disable extra credit links
- Set site title from config.json

#### next release (8.1.17)

#### next release (8.2.4)

#### next release (8.2.5)

#### next release (8.2.13)

#### next release (8.2.14)

#### next release (8.2.16)

#### next release (8.2.21)

- [The next improvement]

#### 8.2.20 - 2022-10-20

- Handle errors thrown in `ImageryProviderLeafletTileLayer.pickFeatures`. This fixes a bug where some WMTS layers break feature picking (in Leaflet/2D mode)

#### 8.2.19 - 2022-10-20

- Handle errors thrown in `Cesium._attachProviderCoordHooks`. This fixes a bug where some WMTS layers break feature picking.

#### 8.2.18 - 2022-10-19

- Fix `RelatedMaps` default broken URLs
- Add `mergeGroupsByName` trait to `GroupTraits` - this will merge all group members with the same name
- Fix bug with "propagate `knownContainerUniqueIds` across references and their target" - missing `runInAction`
- Add Carto v3 Maps API support for `table` and `query` endpoint (only GeoJSON - not MVT yet)
- Moved `activeStyle` default from `TableMixin` to `TableAutomaticStyleStratum`. The default `activeStyle` will now not pick a `hidden` `TableStyle`.
- Pin `flexsearch` version to `0.7.21` - as incorrect types are shipped in version `0.7.31`
- Only preload next timestep of timeseries rasters (WMS & ArcGIS MapServer) when animating the item on the map.
- Added error message if cesium stops rendering
- Add `enabled` to `TableStyleMapTraits` - which defaults to `true`
- Add `TableLabelStyleTraits` - this can be used to add `LabelGraphics` to point features (table or geojson)
- Add `TableTrailStyleTraits` - this can be used to add `PathGraphics` to time-series point features (table or geojson)
- Added missing `proxyCatalogItemUrl` to GeoJson, Shapefile, Gltf and AssImp catalog items.
- Added support for `OpenDataSoftCatalogGroup` with more than 100 datasets.
- Added `refreshIntervalTemplate` to `OpenDataSoftCatalogItemTraits` - this can be used to set `refreshInterval` using Mustache template rendered on ODS Dataset JSON object.
- Performance optimisation for time-series `TableMixin`
- Tweak `generateCatalogIndex` to use less memory. (+ add `diffCatalogIndex.js` script to show added/removed members between two catalog index files)
- Migrated `/#tools=1` to version 8.
- Removed dummy function `Terria.getUserProperty`.
- Removed unused version 7 React components.
- Fix Cesium `stoppedRenderingMessage`

#### 8.2.17 - 2022-09-23

- Fix region mapping feature `rowIds` incorrect type.

#### 8.2.16 - 2022-09-23

- Make srsName and outputFormat for WFS requests dynamic
- Added `excludeInactiveDatasets` to `CkanCatalogGroup` (`true` by default). This will filter out CKAN Datasets which have `state` or `data_state` (data.gov.au specific) **not** set to `"active"`.
- Fix `isTerriaFeatureData` bug - not checking `isJsonObject`
- [The next improvement]
- Add `.logError()` to all usage of `updateModelFromJson` where the `Result` object is ignored
- Move `RelatedMaps` to terriajs. They are now generated from `configParameters` (see [`doc/customizing/client-side-config.md`](./doc/customizing/client-side-config.md#relatedmap))

#### 8.2.15 - 2022-09-16

Expand Down Expand Up @@ -1057,6 +1138,7 @@
#### 8.0.0-alpha.69

- **Breaking changes**:

- Basemaps are now configured through catalog JSON instead of TerriaMap - see https://github.com/TerriaJS/terriajs/blob/13362e8b6e2a573b26e1697d9cfa5bae328f7cff/doc/customizing/initialization-files.md#basemaps

* Updated terriajs-cesium to version 1.79.1
Expand Down Expand Up @@ -2793,7 +2875,7 @@
### 2.3.0

- Share links now contain details about the picked point, picked features and currently selected feature.
- Reorganised the display of disclaimers so that they're triggered by `CatalogGroup` and `CatalogItem` models, which trigger `terria.disclaimerEvent`, which is listened to by DisclaimerViewModel`. `DisclaimerViewModel` must be added by the map that's using Terria.
- Reorganised the display of disclaimers so that they're triggered by `CatalogGroup` and `CatalogItem` models, which trigger `terria.disclaimerEvent`, which is listened to by DisclaimerViewModel`.`DisclaimerViewModel` must be added by the map that's using Terria.
- Added a mechanism for hiding the source of a CatalogItem in the view info popup.
- Added the `hideSource` flag to the init json for hiding the source of a CatalogItem in the View Info popup.
- Fixed a bug where `CatalogMember.load` would return a new promise every time it was called, instead of retaining the one in progress.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2012-2018 CSIRO's Data61 and Contributors
Copyright 2012 CSIRO's Data61 and Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 2 additions & 1 deletion architecture/0003-drop-ie11-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ via @soyarsauce
> the big list of who has already done so
> - marie made another point when we last talked about this, "4.7%" or whatever
> the ongoing ie11 usage number is both a huge and tiny number, for someone
> like `BIG_CORPORATE` they have the $ and resources ( & business case ) to
> like `BIG_CORPORATE` they have the \$ and resources ( & business case ) to
> save 0.5% of their users. we don't have that luxury
> - not withstanding the fact that we're still talking official support,
> terriajs is open source and the community can always carry that load if they
Expand Down Expand Up @@ -127,6 +127,7 @@ Our options laid out by @steve9164
3. Support IE11. We spend a week before the next TerriaJS v8 release to work on
all the layout problems and ensure it looks nice in IE11 before each
subsequent release.

4. Deprecate IE11 support ASAP. Add dismissable message to maps warning them
that on November 1, users will be unable to use new releases of Terria maps
in IE11. During the deprecation window, we will not use features that IE11
Expand Down
2 changes: 1 addition & 1 deletion buildprocess/configureWebpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function configureWebpack(
test: /\.js?$/,
include: path.dirname(require.resolve("terriajs-cesium")),
exclude: [
require.resolve("terriajs-cesium/Source/ThirdParty/zip"),
//require.resolve("terriajs-cesium/Source/ThirdParty/zip"),
require.resolve("terriajs-cesium/Source/Core/buildModuleUrl"),
require.resolve("terriajs-cesium/Source/Core/TaskProcessor")
],
Expand Down
57 changes: 57 additions & 0 deletions buildprocess/diffCatalogIndex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const fse = require("fs-extra");

/** Print list of datasets that have been removed/added between two catalog index
*
* Usage:
* `node diffCatalogIndex.js path-to-old path-to-new`
*/
const [oldPath, newPath] = process.argv.slice(2);

function sortIndex(index) {
return Object.keys(index)
.sort((a, b) => a.localeCompare(b))
.reduce((acc, currentKey) => {
acc[currentKey] = index[currentKey];
return acc;
}, {});
}

function itemPath(item, index) {
return (
(index[item.memberKnownContainerUniqueIds[0]]
? itemPath(index[item.memberKnownContainerUniqueIds[0]], index) + "/"
: "") + item.name
);
}

// Sorting isn't necessary here - but it makes it easier to compare JSON objects by hand if needed
const oldCatalogIndex = sortIndex(
JSON.parse(fse.readFileSync(oldPath).toString())
);

const newCatalogIndex = sortIndex(
JSON.parse(fse.readFileSync(newPath).toString())
);

const oldKeys = new Set(Object.keys(oldCatalogIndex));
const newKeys = new Set(Object.keys(newCatalogIndex));

console.log("Datasets which have been added");

newKeys.forEach((newKey) => {
if (!oldKeys.has(newKey)) {
const item = newCatalogIndex[newKey];
console.log(
`+ ${newCatalogIndex[newKey].name} (${itemPath(item, newCatalogIndex)})`
);
}
});

console.log("\n\nDatasets which have been removed");

oldKeys.forEach((oldKey) => {
if (!newKeys.has(oldKey)) {
const item = oldCatalogIndex[oldKey];
console.log(`- ${item.name} (${itemPath(item, oldCatalogIndex)})`);
}
});
Loading
Loading