Maps

A Maps React Component is a reusable UI element built using React that integrates mapping functionalities into a web application. It is often used to display geographical information, locations, or routes on an interactive map interface.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab

Usage

import MapsComponent from 'bio-bind-ui/components/Maps';
import React from 'react';
import MapsComponent from 'bio-bind-ui/components/Maps';
 
const PreviewMaps = () => {
  return (
    <div style={{ width: 800, height: 640 }}>
      <MapsComponent />
    </div>
  )
}
 
export default PreviewMaps

Examples

Variant

Use variant for change different variants for the maps component: marker or vector



Mode (Optional)

Use mode for change the color mode of maps component: light or dark


Props

PropsRequiredDefaultTypeDescription
idtrue-numberstring
positiontrue-LatLngExpressionThe position of the marker on the map.
iconfalse-{ light: string; dark: string }The icon for the marker, with separate values for light and dark modes.
iconColorfalse-{ light: string; dark: string }The icon color for the marker, with separate values for light and dark modes.
markerPropsfalse-MarkerPropsAdditional properties for the marker.
popupContentfalse-stringThe content displayed in the popup when the marker is clicked.
popupPropsfalse-PopupPropsAdditional properties for the popup.
modefalselightdark, lightThe mode of the map or actions (dark or light).
dataPinMarkersfalse-DataPinMarker[]An array of data pins with markers, each containing the necessary data for rendering.
dataCirclesfalse-CircleProps[]An array of circle properties to render on the map.
dataRectanglefalse-RectangleProps[]An array of rectangle properties to render on the map.
dataPolylinesfalse-PolylineProps[]An array of polyline properties to render on the map.
BIND © Biofarma Innovate Next-level Design .