analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
32 lines • 1.36 kB
TypeScript
import type { ChoroplethMapProps } from './ChoroplethMap.types/index';
/**
* ChoroplethMap component for displaying regional performance data
*
* Displays an interactive Google Map with colored regions based on normalized values.
* Uses 4 color classes to represent different performance levels.
* Includes fade-in animation, smooth hover transitions, and zoom-to-region on click.
* NRE boundaries are rendered as a separate overlay with thicker strokes.
*
* @param data - Array of region data with GeoJSON and values
* @param apiKey - Google Maps API key
* @param title - Optional title for the map section
* @param loading - Loading state indicator
* @param bounds - Map bounds for initial view
* @param onRegionClick - Callback when a region is clicked
* @param className - Additional CSS classes
* @returns Choropleth map component
*
* @example
* ```tsx
* <ChoroplethMap
* data={regionData}
* apiKey="your-api-key"
* title="Performance por região"
* loading={false}
* onRegionClick={(region) => console.log(region)}
* />
* ```
*/
declare const ChoroplethMap: ({ data, apiKey, title, countLabel, loading, bounds, onRegionClick, headerAction, infoText, activeProfile, className, }: ChoroplethMapProps) => import("react/jsx-runtime").JSX.Element;
export default ChoroplethMap;
//# sourceMappingURL=ChoroplethMap.d.ts.map