export const BASEMAP_IDS = ['standard', 'satellite'] as const;

export type BasemapId = (typeof BASEMAP_IDS)[number];

export interface BasemapDefinition {
  id: BasemapId;
  label: string;
}

export const BASEMAPS: BasemapDefinition[] = [
  { id: 'standard', label: 'Map' },
  { id: 'satellite', label: 'Satellite' },
];

const BASEMAP_ID_SET = new Set<string>(BASEMAP_IDS);

export function isBasemapId(value: string): value is BasemapId {
  return BASEMAP_ID_SET.has(value);
}
