@vertigis/viewer-spec
Version:
VertiGIS Viewer Specification
38 lines (37 loc) • 1.13 kB
TypeScript
import type { ModelProperties } from "../common/ModelProperties.js";
/**
* Represent sources of portal items.
*/
export type Source = "my-content" | "my-groups" | "my-favorites" | "organization" | "public";
/**
* Properties that are used for the Portal service.
*/
export interface PortalModelProperties extends ModelProperties {
/**
* Tags by which the Choose Layer modal will filter out the displayed
* layers.
*/
layerFilterTags?: string[];
/**
* Optionally specify the source that will be initially selected in the
* Choose Layer modal. If not specified we default to "organization".
*/
initialSource?: Source;
/**
* The sources that we want to expose by default in the Choose Layer modal.
* If not specified we include all sources.
*/
sources?: Source[];
/**
* Should the item picker show filter chips?
*/
showFilterChips?: boolean;
/**
* Should the item picker show filter menus?
*/
showFilterMenus?: boolean;
/**
* Should the item picker show the filter panel?
*/
showFilterPanel?: boolean;
}