zhangxiaoxu123
2023-07-04 22f9e400ea731da9ee6be6fa389adebfc3438f63
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