Map

The map component supports Baidu Maps and Google Maps, and can automatically switch based on system settings or user preferences. The component supports adding markers, fullscreen display, dynamic height adjustment, and other functions.

Usage Examples

Basic Map

The simplest map usage, displaying the default map area.

300px

Map with Markers

Add markers to the map, click markers to display detailed information.

300px

Different Heights

Customize the map height through the height property.

300px

Properties

PropertyBasic component module for translation keys shared across all component documentation pagesTypeDefault
heightHeight of the map container (pixels)number300
markersArray of map marker dataarray[]
zoomMap zoom levelnumber10
centerMap center coordinatesobjectnull
Design Empowers, Innovation Unlimited