提交 edf4538f 编写于 作者: Q qiang

fix(App): coordsType

上级 247ab247
const type = {
WGS84: 'WGS84',
GCJ02: 'GCJ02'
}
const coordTypes = ['wgs84', 'gcj02']
export const getLocation = {
type: {
type: String,
validator (value, params) {
value = (value || '').toUpperCase()
params.type = Object.values(type).indexOf(value) < 0 ? type.WGS84 : value
},
default: type.WGS84
value = (value || '').toLowerCase()
params.type = coordTypes.indexOf(value) < 0 ? coordTypes[0] : value
}
},
altitude: {
type: Boolean,
default: false
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册