公告板
版本库
filestore
活动
搜索
登录
孔德强
/
tangshanDaPing
唐山运维大屏
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
离线地图
zhangxiaoxu123
2023-07-06
d8ce22d6c645699ce0b3783860dec1baf0e6d8f5
[~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