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
Name | Type | Default | Description | Required |
---|---|---|---|---|
width | string | "100%" | Width of map | ❌ |
height | string | "auto" | Height of map | ❌ |