hy-common

0.0.20 • Public • Published

hy-common 核心模块

负责主要功能

  • [x] 地图整合 (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 方式

Readme

Keywords

none

Package Sidebar

Install

npm i hy-common

Weekly Downloads

7

Version

0.0.20

License

none

Unpacked Size

43.5 kB

Total Files

3

Last publish

Collaborators

  • zhangxiaopang
  • cheungkaki