Skip to content

extract terria config to observable store#7819

Open
zoran995 wants to merge 3 commits intomainfrom
extract-config
Open

extract terria config to observable store#7819
zoran995 wants to merge 3 commits intomainfrom
extract-config

Conversation

@zoran995
Copy link
Copy Markdown
Collaborator

@zoran995 zoran995 commented Apr 3, 2026

What this PR does

Fixes #

Extract config parameters from the Terria class and create an observable data store.

Test me

Ensure that all existing parameters are available in the new store.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

@zoran995 zoran995 requested review from ljowen and na9da April 8, 2026 22:30

this.appName = this.configParameters.appName ?? this.appName;
this.supportEmail = this.configParameters.supportEmail ?? this.supportEmail;
applyConfig(config: Partial<ConfigParameters>): void {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this is a potentially breaking change (i.e. Maps could be calling terria.updateParameters() directly should this be part of a major release? I couldn't find examples in our own map repos though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants