All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.es5.components.use-map.d.ts Maven / Gradle / Ivy

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