LayerSourceSchema
constLayerSourceSchema:ZodUnion<[ZodEffects<ZodObject<{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>; },"passthrough",ZodTypeAny,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<…>;timestampField:ZodOptional<…>;updateKey:ZodOptional<…>;updateStrategy:ZodDefault<…>;windowDuration:ZodOptional<…>;windowSize:ZodOptional<…>; },"strip",ZodTypeAny, {refreshInterval?: … | …;timestampField?: … | …;updateKey?: … | …;updateStrategy: … | … | …;windowDuration?: … | …;windowSize?: … | …; }, {refreshInterval?: … | …;timestampField?: … | …;updateKey?: … | …;updateStrategy?: … | … | … | …;windowDuration?: … | …;windowSize?: … | …; }>, {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<…, …>>;protocols:ZodOptional<ZodUnion<…>>;reconnect:ZodDefault<ZodBoolean>;reconnectDelay:ZodDefault<ZodNumber>;reconnectMaxAttempts:ZodDefault<ZodNumber>;reconnectMaxDelay:ZodDefault<ZodNumber>;type:ZodEnum<[…, …]>;url:ZodOptional<ZodString>; },"strip",ZodTypeAny, {eventTypes?: …[];protocols?:string| …[];reconnect:boolean;reconnectDelay:number;reconnectMaxAttempts:number;reconnectMaxDelay:number;type:"websocket"|"sse";url?:string; }, {eventTypes?: …[];protocols?: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">,objectInputType<{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<…>;timestampField:ZodOptional<…>;updateKey:ZodOptional<…>;updateStrategy:ZodDefault<…>;windowDuration:ZodOptional<…>;windowSize:ZodOptional<…>; },"strip",ZodTypeAny, {refreshInterval?: … | …;timestampField?: … | …;updateKey?: … | …;updateStrategy: … | … | …;windowDuration?: … | …;windowSize?: … | …; }, {refreshInterval?: … | …;timestampField?: … | …;updateKey?: … | …;updateStrategy?: … | … | … | …;windowDuration?: … | …;windowSize?: … | …; }>, {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<…, …>>;protocols:ZodOptional<ZodUnion<…>>;reconnect:ZodDefault<ZodBoolean>;reconnectDelay:ZodDefault<ZodNumber>;reconnectMaxAttempts:ZodDefault<ZodNumber>;reconnectMaxDelay:ZodDefault<ZodNumber>;type:ZodEnum<[…, …]>;url:ZodOptional<ZodString>; },"strip",ZodTypeAny, {eventTypes?: …[];protocols?:string| …[];reconnect:boolean;reconnectDelay:number;reconnectMaxAttempts:number;reconnectMaxDelay:number;type:"websocket"|"sse";url?:string; }, {eventTypes?: …[];protocols?: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>;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">,objectInputType<{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">>,ZodEffects<ZodObject<{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>; },"passthrough",ZodTypeAny,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">,objectInputType<{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>;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">,objectInputType<{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">>,ZodEffects<ZodObject<{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>; },"passthrough",ZodTypeAny,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">,objectInputType<{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>>;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">,objectInputType<{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">>]>
Defined in: packages/core/src/schemas/source.schema.ts:797
Union of all layer source types.
Remarks
Section titled “Remarks”Use the type field to determine which source type is being used.
Example
Section titled “Example”const source: LayerSource = { type: 'geojson', url: 'https://example.com/data.geojson'};
// TypeScript knows the available fields based on typeif (source.type === 'geojson') { console.log(source.refreshInterval); // OK}