google-maps-js-api-react
Version:
Fast, tree-shakable, and light-weight React components and hooks for integrating Google Maps API functionality
1 lines • 3.63 kB
Source Map (JSON)
{"version":3,"sources":["../../src/Marker/index.ts"],"names":["handleComponent_default"],"mappings":";;;;;AAOA,IAAM,MAAS,GAAAA,yCAAA;AAAA,EA+Db,CAAC,UAAU,QAAQ,CAAA;AAAA,EACnB;AAAA,IACE,WAAA;AAAA,IACA,QAAA;AAAA,IACA,WAAA;AAAA,IACA,MAAA;AAAA,IACA,UAAA;AAAA,IACA,OAAA;AAAA,IACA,OAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA;AAEJ,CAAA;AAEA,IAAO,cAAQ,GAAA","file":"chunk-OVJSOKEA.cjs","sourcesContent":["import type { ComponentProps } from 'react';\nimport type { GetValue, MouseHandlers } from '../types';\nimport handleComponent from '../utils/handleComponent';\n\nexport type MarkerProps = ComponentProps<typeof Marker>;\n\n/** @deprecated */\nconst Marker = handleComponent<\n google.maps.Marker,\n {\n onAnimationChanged: [animation: GetValue<google.maps.Marker, 'animation'>];\n onClickableChanged: [clickable: GetValue<google.maps.Marker, 'clickable'>];\n onCursorChanged: [cursor: GetValue<google.maps.Marker, 'cursor'>];\n onDraggableChanged: [draggable: GetValue<google.maps.Marker, 'draggable'>];\n onFlatChanged: [];\n onIconChanged: [icon: GetValue<google.maps.Marker, 'icon'>];\n onPositionChanged: [position: GetValue<google.maps.Marker, 'position'>];\n onShapeChanged: [shape: GetValue<google.maps.Marker, 'shape'>];\n onTitleChanged: [title: GetValue<google.maps.Marker, 'title'>];\n onVisibleChanged: [visible: GetValue<google.maps.Marker, 'visible'>];\n onZIndexChanged: [zIndex: GetValue<google.maps.Marker, 'zIndex'>];\n } & MouseHandlers,\n {\n /**\n * Which animation to play when marker is added to a map.\n */\n animation: true;\n /**\n * If `true`, the marker receives mouse and touch events.\n */\n clickable: true;\n /**\n * Mouse cursor type to show on hover.\n */\n cursor: true;\n /**\n * If true, the marker can be dragged.\n */\n draggable: true;\n /**\n * Icon for the foreground. If a string is provided, it is treated as though it were an Icon with the string as url.\n */\n icon: true;\n /**\n * Adds a label to the marker. A marker label is a letter or number that appears inside a marker. The label can either be a string, or a MarkerLabel object. If provided and {@link google.maps.MarkerOptions.title title} is not provided, an accessibility text (e.g. for use with screen readers) will be added to the marker with the provided label's text. Please note that the label is currently only used for accessibility text for non-optimized markers.\n */\n label: true;\n /**\n * A number between 0.0, transparent, and 1.0, opaque.\n */\n opacity: true;\n position: true;\n /**\n * Image map region definition used for drag/click.\n */\n shape: true;\n /**\n * Rollover text. If provided, an accessibility text (e.g. for use with screen readers) will be added to the marker with the provided value. Please note that the title is currently only used for accessibility text for non-optimized markers.\n */\n title: true;\n /**\n * If `true`, the marker is visible.\n */\n visible: true;\n /**\n * All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical position on screen, with lower markers appearing in front of markers further up the screen.\n */\n zIndex: true;\n }\n>(\n ['marker', 'Marker'],\n [\n 'animation',\n 'cursor',\n 'draggable',\n 'icon',\n 'position',\n 'shape',\n 'title',\n 'visible',\n 'zIndex',\n ]\n);\n\nexport default Marker;\n"]}