English
fs-map
About 193 wordsLess than 1 minute
Introduction
The map component is an enhanced wrapper around the mini-program map component. It supports features such as map markers, positioning, route planning, zoom control, and custom styles, and provides unified map operation interfaces and event handling. It is suitable for scenarios that need to display geographic location information.
Usage
Import locally by configuring it in the index.json of the page or component that needs it.
"usingComponents": {
"fxmap":"ava-ui/fxui/fsmap/index"
}Code Demo
API
Parameters
| Parameter | Description | Type | Optional Values | Default | |---------- |-------- |---------- |------------- |-------- |-------- | | size | Size | string | small / normal / large | large | | type | Type | string | primary / warn / default | default | | plain | Whether it is a plain button | boolean | — | false
| disabled | Whether it is disabled | boolean | — | false
| text | Text | string | — | —
| btnStyle | Button style | string | — | '' | textStyle | Text style | string | — | ''
Events
| Name | Parameter | Description |
|---|---|---|
| handleTap | - | Triggered when the button is tapped, provided the button is not in a loading or disabled state |
