Skip to content

V1MapInput

Defined in: packages/core/src/model/types.ts:196

The v1 surface shapes a normalizer consumes.

PropertyTypeDescriptionDefined in
className?string-packages/core/src/model/types.ts:207
configobjectOutputType-packages/core/src/model/types.ts:202
controls?object-packages/core/src/model/types.ts:205
controls.attribution?boolean | { compact?: boolean; customAttribution?: string | string[]; enabled?: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; }-packages/core/src/schemas/map.schema.ts:124
controls.fullscreen?boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; }-packages/core/src/schemas/map.schema.ts:123
controls.geolocate?boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; }-packages/core/src/schemas/map.schema.ts:121
controls.globe?boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; }-packages/core/src/schemas/map.schema.ts:127
controls.navigation?boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; }-packages/core/src/schemas/map.schema.ts:118
controls.scale?boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; }-packages/core/src/schemas/map.schema.ts:122
controls.terrain?boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; }-packages/core/src/schemas/map.schema.ts:130
description?stringThe map’s text alternative, authored at the root.packages/core/src/model/types.ts:201
idstring-packages/core/src/model/types.ts:197
images?Record<string, string | { pixelRatio?: number; sdf?: boolean; url: string; }>Named images for symbol layers and patterns, authored at the root.packages/core/src/model/types.ts:218
layers?(objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<{ id: ZodString; layout: ZodOptional<ZodObject<{ }, "passthrough", ZodTypeAny, objectOutputType<{ }, ZodTypeAny, "passthrough">, objectInputType<{ }, ZodTypeAny, "passthrough">>>; metadata: ZodOptional<ZodRecord<ZodString, ZodAny>>; paint: ZodOptional<ZodObject<{ background-color: ZodOptional<ZodUnion<[…, …]>>; background-opacity: ZodOptional<ZodUnion<[…, …]>>; background-pattern: ZodOptional<ZodUnion<[…, …]>>; }, "passthrough", ZodTypeAny, objectOutputType<{ background-color: ZodOptional<ZodUnion<…>>; background-opacity: ZodOptional<ZodUnion<…>>; background-pattern: ZodOptional<ZodUnion<…>>; }, ZodTypeAny, "passthrough">, objectInputType<{ background-color: ZodOptional<ZodUnion<…>>; background-opacity: ZodOptional<ZodUnion<…>>; background-pattern: ZodOptional<ZodUnion<…>>; }, ZodTypeAny, "passthrough">>>; type: ZodLiteral<"background">; }, ZodTypeAny, "passthrough">)[]-packages/core/src/model/types.ts:203
legend?false | { collapsed: boolean; items?: object[]; position: "top-left" | "top-right" | "bottom-left" | "bottom-right"; title?: string; }-packages/core/src/model/types.ts:206
light?objectThe style-spec light shading fill-extrusion faces, authored at the root.packages/core/src/model/types.ts:226
light.anchor?any[] | "map" | "viewport"-packages/core/src/schemas/map.schema.ts:772
light.color?string | any[]-packages/core/src/schemas/map.schema.ts:784
light.intensity?number | any[]-packages/core/src/schemas/map.schema.ts:787
light.position?any[] | [number, number, number]-packages/core/src/schemas/map.schema.ts:778
markers?object[]Standalone markers, authored at the document root.packages/core/src/model/types.ts:214
parameters?Record<string, unknown>Presentation metadata for state keys — label, type, range.packages/core/src/model/types.ts:212
popups?object[]Standalone popups, authored at the document root.packages/core/src/model/types.ts:216
projection?objectMap projection, authored at the root (v2: style.projection).packages/core/src/model/types.ts:224
projection.type"globe" | "mercator"-packages/core/src/schemas/map.schema.ts:748
sky?objectSky / fog / atmosphere, authored at the root (v2: style.sky).packages/core/src/model/types.ts:222
sky.atmosphere-blend?number | any[]-packages/core/src/schemas/map.schema.ts:718
sky.fog-color?string | any[]-packages/core/src/schemas/map.schema.ts:706
sky.fog-ground-blend?number | any[]-packages/core/src/schemas/map.schema.ts:715
sky.horizon-color?string | any[]-packages/core/src/schemas/map.schema.ts:703
sky.horizon-fog-blend?number | any[]-packages/core/src/schemas/map.schema.ts:712
sky.sky-color?string | any[]-packages/core/src/schemas/map.schema.ts:700
sky.sky-horizon-blend?number | any[]-packages/core/src/schemas/map.schema.ts:709
sources?Record<string, objectOutputType<{ attribution: ZodOptional<ZodString>; buffer: ZodOptional<ZodNumber>; cache: ZodOptional<ZodObject<{ enabled: ZodDefault<ZodBoolean>; ttl: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { enabled: boolean; ttl?: number; }, { enabled?: boolean; ttl?: number; }>>; cluster: ZodOptional<ZodBoolean>; clusterMaxZoom: ZodOptional<ZodNumber>; clusterMinPoints: ZodOptional<ZodNumber>; clusterProperties: ZodOptional<ZodRecord<ZodString, ZodAny>>; clusterRadius: ZodOptional<ZodNumber>; columns: ZodOptional<ZodUnion<[ZodLiteral<"all">, ZodArray<ZodString, "many">]>>; data: ZodOptional<ZodAny>; fetchStrategy: ZodDefault<ZodEnum<["runtime", "build", "hybrid"]>>; format: ZodOptional<ZodEnum<["pmtiles", "flatgeobuf", "geoparquet", "cog"]>>; generateId: ZodOptional<ZodBoolean>; lineMetrics: ZodOptional<ZodBoolean>; load: ZodOptional<ZodUnion<[ZodEnum<["all", "viewport"]>, ZodObject<{ maxFeatures: ZodOptional<…>; minzoom: ZodOptional<…>; mode: ZodOptional<…>; overviews: ZodOptional<…>; }, "strip", ZodTypeAny, { maxFeatures?: … | …; minzoom?: … | …; mode?: … | … | …; overviews?: … | … | …; }, { maxFeatures?: … | …; minzoom?: … | …; mode?: … | … | …; overviews?: … | … | …; }>]>>; loading: ZodOptional<ZodObject<{ enabled: ZodDefault<ZodBoolean>; message: ZodOptional<ZodString>; showErrorOverlay: ZodDefault<ZodBoolean>; }, "strip", ZodTypeAny, { enabled: boolean; message?: string; showErrorOverlay: boolean; }, { enabled?: boolean; message?: string; showErrorOverlay?: boolean; }>>; prefetchedData: ZodOptional<ZodAny>; promoteId: ZodOptional<ZodUnion<[ZodString, ZodRecord<ZodString, ZodString>]>>; refresh: ZodOptional<ZodEffects<ZodObject<{ refreshInterval: ZodOptional<ZodNumber>; timestampField: ZodOptional<ZodString>; updateKey: ZodOptional<ZodString>; updateStrategy: ZodDefault<ZodEnum<…>>; windowDuration: ZodOptional<ZodNumber>; windowSize: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { refreshInterval?: number; timestampField?: string; updateKey?: string; updateStrategy: "replace" | "merge" | "append-window"; windowDuration?: number; windowSize?: number; }, { refreshInterval?: number; timestampField?: string; updateKey?: string; updateStrategy?: "replace" | "merge" | "append-window"; windowDuration?: number; windowSize?: number; }>, { refreshInterval?: number; timestampField?: string; updateKey?: string; updateStrategy: "replace" | "merge" | "append-window"; windowDuration?: number; windowSize?: number; }, { refreshInterval?: number; timestampField?: string; updateKey?: string; updateStrategy?: "replace" | "merge" | "append-window"; windowDuration?: number; windowSize?: number; }>>; refreshInterval: ZodOptional<ZodNumber>; stream: ZodOptional<ZodObject<{ eventTypes: ZodOptional<ZodArray<ZodString, "many">>; protocols: ZodOptional<ZodUnion<[…, …]>>; reconnect: ZodDefault<ZodBoolean>; reconnectDelay: ZodDefault<ZodNumber>; reconnectMaxAttempts: ZodDefault<ZodNumber>; reconnectMaxDelay: ZodDefault<ZodNumber>; type: ZodEnum<["websocket", "sse"]>; url: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { eventTypes?: string[]; protocols?: string | string[]; reconnect: boolean; reconnectDelay: number; reconnectMaxAttempts: number; reconnectMaxDelay: number; type: "websocket" | "sse"; url?: string; }, { eventTypes?: string[]; protocols?: string | string[]; reconnect?: boolean; reconnectDelay?: number; reconnectMaxAttempts?: number; reconnectMaxDelay?: number; type: "websocket" | "sse"; url?: string; }>>; tolerance: ZodOptional<ZodNumber>; type: ZodLiteral<"geojson">; updateKey: ZodOptional<ZodString>; updateStrategy: ZodOptional<ZodEnum<["replace", "merge", "append-window"]>>; url: ZodOptional<ZodString>; }, ZodTypeAny, "passthrough"> | objectOutputType<{ attribution: ZodOptional<ZodString>; bounds: ZodOptional<ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>>; encoding: ZodOptional<ZodEnum<["mvt", "mlt"]>>; format: ZodOptional<ZodEnum<["pmtiles", "flatgeobuf", "geoparquet", "cog"]>>; maxzoom: ZodOptional<ZodNumber>; minzoom: ZodOptional<ZodNumber>; promoteId: ZodOptional<ZodUnion<[ZodString, ZodRecord<ZodString, ZodString>]>>; scheme: ZodOptional<ZodEnum<["xyz", "tms"]>>; tiles: ZodOptional<ZodArray<ZodEffects<ZodString, string, string>, "many">>; type: ZodLiteral<"vector">; url: ZodOptional<ZodString>; volatile: ZodOptional<ZodBoolean>; }, ZodTypeAny, "passthrough"> | objectOutputType<{ attribution: ZodOptional<ZodString>; bounds: ZodOptional<ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>>; colorRamp: ZodOptional<ZodObject<{ classes: ZodOptional<ZodNumber>; colors: ZodOptional<ZodArray<ZodString, "many">>; max: ZodNumber; min: ZodNumber; palette: ZodOptional<ZodString>; reverse: ZodOptional<ZodBoolean>; }, "strip", ZodTypeAny, { classes?: number; colors?: string[]; max: number; min: number; palette?: string; reverse?: boolean; }, { classes?: number; colors?: string[]; max: number; min: number; palette?: string; reverse?: boolean; }>>; format: ZodOptional<ZodEnum<["pmtiles", "flatgeobuf", "geoparquet", "cog"]>>; maxzoom: ZodOptional<ZodNumber>; minzoom: ZodOptional<ZodNumber>; scheme: ZodOptional<ZodEnum<["xyz", "tms"]>>; tiles: ZodOptional<ZodArray<ZodEffects<ZodString, string, string>, "many">>; tileSize: ZodDefault<ZodNumber>; type: ZodLiteral<"raster">; url: ZodOptional<ZodString>; volatile: ZodOptional<ZodBoolean>; }, ZodTypeAny, "passthrough"> | objectOutputType<{ attribution: ZodOptional<ZodString>; bounds: ZodOptional<ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>>; encoding: ZodDefault<ZodEnum<["terrarium", "mapbox", "custom"]>>; format: ZodOptional<ZodEnum<["pmtiles", "flatgeobuf", "geoparquet", "cog"]>>; maxzoom: ZodOptional<ZodNumber>; minzoom: ZodOptional<ZodNumber>; tiles: ZodOptional<ZodArray<ZodEffects<ZodString, string, string>, "many">>; tileSize: ZodDefault<ZodNumber>; type: ZodLiteral<"raster-dem">; url: ZodOptional<ZodString>; volatile: ZodOptional<ZodBoolean>; }, ZodTypeAny, "passthrough"> | objectOutputType<{ coordinates: ZodTuple<[ZodTuple<[ZodNumber, ZodNumber], null>, ZodTuple<[ZodNumber, ZodNumber], null>, ZodTuple<[ZodNumber, ZodNumber], null>, ZodTuple<[ZodNumber, ZodNumber], null>], null>; type: ZodLiteral<"image">; url: ZodString; }, ZodTypeAny, "passthrough"> | objectOutputType<{ coordinates: ZodTuple<[ZodTuple<[ZodNumber, ZodNumber], null>, ZodTuple<[ZodNumber, ZodNumber], null>, ZodTuple<[ZodNumber, ZodNumber], null>, ZodTuple<[ZodNumber, ZodNumber], null>], null>; type: ZodLiteral<"video">; urls: ZodArray<ZodString, "many">; }, ZodTypeAny, "passthrough"> | { attribution?: string; bands?: number[]; bounds?: [number, number, number, number]; cache?: { enabled: boolean; ttl?: number; }; encoding: "geotiff" | "rg-uv" | "scalar-r" | "nullschool-json"; grid?: { dx: number; dy: number; la1: number; lo1: number; nx: number; ny: number; }; loading?: { enabled: boolean; message?: string; showErrorOverlay: boolean; }; nodata?: number | { above?: number; below?: number; channel: "a" | "b" | "r" | "g"; equals?: number; }; range?: [number, number]; type: "grid"; units?: string; url: string; }>-packages/core/src/model/types.ts:204
state?Record<string, unknown>Spec-native runtime tunables, authored at the document root as in v2.packages/core/src/model/types.ts:210
style?string-packages/core/src/model/types.ts:208
terrain?objectMap-level 3D terrain, authored at the root (v2: style.terrain).packages/core/src/model/types.ts:220
terrain.exaggeration?number-packages/core/src/schemas/map.schema.ts:656
terrain.sourcestring-packages/core/src/schemas/map.schema.ts:652
title?stringThe map’s accessible name, authored at the root.packages/core/src/model/types.ts:199