@maplibre-yaml/core 0.1.3-beta.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -583,6 +583,7 @@ var MapBlockSchema = z.object({
583
583
  className: z.string().optional().describe("CSS class name for container"),
584
584
  style: z.string().optional().describe("Inline CSS styles for container"),
585
585
  config: MapConfigSchema.describe("Map configuration"),
586
+ sources: z.record(z.string(), LayerSourceSchema).optional().describe("Map sources"),
586
587
  layers: z.array(LayerOrReferenceSchema).default([]).describe("Map layers"),
587
588
  controls: ControlsConfigSchema.optional().describe("Map controls"),
588
589
  legend: LegendConfigSchema.optional().describe("Legend configuration")
@@ -593,6 +594,7 @@ var MapFullPageBlockSchema = z.object({
593
594
  className: z.string().optional().describe("CSS class name for container"),
594
595
  style: z.string().optional().describe("Inline CSS styles for container"),
595
596
  config: MapConfigSchema.describe("Map configuration"),
597
+ sources: z.record(z.string(), LayerSourceSchema).optional().describe("Map sources"),
596
598
  layers: z.array(LayerOrReferenceSchema).default([]).describe("Map layers"),
597
599
  controls: ControlsConfigSchema.optional().describe("Map controls"),
598
600
  legend: LegendConfigSchema.optional().describe("Legend configuration")
@@ -696,6 +698,10 @@ var GlobalConfigSchema = z.object({
696
698
  description: z.string().optional().describe("Application description"),
697
699
  defaultMapStyle: z.string().url().optional().describe("Default map style URL"),
698
700
  theme: z.enum(["light", "dark"]).default("light").describe("Default theme"),
701
+ defaultZoom: z.number().min(0).max(24).optional().describe("Default zoom level for all maps"),
702
+ defaultCenter: LngLatSchema.optional().describe(
703
+ "Default center [lng, lat] for all maps"
704
+ ),
699
705
  dataFetching: z.object({
700
706
  defaultStrategy: z.enum(["runtime", "build", "hybrid"]).default("runtime").describe("Default fetch strategy"),
701
707
  timeout: z.number().min(1e3).default(3e4).describe("Default timeout in milliseconds"),