@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
31 lines • 1.43 kB
TypeScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { FeatureHoverProps, MapProps } from "../Map";
import { MapPopupProps } from "../MapPopup";
import { IMapDataProps } from "../../types";
import type GeoJSON from 'geojson';
export interface SCFMapProps {
data: Array<IMapDataProps>;
geoJSONPath: string;
mapboxAccessToken: string;
mapPopupProps?: Partial<MapPopupProps>;
mapProps?: Omit<Partial<MapProps>, 'mapboxAccessToken'>;
onHoverInfo?: FeatureHoverProps;
processDataFn?: (featureCollection: GeoJSON.FeatureCollection<GeoJSON.Geometry>, data: Array<IMapDataProps>) => GeoJSON.FeatureCollection<GeoJSON.Geometry>;
selectedSCF?: Array<string>;
setOnHoverInfo?: (newHoverInfo: FeatureHoverProps | undefined) => void;
tooltipElement?: React.ReactElement;
}
/**
* SCFMap component which under the hood uses mapbox and react-map-gl. For this to work it's necessary
* to add the link bellow in the head of your page: <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v2.7.0/mapbox-gl.css' rel='stylesheet' />
* For more information: https://visgl.github.io/react-map-gl/docs/get-started/get-started#styling
*/
export declare const SCFMap: React.FC<SCFMapProps>;
export default SCFMap;
//# sourceMappingURL=index.d.ts.map