UNPKG

@iminside/react-yandex-maps

Version:
52 lines (51 loc) 2.31 kB
import React from 'react'; import { WithYMapsProps } from '../hocs/withYMaps'; import { BaseControlProps } from './BaseControl'; import { data, IOptionManager } from 'yandex-maps'; import { AnyObject, WithInstanceRef } from '../util/typing'; import { ErrorBoundaryProps } from '../hocs/with-error-boundary'; interface TypeSelectorProps extends Omit<BaseControlProps, 'name'> { /** * [Array of constructors for map types](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.TypeSelector-docpage/#control.TypeSelector__param-parameters.mapTypes) or keys. If the parameter is omitted, the item is added to the standard set of map types. */ mapTypes?: 'yandex#map' | 'yandex#satellite' | 'yandex#hybrid'; /** * Uncontroled [array of constructors for map types](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.TypeSelector-docpage/#control.TypeSelector__param-parameters.mapTypes) or keys. If the parameter is omitted, the item is added to the standard set of map types. */ defaultMapTypes?: 'yandex#map' | 'yandex#satellite' | 'yandex#hybrid'; /** * Control [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.TypeSelector-docpage/#control.TypeSelector__param-parameters.options) */ options?: IOptionManager; /** * Uncontrolled control [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.TypeSelector-docpage/#control.TypeSelector__param-parameters.options) */ defaultOptions?: IOptionManager; /** * Control [state](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.TypeSelector-docpage/#control.TypeSelector__param-parameters.state) */ state?: data.Manager; /** * Uncontrolled control [state](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.TypeSelector-docpage/#control.TypeSelector__param-parameters.state) */ defaultState?: data.Manager; } export declare const TypeSelector: React.FC< React.PropsWithChildren< TypeSelectorProps & WithYMapsProps & WithInstanceRef & ErrorBoundaryProps & AnyObject > >; declare const _default: React.FC< React.PropsWithChildren< TypeSelectorProps & WithYMapsProps & WithInstanceRef & ErrorBoundaryProps & AnyObject > >; export default _default;