Changelog
8.2.11 - 2022-08-08
cesiumBaseUrl
to TerriaOptions
for overriding the default cesium base url settingitem
in WorkbenchItem and remove show
toggle for non Mappable
items.configParameters.regionMappingDefinitionsUrls
- to support multiple URLs for region mapping definitions - if multiple provided then the first matching region will be used (in order of URLs)
configParameters.regionMappingDefinitionsUrl
still exists but is deprecated - if defined it will override regionMappingDefinitionsUrls
TableMixin.matchRegionProvider
now returns RegionProvider
instead of string
region type. (which exists at regionProvider.regionType
)shouldShorten
property in catalog and story ShareUrl
shortenShareUrls
user propertyvideoCoverImageOpacity
option to HelpContentItem
so that we can fade the background of help video panels.HelpVideoPanel
s were being rendered resulting in autoplayed videos playing at random.getFeatureInfoUrl
and getFeatureInfoParameters
to WebMapServiceCatalogItemTraits
SearchBoxAndResults
Trans valuesgenerateCatalogIndex
for nested referencesSearchBox
handling of searchWithDebounce
when debounceDuration
prop changes. It now fushes instead of cancels.Changelog
8.2.10 - 2022-08-02
HasLocalData
interfaceGlTf
type definition (v2)gltfModelUrl
to GltfMixin
- this must be implemented by Models which use GltfMixin
GltfCatalogItem
to lib/Models/Catalog/Gltf/GltfCatalogItem.ts
assimpjs
(emscripten interface for the assimp library)
zip
files and HasLocalData
- but is not in getDataType
as the scene editor (closed source) is required to geo-referencedescription
to getDataType
- this will be displayed between Step 1 and Step 2GltfMixin
when showing in 2D mode (Leaflet)husky
to ^8.0.1
featureInfoUrlTemplate
on 2D vector features (#5660)GpxCatalogItem
now use GeojsonMixin
for loading data. (#5660)GeoRssCatalogItem
now use GeojsonMixin
for loading data. (#5660)v21
allowFeaturePicking
trait to Cesium3dTileMixin.allowFeaturePicking
set to false. Default is true.initFragmentPaths
support for hostnames different to configUrl
/applicationUrl
parseCustomHtmlToReact
(it was already present in parseCustomMarkdownToReact
)html-to-react
to 1.4.7
ViewState
React context provider to StandardUserInterface
- instead of passing viewState
or terria
props through components, please use
useViewState
hookwithViewState
HOCGlobalTerriaStyles
from StandardUserInterface
to separate fileExternalLinkWithWarning
component - this will replace all URLs in story body and add a warning message when URLs are clicked on.CesiumTerrainCatalogItem
to workbench didn't apply it when configParameters.cesiumTerrainAssetId
or configParameters.cesiumTerrainUrl
was set.CesiumTerrainCatalogItem
will now show a status In use
or Not in use
in the workbench.CesiumTerrainCatalogItem
to handle and report network errors.JulianDate.toIso8601
second precision to nanosecond - this prevents weird date strings with scientific/exponent notation (eg 2008-05-07T22:54:45.7275957614183426e-11Z
)Changelog
8.2.9 - 2022-07-13
html-to-react
to 1.4.5
due to ESM module in dependency (parse5
) breaking webpack"Deploy TerriaMap"
action to save yarn.lock
after sync-dependencies
(for debug purposes)SharePanel
includeStoryInShare
out of ViewState
into local stateFeatureInfoMixin
to FeatureInfoUrlTemplateMixin
featureInfoTemplate
and showStringIfPropertyValueIsNull
from FeatureInfoTraits
to MappableTraits
(all mappable catalog items)FeatureInfoUrlTemplateTraits
from all models that don't use FeatureInfoUrlTemplateMixin
showInChartPanel
default for mappable itemsChangelog
8.2.8 - 2022-07-04
itemProperties
split bugMultiPoint
are in GeoJSONGeoJsonTraits.useOutlineColorForLineFeatures
- If enabled, TableOutlineStyleTraits
will be used to color Line Features, otherwise TableColorStyleTraits
will be used.Line
, MultiLine
and MultiPoint
Terria.start
UserDrawing.messageHeader
can now also be () => string
Changelog
8.2.7 - 2022-06-30
WorkbenchItem
title heightInfoSections
in TableAutomaticStylesStratum
TableColorStyleTraits.legend
values in ColorStyleLegend
DateTimeSelectorSection.changeDateTime()
binding.RegionProvider.find*Variable
functions now try to match with and without whitespace (spaces, hyphens and underscores)regionMapping.json
descriptionsChartPanelDownloadButton
ChartPanelDownloadButton
will now only export columns which are visible in chartMixin
and Traits
inheritanceobserver
- ChartItem
, LineChart
, (chart) Legends
, ChartPanelDownloadButton
useTranslationIfExists
to applyTranslationIfExists
so it doesn't look like a React hook.applyTranslationIfExists
to avoid having stale translated strings when the language changes.StoryBuilder
remove all text colorFeatureInfoPanel
Loader
colorChangelog
8.2.6 - 2022-06-17
${terria.baseUrl}/languages/{{lng}}/translation.json
(TerriaJS assets) and "languageOverrides" loads from languages/{{lng}}/languageOverrides.json
(a TerriaMap's assets)lib/Language/*/translation.json
to wwwroot/languages/*/translation.json
.beforeRestoreAppState
hook for call to Terria.start()
which gets called before state is restored from share data.order
optional for ICompositeBarItem
.includes
path for url-loader
rule so that it doesn't incorrectly match package names with terriajs
as prefix.Changelog
8.2.5 - 2022-06-07
new Terria()
constructror would try to access document
and throw an error when running in NodeJS.Date
(additional to existing DateTime
) and support for ComplexData
Date
/DateTime
WPS Inputs.StandardUserInterface
and some other components. If your TerriaMap imports StandardUserInterface.jsx
remove the .jsx
extension so webpack can find the new .tsx
file.baseMapContrastColor
in region mapping/protomaps and remove MAX_SELECTABLE_DIMENSION_OPTIONS
.mapItems
can now return arbitrary Cesium primitives.terriajs-cesium
to 1.92.0
.BottomDock.handleClick
bindingcolor:inherit
to Button
Changelog
8.2.4 - 2022-05-23
1.19.0
- now using offical version.activeStyle
in TableMixin
- if no scalar
style is found then find first style with enum, text and finally region.modelDimensions
for string properties in option.value
(with the catalog member as context)CatalogIndex
typesterria.getModelByIdShareKeyOrCatalogIndex
.previewedItemId
to use new function terria.getModelByIdShareKeyOrCatalogIndex
. This will now use CatalogIndex if the previewedItemId
cannot be found in models or model share keys.DiffTool
preventing it from opening.BottomDock
and measureElement
components.GltfMixin
which resulted in some traits missing from GltfCatalogItem
and broke tools like the scene editor.config.leafletAttributionPrefix
. Attribution HTML string to show on Leaflet maps. Will use Leaflet's default if undefined. To hide Leaflet attribution - set leafletAttributionPrefix:""
helpPanel.mapUserGuide
translation stringsortMembersBy
for child Groups
and References
raiseError
convenience method to TerriaError
filterOutUndefined
typesTablePointStyleTraits
. For example marker = "hospital"
ProtomapsImageryProvider.duplicate()
to ProtomapsImageryProvider.clone()
.ts-essentials
library - "a set of high-quality, useful TypeScript types that make writing type-safe code easier"GeojsonMixin
improvements
uveMvt
is now useTableStylingAndProtomaps
useTableStylingAndProtomaps
is true, then protomaps is used for Line and Polygon features, and TableMixin
is used for Point features (see createLongitudeLatitudeFeaturePerRow()
)GeoJsonTraits.style
is now only supported by Cesium primitives (if defined, then useTableStylingAndProtomaps
will be false). Instead you can use TableStyleTraits
TableMixin
improvements
TableStyleMap
model, this is used to support enum
, bin
and null
styles for the following:
TablePointStyleTraits
- this supports markers (URLs or Maki icons) and rotation, width, height and pixelOffset.TableOutlineStyleTraits
- this supports color and width.TableAutomaticLegendStratum
TableStyleMaps
and TableColorMap
- for example, marker icons will be shown in legend with correct colors. See MergedStyleMapLegend
activeStyle
is now picked by finding the first column of type scalar
, and then the first column of type enum
, then text
and then finally region
.ArcGisFeatureServiceCatalogItem
now uses Table styling and protomaps
BaseModel.addObject
to handle adding objects to ArrayTraits
with idProperty="index"
and isRemoval
. The new object will be placed at the end of the array (across all strata).allowCustomInput
property to SelectableDimensionGroup
- if true then react-select
will allow custom user input.TableStylingWorkflow
improvements