zhangxiaoxu123
2023-07-05 cadf9d1cf4a0da42e739cf95df7e86f2a93089f6
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