Skip to content

Commit 40e8e0e

Browse files
authored
fix(basemaps): Remove the elevation category for elevation layers. BM-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
1 parent 326adaf commit 40e8e0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commands/basemaps-github/make.cog.github.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ export class MakeCogGithub {
309309
}
310310

311311
this.setDefaultConfig(layer, Category.Elevation);
312+
// Remove elevation layer.category if already exists
313+
if (layer.category) delete layer.category;
312314

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

0 commit comments

Comments
 (0)