UNPKG

google-maps-js-api-react

Version:

Fast, tree-shakable, and light-weight React components and hooks for integrating Google Maps API functionality

1 lines 1.19 kB
{"version":3,"sources":["../../src/DrawingManager/index.ts"],"names":["handleComponent_default"],"mappings":";;;;;AAKA,IAAM,cAAiB,GAAAA,yCAAA,CAgBrB,CAAC,SAAA,EAAW,gBAAgB,CAAC,CAAA;AAE/B,IAAO,sBAAQ,GAAA","file":"chunk-ZDW2HXYM.cjs","sourcesContent":["import type { ComponentProps } from 'react';\nimport handleComponent from '../utils/handleComponent';\n\nexport type DrawingManagerProps = ComponentProps<typeof DrawingManager>;\n\nconst DrawingManager = handleComponent<\n google.maps.drawing.DrawingManager,\n {\n onCircleComplete: [circle: google.maps.Circle];\n onMarkerComplete: [marker: google.maps.Marker];\n onOverlayComplete: [event: google.maps.drawing.OverlayCompleteEvent];\n onPolygonComplete: [polygon: google.maps.Polygon];\n onPolylineComplete: [polyline: google.maps.Polyline];\n onRectangleComplete: [rectangle: google.maps.Rectangle];\n },\n {\n /**\n * The DrawingManager's drawing mode, which defines the type of overlay to be added on the map. Accepted values are `'marker'`, `'polygon'`, `'polyline'`, `'rectangle'`, `'circle'`.\n */\n drawingMode: true;\n }\n>(['drawing', 'DrawingManager']);\n\nexport default DrawingManager;\n"]}