0.0.20 • Published 5 months ago

hy-common v0.0.20

Weekly downloads
-
License
-
Repository
-
Last release
5 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.20

5 months ago

0.0.16

7 months ago

0.0.17

7 months ago

0.0.18

7 months ago

0.0.10

9 months ago

0.0.11

9 months ago

0.0.12

8 months ago

0.0.13

8 months ago

0.0.14

8 months ago

0.0.15

8 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago