kongdeqiang
2023-07-31 ae0de0617298a3d276622421c77c72435f4ec068
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