YMapContainer

The YMapContainer class is a wrapper component that wraps arbitrary components of react and vue libraries and passes the necessary parameters to them.

Usage example

 const container = <YMapContainer>
     <YMapMarker coordinates={[55.76, 37.64]}><div className="point"></div></YMapMarker>
     <div>Some text</div>
 </YMapContainer>;

 ReactDOM.render(<YMap>{container}</YMap, document.getElementById('root'));

Constructor

new YMapContainer(props, options?)

Constructor parameters

Parameter

Type

Description

props

ComputedYMapContainerProps<unknown>

Value of input props.

options?

ComplexOptions<YMap>

Optional object parameters.

Inherited from

YMapGroupEntity.constructor

new YMapContainer(props, children?, options?)

Constructor parameters

Parameter

Type

props

ComputedYMapContainerProps<unknown>

children?

YMap <unknown, {}>[]

options?

Omit<ComplexOptions<YMap>, "children">

Inherited from

YMapGroupEntity.constructor

Props

static defaultProps: Object

Parameters

Parameter

Type

tagName

string

Methods

addChild

addChild(child, index?): YMapContainer

Parameters

Parameter

Type

child

YMapEntity<unknown, {}>

index?

number

Returns

YMapContainer

Inherited from

YMapGroupEntity.addChild

removeChild

removeChild(child): YMapContainer

Parameters

Parameter

Type

child

YMapEntity<unknown, {}>

Returns

YMapContainer

Inherited from

YMapGroupEntity.removeChild

update

update(changedProps): void

Parameters

Parameter

Type

Description

changedProps

Partial<ComputedYMapContainerProps<unknown>>

New props values.

Returns

void

Inherited from

YMapGroupEntity.update

Previous
Next