@remotion/maptiler 4.0.514 → 4.0.516

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.
@@ -0,0 +1,8 @@
1
+ import { type HeatmapLayerOptions } from '@maptiler/sdk';
2
+ import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
3
+ export type MapHeatmapProps = InteractiveBaseProps & Omit<HeatmapLayerOptions, 'layerId' | 'sourceId'> & {
4
+ readonly controls?: SequenceControls;
5
+ readonly layerId: string;
6
+ readonly sourceId?: string;
7
+ };
8
+ export declare const MapHeatmap: (props: MapHeatmapProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { LayerSpecification } from '@maptiler/sdk';
2
+ export type MapLayerProps = {
3
+ readonly beforeId?: string;
4
+ readonly layer: LayerSpecification;
5
+ };
6
+ export declare const MapLayer: ({ beforeId, layer }: MapLayerProps) => null;
@@ -1,8 +1,39 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type InteractiveBaseProps, type InteractiveTransformProps, type SequenceControls } from 'remotion';
3
+ export type MapOverlayAnchor = 'bottom' | 'bottom-left' | 'bottom-right' | 'center' | 'left' | 'right' | 'top' | 'top-left' | 'top-right';
4
+ export type MapOverlayProps = InteractiveBaseProps & InteractiveTransformProps & {
5
+ readonly anchor?: MapOverlayAnchor;
6
+ readonly children?: ReactNode;
7
+ readonly controls?: SequenceControls;
8
+ readonly latitude: number;
9
+ readonly longitude: number;
10
+ readonly offsetX?: number;
11
+ readonly offsetY?: number;
12
+ readonly opacity?: number;
13
+ readonly rotation?: number;
14
+ readonly rotationAlignment?: 'map' | 'viewport';
15
+ };
3
16
  export declare const MapOverlay: import("react").ComponentType<InteractiveBaseProps & InteractiveTransformProps & {
17
+ readonly anchor?: MapOverlayAnchor | undefined;
18
+ readonly children?: ReactNode;
19
+ readonly controls?: SequenceControls | undefined;
20
+ readonly latitude: number;
21
+ readonly longitude: number;
22
+ readonly offsetX?: number | undefined;
23
+ readonly offsetY?: number | undefined;
24
+ readonly opacity?: number | undefined;
25
+ readonly rotation?: number | undefined;
26
+ readonly rotationAlignment?: "map" | "viewport" | undefined;
27
+ } & import("react").RefAttributes<HTMLDivElement>>;
28
+ export declare const MapMarker: import("react").ComponentType<InteractiveBaseProps & InteractiveTransformProps & {
29
+ readonly anchor?: MapOverlayAnchor | undefined;
4
30
  readonly children?: ReactNode;
5
31
  readonly controls?: SequenceControls | undefined;
6
32
  readonly latitude: number;
7
33
  readonly longitude: number;
34
+ readonly offsetX?: number | undefined;
35
+ readonly offsetY?: number | undefined;
36
+ readonly opacity?: number | undefined;
37
+ readonly rotation?: number | undefined;
38
+ readonly rotationAlignment?: "map" | "viewport" | undefined;
8
39
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import { type PointLayerOptions } from '@maptiler/sdk';
2
+ import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
3
+ export type MapPointProps = InteractiveBaseProps & Omit<PointLayerOptions, 'layerId' | 'sourceId'> & {
4
+ readonly controls?: SequenceControls;
5
+ readonly layerId: string;
6
+ readonly sourceId?: string;
7
+ };
8
+ export declare const MapPoint: (props: MapPointProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { type PolygonLayerOptions } from '@maptiler/sdk';
2
+ import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
3
+ export type MapPolygonFeature = {
4
+ readonly geometry: {
5
+ readonly coordinates: number[][][];
6
+ readonly type: 'Polygon';
7
+ } | {
8
+ readonly coordinates: number[][][][];
9
+ readonly type: 'MultiPolygon';
10
+ };
11
+ readonly properties: Record<string, unknown> | null;
12
+ readonly type: 'Feature';
13
+ };
14
+ export type MapPolygonData = MapPolygonFeature | PolygonLayerOptions['data'];
15
+ export type MapPolygonProps = InteractiveBaseProps & Omit<PolygonLayerOptions, 'data' | 'fillOpacity' | 'layerId' | 'outlinePosition' | 'sourceId'> & {
16
+ readonly controls?: SequenceControls;
17
+ readonly data: MapPolygonData;
18
+ readonly fillOpacity?: number | PolygonLayerOptions['fillOpacity'];
19
+ readonly layerId: string;
20
+ readonly outlinePosition?: PolygonLayerOptions['outlinePosition'];
21
+ readonly progress?: number;
22
+ readonly sourceId?: string;
23
+ };
24
+ export declare const MapPolygon: (props: MapPolygonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { type PolylineLayerOptions } from '@maptiler/sdk';
2
+ import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
3
+ export type MapPolylineFeature = {
4
+ readonly geometry: {
5
+ readonly coordinates: number[][];
6
+ readonly type: 'LineString';
7
+ } | {
8
+ readonly coordinates: number[][][];
9
+ readonly type: 'MultiLineString';
10
+ };
11
+ readonly properties: Record<string, unknown> | null;
12
+ readonly type: 'Feature';
13
+ };
14
+ export type MapPolylineData = MapPolylineFeature | PolylineLayerOptions['data'];
15
+ export type MapPolylineProps = InteractiveBaseProps & Omit<PolylineLayerOptions, 'data' | 'layerId' | 'sourceId'> & {
16
+ readonly controls?: SequenceControls;
17
+ readonly data: MapPolylineData;
18
+ readonly layerId: string;
19
+ readonly progress?: number;
20
+ readonly sourceId?: string;
21
+ };
22
+ export declare const MapPolyline: (props: MapPolylineProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { SourceSpecification } from '@maptiler/sdk';
2
+ import { type ReactNode } from 'react';
3
+ export type MapSourceProps = {
4
+ readonly children?: ReactNode;
5
+ readonly id: string;
6
+ readonly source: SourceSpecification;
7
+ };
8
+ export declare const MapSource: ({ children, id, source }: MapSourceProps) => ReactNode;
@@ -2,5 +2,7 @@ import type { Map as MapTilerMap } from '@maptiler/sdk';
2
2
  export type MapTilerContextValue = {
3
3
  readonly cameraRevision: number;
4
4
  readonly map: MapTilerMap | null;
5
+ readonly styleRevision: number;
5
6
  };
6
7
  export declare const MapTilerContext: import("react").Context<MapTilerContextValue>;
8
+ export declare const useMapTiler: () => MapTilerContextValue;
@@ -1,13 +1,31 @@
1
+ import { Map as MapTilerMap, type MapOptions } from '@maptiler/sdk';
1
2
  import '@maptiler/sdk/style.css';
2
- import type { ReactNode } from 'react';
3
+ import type { ComponentType, ReactNode } from 'react';
3
4
  import { type InteractiveBaseProps, type SequenceControls } from 'remotion';
4
- export declare const MapViewport: import("react").ComponentType<InteractiveBaseProps & {
5
+ export type MapViewportMapOptions = Omit<MapOptions, 'apiKey' | 'bearing' | 'center' | 'container' | 'fadeDuration' | 'interactive' | 'language' | 'padding' | 'pitch' | 'projection' | 'style' | 'terrain' | 'terrainExaggeration' | 'zoom'>;
6
+ export type MapAdministrativeBorders = 'all' | 'country-only' | 'none';
7
+ export type MapViewportProps = InteractiveBaseProps & {
5
8
  readonly apiKey: string | null;
6
- readonly backgroundColor?: string | undefined;
7
- readonly bearing?: number | undefined;
8
- readonly centerLatitude?: number | undefined;
9
- readonly centerLongitude?: number | undefined;
9
+ readonly backgroundColor?: string;
10
+ readonly bearing?: number;
11
+ readonly centerLatitude?: number;
12
+ readonly centerLongitude?: number;
10
13
  readonly children?: ReactNode;
11
- readonly controls?: SequenceControls | undefined;
12
- readonly zoom?: number | undefined;
13
- } & import("react").RefAttributes<HTMLDivElement>>;
14
+ readonly controls?: SequenceControls;
15
+ readonly language?: MapOptions['language'];
16
+ readonly mapOptions?: MapViewportMapOptions;
17
+ readonly mapStyle?: MapOptions['style'];
18
+ readonly onMapReady?: (map: MapTilerMap) => void;
19
+ readonly paddingBottom?: number;
20
+ readonly paddingLeft?: number;
21
+ readonly paddingRight?: number;
22
+ readonly paddingTop?: number;
23
+ readonly pitch?: number;
24
+ readonly projection?: MapOptions['projection'];
25
+ readonly showLabels?: boolean;
26
+ readonly administrativeBorders?: MapAdministrativeBorders;
27
+ readonly terrain?: boolean;
28
+ readonly terrainExaggeration?: number;
29
+ readonly zoom?: number;
30
+ };
31
+ export declare const MapViewport: ComponentType<MapViewportProps>;
@@ -0,0 +1,7 @@
1
+ import type { Map as MapTilerMap } from '@maptiler/sdk';
2
+ export declare const delayMapRender: ({ continueRender, delayRender, label, map, }: {
3
+ readonly continueRender: (handle: number) => void;
4
+ readonly delayRender: (label?: string | undefined) => number;
5
+ readonly label: string;
6
+ readonly map: MapTilerMap;
7
+ }) => () => void;