Skip to content

@npm9912/v-map


@npm9912/v-map / types/layerconfig / LayerConfig

Type Alias: LayerConfig

LayerConfig = { geojson?: string; geostylerStyle?: Style; groupId?: string; groupVisible?: boolean; opacity?: number; style?: StyleConfig; type: "geojson"; url?: string; visible?: boolean; zIndex?: number; } | { groupId?: string; groupVisible?: boolean; opacity?: number; type: "osm"; url?: string; visible?: boolean; zIndex?: number; } | { colorMap?: string | GeoStylerColorMap; groupId?: string; groupVisible?: boolean; nodata?: number; opacity?: number; type: "geotiff"; url?: string; valueRange?: [number, number]; visible?: boolean; zIndex?: number; } | { attributions?: string | string[]; groupId?: string; groupVisible?: boolean; maxZoom?: number; opacity?: number; options?: Record<string, unknown>; type: "xyz"; url: string; visible?: boolean; zIndex?: number; } | { attributions?: string | string[]; groupId?: string; groupVisible?: boolean; maxZoom?: number; minZoom?: number; opacity?: number; options?: Record<string, unknown>; params?: Record<string, string | number | boolean>; token?: string; type: "arcgis"; url: string; visible?: boolean; zIndex?: number; } | { apiKey: string; apiOptions?: string[]; groupId?: string; groupVisible?: boolean; highDpi?: boolean; imageFormat?: string; language?: string; layerTypes?: string[]; libraries?: string[]; mapType?: googleMapType; maxZoom?: number; opacity?: number; overlay?: boolean; region?: string; scale?: "scaleFactor1x" | "scaleFactor2x" | "scaleFactor4x"; styles?: Record<string, unknown>[] | string; type: "google"; visible?: boolean; zIndex?: number; } | { crs?: string; extraParams?: Record<string, string>; format?: string; groupId?: string; groupVisible?: boolean; layers: string; maxZoom?: number; minZoom?: number; opacity?: number; styles?: string; tileSize?: number; time?: string; transparent?: string; type: "wms"; url: string; version?: "1.1.1" | "1.3.0"; visible?: boolean; zIndex?: number; } | { data?: unknown; getFillColor?: Color; getRadius?: number; getTooltip?: (info) => unknown; groupId?: string; groupVisible?: boolean; onClick?: (info) => void; onHover?: (info) => void; opacity?: number; type: "scatterplot"; visible?: boolean; zIndex?: number; } | { color?: [number, number, number]; elevationData: string; elevationDecoder?: { b: number; g: number; offset: number; r: number; }; groupId?: string; groupVisible?: boolean; maxZoom?: number; meshMaxError?: number; minZoom?: number; opacity?: number; texture?: string; type: "terrain"; visible?: boolean; wireframe?: boolean; zIndex?: number; } | { geostylerStyle?: Style; groupId?: string; groupVisible?: boolean; opacity?: number; outputFormat?: string; params?: Record<string, string | number | boolean>; srsName?: string; style?: StyleConfig; type: "wfs"; typeName: string; url: string; version?: string; visible?: boolean; zIndex?: number; } | { coverageName: string; format?: string; groupId?: string; groupVisible?: boolean; maxZoom?: number; minZoom?: number; opacity?: number; params?: Record<string, string | number | boolean>; projection?: string; resolutions?: number[]; tileSize?: number; type: "wcs"; url: string; version?: string; visible?: boolean; zIndex?: number; } | { geostylerStyle?: Style; groupId?: string; groupVisible?: boolean; opacity?: number; style?: StyleConfig; type: "wkt"; url?: string; visible?: boolean; wkt?: string; zIndex?: number; } | { cesiumStyle?: Record<string, unknown>; groupId?: string; groupVisible?: boolean; opacity?: number; tilesetOptions?: Record<string, unknown>; type: "tile3d"; url: string; visible?: boolean; zIndex?: number; } | { color?: [number, number, number]; colorMap?: string | GeoStylerColorMap; elevationScale?: number; forceProjection?: boolean; groupId?: string; groupVisible?: boolean; maxZoom?: number; meshMaxError?: number; minZoom?: number; nodata?: number; opacity?: number; projection?: string; renderMode?: "terrain" | "colormap"; texture?: string; tileSize?: number; type: "terrain-geotiff"; url: string; valueRange?: [number, number]; visible?: boolean; wireframe?: boolean; zIndex?: number; }

Defined in: src/types/layerconfig.ts:7