You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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
|
|
|