
package.dist.es5.components.map.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react-map-gl Show documentation
Show all versions of react-map-gl Show documentation
React components for Mapbox GL JS-compatible libraries
The newest version!
import * as React from 'react';
import { MapboxProps } from '../mapbox/mapbox';
import { MapRef } from '../mapbox/create-ref';
import type { CSSProperties } from 'react';
import { GlobalSettings } from '../utils/set-globals';
import type { MapLib, MapInstance, MapStyle, Callbacks } from '../types';
export declare type MapContextValue = {
mapLib: MapLib;
map: MapRef;
};
export declare const MapContext: React.Context>;
declare type MapInitOptions = Omit;
export declare type MapProps = MapInitOptions & MapboxProps & GlobalSettings & {
mapLib?: MapLib | Promise>;
reuseMaps?: boolean;
/** Map container id */
id?: string;
/** Map container CSS style */
style?: CSSProperties;
children?: any;
};
export default function Map(props: MapProps, ref: React.Ref>, defaultLib: MapLib | Promise>): JSX.Element;
export {};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy