google-maps-js-api-react
Version:
Fast, tree-shakable, and light-weight React components and hooks for integrating Google Maps API functionality
1 lines • 672 B
Source Map (JSON)
{"version":3,"sources":["../../src/useGoogleMapsLoad/index.ts"],"names":["createUseLibrary_default","GoogleMapsLoader"],"mappings":";;;;;AAOA,IAAM,iBAAA,GAAoBA,0CAAiB,CAAAC,sCAAA,CAAiB,IAAI,CAAA;AAEhE,IAAO,yBAAQ,GAAA","file":"chunk-YIYJ62XF.cjs","sourcesContent":["import { GoogleMapsLoader } from 'google-maps-js-api-loader';\nimport createUseLibrary from '../utils/createUseLibrary';\n\n/**\n * Hook for loading google maps script or specific library/libraries\n * > Works only for [Suspense](https://react.dev/reference/react/Suspense) wrapped components\n */\nconst useGoogleMapsLoad = createUseLibrary(GoogleMapsLoader.load);\n\nexport default useGoogleMapsLoad;\n"]}