UNPKG

@iminside/react-yandex-maps

Version:
52 lines (51 loc) 2.27 kB
import React from 'react'; import { WithYMapsProps } from '../hocs/withYMaps'; import { BaseControlProps } from './BaseControl'; import { control } from 'yandex-maps'; import { AnyObject, WithInstanceRef } from '../util/typing'; import { ErrorBoundaryProps } from '../hocs/with-error-boundary'; interface GeolocationControlProps extends Omit<BaseControlProps, 'name'> { /** * Control [data](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.GeolocationControl-docpage/#control.GeolocationControl__param-parameters.data) */ data?: control.IGeolocationControlParameters['data']; /** * Uncontrolled control [data](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.GeolocationControl-docpage/#control.GeolocationControl__param-parameters.data) */ defaultData?: control.IGeolocationControlParameters['data']; /** * Control [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.GeolocationControl-docpage/#control.GeolocationControl__param-parameters.options) */ options?: control.IGeolocationControlParameters['options']; /** * Uncontrolled control [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.GeolocationControl-docpage/#control.GeolocationControl__param-parameters.options) */ defaultOptions?: control.IGeolocationControlParameters['options']; /** * Control [state](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.GeolocationControl-docpage/#control.GeolocationControl__param-parameters.state) */ state?: control.IGeolocationControlParameters['state']; /** * Uncontrolled control [state](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.GeolocationControl-docpage/#control.GeolocationControl__param-parameters.state) */ defaultState?: control.IGeolocationControlParameters['state']; } export declare const GeolocationControl: React.FC< React.PropsWithChildren< GeolocationControlProps & WithYMapsProps & WithInstanceRef & ErrorBoundaryProps & AnyObject > >; declare const _default: React.FC< React.PropsWithChildren< GeolocationControlProps & WithYMapsProps & WithInstanceRef & ErrorBoundaryProps & AnyObject > >; export default _default;