package.dist.es5.components.use-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 { MapRef } from '../mapbox/create-ref';
import { MapInstance } from '../types';
declare type MountedMapsContextValue = {
maps: {
[id: string]: MapRef;
};
onMapMount: (map: MapRef, id: string) => void;
onMapUnmount: (id: string) => void;
};
export declare const MountedMapsContext: React.Context;
export declare const MapProvider: React.FC<{
children?: React.ReactNode;
}>;
export declare type MapCollection = {
[id: string]: MapRef | undefined;
current?: MapRef;
};
export declare function useMap(): MapCollection;
export {};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy