Commit 09e7b075 authored by 皮倩雯's avatar 皮倩雯

fix: '修复gis范围保存失败问题'

parent 5b13c4b5
Pipeline #61718 passed with stages
......@@ -724,12 +724,14 @@ const Map = props => {
}
let data = {};
console.log(obj.customPointExtent);
// console.log(obj.customPointExtent.type);
// console.log(obj.customPointExtent.constructor === Array);
if (obj.customPointExtent) {
if (keepBorderArea && !obj.customPointExtent.type) {
if (keepBorderArea && obj.customPointExtent.constructor === Array) {
data.type = keepType;
data.geometry = obj.customPointExtent;
console.log(data);
} else if (!keepBorderArea && !obj.customPointExtent.type) {
} else if (!keepBorderArea && obj.customPointExtent.constructor === Array) {
data.type = keepType;
data.geometry = obj.customPointExtent;
console.log(data);
......
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