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

fix basemaps ordering #7537

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix basemaps ordering #7537

wants to merge 1 commit into from

Conversation

zoran995
Copy link
Collaborator

@zoran995 zoran995 commented Mar 7, 2025

What this PR does

Fixes #7169

Supersedes the #7170 since there was no feedback on it by PR author.

Test me

How should reviewers test this? (Hint: If you want to provide a test catalog item, create a Gist of its catalog JSON, add its url and your branch name to this url: http://ci.terria.io/<branch name>/#clean&<raw url of your gist> , and then paste that in the body of this PR)

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 mentioned this pull request Mar 7, 2025
4 tasks
if (baseMapItem.item && !ModelReference.isRemoved(baseMapItem.item)) {
const itemModel = this.terria.getModelById(
BaseModel,
String(baseMapItem.item)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doubt: What's the reason we need to wrap with String() here?

- Remove unused pmtiles dependency.
- Update data styling docs
- Remove unused babel/eslint-parser dependency.
- Hide 'Story' button in mobile view if story panel is active.
- Update empty workbench help text
- Remove unused `arraysAreEqual`, `autoUpdate`, `flattenNested`, `freezeInDebug`, `isPromise`, `loadJsonp`, `OrUndefined`, and `superGet` files from lib/Core.
- Fix basemaps order
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion: It might be good to add that it now follows the order given by enabledBaseMaps setting.

Copy link
Collaborator

@na9da na9da left a comment

Choose a reason for hiding this comment

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

@zoran995 - LGTM.
Just a couple of comments.

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.

Basemaps sorting bug
2 participants