Skip to content

Commit

Permalink
fix(basemaps): Remove the elevation category for elevation layers. BM…
Browse files Browse the repository at this point in the history
…-1125 (#1148)

#### Motivation

We don't need `"category": "Elevation",` for elevation combined config.
We can delete if exists. The category is only for individual configs and
aerial config.

#### Modification

Remove category for combined elevation configs layers

#### Checklist

- [ ] Tests updated - local test
- [ ] Docs updated - no doc
- [x] Issue linked in Title
  • Loading branch information
Wentao-Kuang authored Nov 26, 2024
1 parent 326adaf commit 40e8e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/basemaps-github/make.cog.github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ export class MakeCogGithub {
}

this.setDefaultConfig(layer, Category.Elevation);
// Remove elevation layer.category if already exists
if (layer.category) delete layer.category;

// Prepare elevation tileset config
for (let i = 0; i < tileSet.layers.length; i++) {
Expand Down

0 comments on commit 40e8e0e

Please sign in to comment.