Skip to main content

Map

Base component that holds rendered map with all its parts.

Consumes id provided in MapProvider component and renders element with that id. Component serves as a map root that defines base wrapper for internal map structure and defines its dimensions.

How to use it

import { Map } from 'mapy-cz-react';

<Map>...other components, controls, markers, etc...</Map>;

Props

NameTypeDefaultDescriptionRequired
widthstring"100%"Width of map
heightstring"auto"Height of map