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.48 kB
Source Map (JSON)
{"version":3,"sources":["../../src/Polyline/index.ts"],"names":["handleComponent_default","MAPS"],"mappings":";;;;;;AAOA,IAAM,QAAW,GAAAA,yCAAA,CAqBf,CAACC,sBAAA,EAAM,UAAU,CAAC,CAAA;AAEpB,IAAO,gBAAQ,GAAA","file":"chunk-43AVIVL7.cjs","sourcesContent":["import type { ComponentProps } from 'react';\nimport type { PolyHandlers } from '../types';\nimport handleComponent from '../utils/handleComponent';\nimport { MAPS } from '../utils/constants';\n\nexport type PolylineProps = ComponentProps<typeof Polyline>;\n\nconst Polyline = handleComponent<\n google.maps.Polyline,\n PolyHandlers,\n {\n /**\n * If set to `true`, the user can drag this shape over the map. The {@link google.maps.PolylineOptions.geodesic geodesic} property defines the mode of dragging.\n */\n draggable: true;\n /**\n * If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment.\n */\n editable: true;\n /**\n * The ordered sequence of coordinates of the Polyline. This path may be specified using either a simple array of LatLngs, or an MVCArray of LatLngs. Note that if you pass a simple array, it will be converted to an MVCArray Inserting or removing LatLngs in the MVCArray will automatically update the polyline on the map.\n */\n path: true;\n /**\n * Whether this polyline is visible on the map.\n */\n visible: true;\n }\n>([MAPS, 'Polyline']);\n\nexport default Polyline;\n"]}