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

feat(landing): adjust layers dropdown BM-1079 #3349

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ type CategoryMap = Map<string, { label: string; options: { label: string; value:

const Categories = [
'Basemaps',
'Scanned Aerial Imagery Basemaps',
'Satellite Imagery',
'Urban Aerial Photos',
'Rural Aerial Photos',
'Scanned Aerial Imagery Basemaps',
'Scanned Aerial Imagery',
'Event',
'Bathymetry',
Expand Down Expand Up @@ -225,6 +225,7 @@ export class LayerSwitcherDropdown extends Component<unknown, LayerSwitcherDropd
return 1;
}),
);

return { options: [...orderedCategories.values()], current, hidden, total };
}
}
Expand Down
7 changes: 7 additions & 0 deletions packages/landing/src/config.map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,13 @@ function addDefaultLayers(output: Map<string, LayerInfo>): void {
category: 'Basemaps',
},

{
id: 'topographic::topolite',
title: 'Topolite',
projections: new Set([EpsgCode.Google]),
category: 'Basemaps',
},

{
id: 'elevation',
title: 'Elevation',
Expand Down
Loading