@maplibre-yaml/core 0.1.3 → 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.
- package/README.md +44 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +25 -12
- package/dist/components/index.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +23 -10
- package/dist/index.js.map +1 -1
- package/dist/{map-renderer-Br4guic2.d.ts → map-renderer-8-c51Ww7.d.ts} +3 -2
- package/dist/{page.schema-EBT_0Ojm.d.ts → page.schema-Cad2FFqh.d.ts} +1637 -1
- package/dist/register.browser.js +25 -12
- package/dist/register.browser.js.map +1 -1
- package/dist/register.d.ts +2 -2
- package/dist/register.js +25 -12
- package/dist/register.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -1638
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RootSchema, M as MapBlockSchema, S as ScrollytellingBlockSchema, L as LayerSchema, a as LegendConfigSchema, b as MapConfigSchema, C as ControlsConfigSchema } from './page.schema-
|
|
1
|
+
import { R as RootSchema, M as MapBlockSchema, S as ScrollytellingBlockSchema, L as LayerSchema, a as LegendConfigSchema, b as MapConfigSchema, c as LayerSourceSchema, C as ControlsConfigSchema } from './page.schema-Cad2FFqh.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import maplibregl, { Map } from 'maplibre-gl';
|
|
4
4
|
|
|
@@ -481,6 +481,7 @@ declare class LegendBuilder {
|
|
|
481
481
|
|
|
482
482
|
type MapConfig = z.infer<typeof MapConfigSchema>;
|
|
483
483
|
type Layer = z.infer<typeof LayerSchema>;
|
|
484
|
+
type LayerSource = z.infer<typeof LayerSourceSchema>;
|
|
484
485
|
type ControlsConfig = z.infer<typeof ControlsConfigSchema>;
|
|
485
486
|
type LegendConfig = z.infer<typeof LegendConfigSchema>;
|
|
486
487
|
/**
|
|
@@ -534,7 +535,7 @@ declare class MapRenderer {
|
|
|
534
535
|
private controlsManager;
|
|
535
536
|
private eventListeners;
|
|
536
537
|
private isLoaded;
|
|
537
|
-
constructor(container: string | HTMLElement, config: MapConfig, layers?: Layer[], options?: MapRendererOptions);
|
|
538
|
+
constructor(container: string | HTMLElement, config: MapConfig, layers?: Layer[], options?: MapRendererOptions, sources?: Record<string, LayerSource>);
|
|
538
539
|
/**
|
|
539
540
|
* Get the underlying MapLibre map instance
|
|
540
541
|
*/
|