UNPKG

@iminside/react-yandex-maps

Version:
52 lines (51 loc) 1.89 kB
import React from 'react'; import { WithYMapsProps } from '../hocs/withYMaps'; import { BaseGeoObjectProps } from './BaseGeoObject'; import { IDataManager, IGeometry, IPlacemarkOptions } from 'yandex-maps'; import { AnyObject, WithInstanceRef } from '../util/typing'; import { ErrorBoundaryProps } from '../hocs/with-error-boundary'; interface PlacemarkProps extends Omit<BaseGeoObjectProps, 'name'> { /** * Placemark [geometry](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Placemark-docpage/#param-geometry) */ geometry?: IGeometry[][][][] | number[][] | object; /** * Uncontrolled Placemark [geometry](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Placemark-docpage/#param-geometry) */ defaultGeometry?: IGeometry[][][][] | number[][] | object; /** * Placemark [properties](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Placemark-docpage/#param-properties) */ properties?: AnyObject | IDataManager; /** * Uncontrolled Placemark [properties](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Placemark-docpage/#param-properties) */ defaultProperties?: AnyObject | IDataManager; /** * Placemark [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Placemark-docpage/#param-options) */ options?: IPlacemarkOptions; /** * Uncontrolled Placemark [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Placemark-docpage/#param-options) */ defaultOptions?: IPlacemarkOptions; } export declare const Placemark: React.FC< React.PropsWithChildren< PlacemarkProps & WithYMapsProps & WithInstanceRef & ErrorBoundaryProps & AnyObject > >; declare const _default: React.FC< React.PropsWithChildren< PlacemarkProps & WithYMapsProps & WithInstanceRef & ErrorBoundaryProps & AnyObject > >; export default _default;