# rowell-map-ultra

Latest version **0.0.34** (published 2024-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install rowell-map-ultra
pnpm add rowell-map-ultra
yarn add rowell-map-ultra
bun add rowell-map-ultra
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.34 |
| Published | 2024-05-09 |
| First published | 2023-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 13 |
| Unpacked size | 974 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | chenlidong |
| Keywords | rowell-map-ultra |

## Links

- npm: https://www.npmjs.com/package/rowell-map-ultra
- npm.io page: https://npm.io/package/rowell-map-ultra

## Dependencies (13)

- [vue](https://npm.io/package/vue.md) ^3.3.4
- [less](https://npm.io/package/less.md) ^4.1.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [naive-ui](https://npm.io/package/naive-ui.md) ^2.34.4
- [vitepress](https://npm.io/package/vitepress.md) 1.0.0-beta.3
- [@iconify/vue](https://npm.io/package/@iconify/vue.md) ^4.1.1
- [unplugin-icons](https://npm.io/package/unplugin-icons.md) ^0.16.3
- [rowell-map-ultra](https://npm.io/package/rowell-map-ultra.md) ^0.0.7
- [unplugin-auto-import](https://npm.io/package/unplugin-auto-import.md) ^0.16.6
- [@amap/amap-jsapi-loader](https://npm.io/package/@amap/amap-jsapi-loader.md) ^1.0.1
- [unplugin-vue-components](https://npm.io/package/unplugin-vue-components.md) ^0.25.1
- [vite-plugin-top-level-await](https://npm.io/package/vite-plugin-top-level-await.md) ^1.3.1
- [vite-plugin-vue-setup-extend](https://npm.io/package/vite-plugin-vue-setup-extend.md) ^0.4.0

## Recent versions

- 0.0.34 (latest) — 2024-05-09
- 0.0.33 — 2024-01-26
- 0.0.32 — 2024-01-20
- 0.0.31 — 2024-01-19
- 0.0.29 — 2023-12-14
- 0.0.28 — 2023-12-13
- 0.0.27 — 2023-11-21
- 0.0.26 — 2023-11-21
- 0.0.25 — 2023-11-17
- 0.0.24 — 2023-11-16
- 0.0.23 — 2023-11-16
- 0.0.22 — 2023-11-16
- 0.0.21 — 2023-11-16
- 0.0.20 — 2023-11-16
- 0.0.19 — 2023-11-07
- … 18 more at https://npm.io/package/rowell-map-ultra/versions

## README

# 基于现有业务封装了地图


onMounted(() => {
  nextTick(() => {
    map?.value.on('click', (e) => {
      // 清楚地图上的标记点
      map?.value.clearMap()
      let lnglat = e.lnglat
      // 在点击的位置创建一个标记点
      new AMap.Marker({
        position: lnglat,
        map: map?.value,
      })
      // 通过当前点击点位,查询附近的地址信息
      AMap.plugin('AMap.PlaceSearch', () => {
        let placeSearch = new AMap.PlaceSearch({
          pageSize: 5,
          pageIndex: 1,
          city: props.city,
          map: map?.value,
          panel: 'panel'
        })
        placeSearch.searchNearBy('', lnglat, 500, (status, result) => {
          // if (status === 'complete' && result.info === 'OK') {
          //   // 查询成功,将第一个地址信息传递给父组件
          //   console.log(result.poiList.pois[0])
          //   // emit('change', result.poiList.pois[0])
          // }
        })
      })
    })
  })
})

---
_Source: https://npm.io/package/rowell-map-ultra · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
