0.0.22 • Published 6 months ago

hy-common v0.0.22

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

hy-common 核心模块

负责主要功能

  • 地图整合 (map)

接入流程

// npm 依赖包安装
npm i hy-common || yarn add hy-common

// 在需要使用的页面引入
import hyCommon from 'hy-common'

// 初始化 (在 man.js 设置请求拦截器)
import { Common } from 'hy-common'
Common.setAxios(api)

/* 单独使用 map的 poi */
import { MapPoi } from 'hy-common'
this.mapPoi = new MapPoi()
this.mapPoi.iniPoi(this.poiServer)

// 事件 (和高德方法同名)
this.mapPoi.placeSearch()


/* 在 map中使用 poi */
import { Map } from 'hy-common'
const map = new Map({poiServer: this.poiServer})

// 事件 (和高德方法同名)
map.placeSearch()

"version": "0.0.4", - 修改 poi google版本的 placeSearch 方式

0.0.21

6 months ago

0.0.22

6 months ago

0.0.20

1 year ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago