Commit 05019f5b authored by 彭俊龙's avatar 彭俊龙

地图选取加判断

parent ec0618cf
......@@ -278,8 +278,8 @@ const Coordinate = (props) => {
}
const callback = (value) => {
if (value.location && view) {
let array = value.location.split(',')
if (value?.location && view) {
let array = value?.location.split(',')
let point = lngmkt({ lng: Number(array[0]), lat: Number(array[1]) })
onChange(`${point.x},${point.y}`)
if (value?.name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment