公告板
版本库
filestore
活动
搜索
登录
孔德强
/
tangshanDaPing
唐山运维大屏
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
图片提交
zhangxiaoxu123
2023-07-05
cadf9d1cf4a0da42e739cf95df7e86f2a93089f6
[~kongdeqiang/tangshanDaPing.git]
/
src
/
components
/
vue-bai-map
/
components
/
base
/
util.js
1
2
3
4
5
6
import {createPoint} from './factory'
export const isPoint = obj => obj.lng && obj.lat
export const checkType = val => Object.prototype.toString.call(val).slice(8, -1)
export const getPosition = (BMap, point) => isPoint(point) ? createPoint(BMap, point) : point