V1MapInput
Defined in: packages/core/src/model/types.ts:178
The v1 surface shapes a normalizer consumes.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
className? | string | - | packages/core/src/model/types.ts:185 |
config | objectOutputType | - | packages/core/src/model/types.ts:180 |
controls? | object | - | packages/core/src/model/types.ts:183 |
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:123 |
controls.fullscreen? | boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; } | - | packages/core/src/schemas/map.schema.ts:122 |
controls.geolocate? | boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; } | - | packages/core/src/schemas/map.schema.ts:120 |
controls.globe? | boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; } | - | packages/core/src/schemas/map.schema.ts:126 |
controls.navigation? | boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; } | - | packages/core/src/schemas/map.schema.ts:117 |
controls.scale? | boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; } | - | packages/core/src/schemas/map.schema.ts:121 |
controls.terrain? | boolean | { enabled: boolean; position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; } | - | packages/core/src/schemas/map.schema.ts:129 |
id | string | - | packages/core/src/model/types.ts:179 |
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:196 |
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:181 |
legend? | object | - | packages/core/src/model/types.ts:184 |
legend.collapsed | boolean | - | packages/core/src/schemas/map.schema.ts:173 |
legend.items? | object[] | - | packages/core/src/schemas/map.schema.ts:174 |
legend.position | "top-left" | "top-right" | "bottom-left" | "bottom-right" | - | packages/core/src/schemas/map.schema.ts:170 |
legend.title? | string | - | packages/core/src/schemas/map.schema.ts:172 |
light? | object | The style-spec light shading fill-extrusion faces, authored at the root. | packages/core/src/model/types.ts:204 |
light.anchor? | any[] | "map" | "viewport" | - | packages/core/src/schemas/map.schema.ts:746 |
light.color? | string | any[] | - | packages/core/src/schemas/map.schema.ts:758 |
light.intensity? | number | any[] | - | packages/core/src/schemas/map.schema.ts:761 |
light.position? | any[] | [number, number, number] | - | packages/core/src/schemas/map.schema.ts:752 |
markers? | object[] | Standalone markers, authored at the document root. | packages/core/src/model/types.ts:192 |
parameters? | Record<string, unknown> | Presentation metadata for state keys — label, type, range. | packages/core/src/model/types.ts:190 |
popups? | object[] | Standalone popups, authored at the document root. | packages/core/src/model/types.ts:194 |
projection? | object | Map projection, authored at the root (v2: style.projection). | packages/core/src/model/types.ts:202 |
projection.type | "globe" | "mercator" | - | packages/core/src/schemas/map.schema.ts:722 |
sky? | object | Sky / fog / atmosphere, authored at the root (v2: style.sky). | packages/core/src/model/types.ts:200 |
sky.atmosphere-blend? | number | any[] | - | packages/core/src/schemas/map.schema.ts:692 |
sky.fog-color? | string | any[] | - | packages/core/src/schemas/map.schema.ts:680 |
sky.fog-ground-blend? | number | any[] | - | packages/core/src/schemas/map.schema.ts:689 |
sky.horizon-color? | string | any[] | - | packages/core/src/schemas/map.schema.ts:677 |
sky.horizon-fog-blend? | number | any[] | - | packages/core/src/schemas/map.schema.ts:686 |
sky.sky-color? | string | any[] | - | packages/core/src/schemas/map.schema.ts:674 |
sky.sky-horizon-blend? | number | any[] | - | packages/core/src/schemas/map.schema.ts:683 |
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>; data: ZodOptional<ZodAny>; fetchStrategy: ZodDefault<ZodEnum<["runtime", "build", "hybrid"]>>; generateId: ZodOptional<ZodBoolean>; lineMetrics: ZodOptional<ZodBoolean>; 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>>; 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>>; 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"]>>; 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">> | - | packages/core/src/model/types.ts:182 |
state? | Record<string, unknown> | Spec-native runtime tunables, authored at the document root as in v2. | packages/core/src/model/types.ts:188 |
style? | string | - | packages/core/src/model/types.ts:186 |
terrain? | object | Map-level 3D terrain, authored at the root (v2: style.terrain). | packages/core/src/model/types.ts:198 |
terrain.exaggeration? | number | - | packages/core/src/schemas/map.schema.ts:630 |
terrain.source | string | - | packages/core/src/schemas/map.schema.ts:626 |