MMapContainer

The MMapContainer 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 = <MMapContainer>
     <MMapMarker coordinates={[55.76, 37.64]}><div className="point"></div></MMapMarker>
     <div>Some text</div>
 </MMapContainer>;

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

Constructor

new MMapContainer(props, options?)

Constructor parameters

Parameter

Type

Description

props

ComputedMMapContainerProps<unknown>

Value of input props.

options?

ComplexOptions<MMap>

Optional object parameters.

Inherited from

MMapGroupEntity.constructor

new MMapContainer(props, children?, options?)

Constructor parameters

Parameter

Type

props

ComputedMMapContainerProps<unknown>

children?

MMap <unknown, {}>[]

options?

Omit<ComplexOptions<MMap>, "children">

Inherited from

MMapGroupEntity.constructor

Props

static defaultProps: Object

Parameters

Parameter

Type

tagName

string

Methods

addChild

addChild(child, index?): MMapContainer

Parameters

Parameter

Type

child

MMapEntity<unknown, {}>

index?

number

Returns

MMapContainer

Inherited from

MMapGroupEntity.addChild

removeChild

removeChild(child): MMapContainer

Parameters

Parameter

Type

child

MMapEntity<unknown, {}>

Returns

MMapContainer

Inherited from

MMapGroupEntity.removeChild

update

update(changedProps): void

Parameters

Parameter

Type

Description

changedProps

Partial<ComputedMMapContainerProps<unknown>>

New props values.

Returns

void

Inherited from

MMapGroupEntity.update

Previous
Next