Commit 01d2a77c authored by 彭俊龙's avatar 彭俊龙

xform更新

parent a635ec6d
{
"name": "panda-xform",
"version": "6.10.61",
"description": "6.10.61 数字输入框增加正整数格式逻辑,坐标选择存储地图extent信息",
"version": "6.10.63",
"description": "6.10.63 坐标选择增加爆管分析逻辑",
"keywords": [
"panda-xform"
],
......
......@@ -170,6 +170,17 @@ const Coordinate = (props) => {
if (addressSync) {
let targetPath = getTargetPath(addressSync)
if (targetPath) {
const { widget } = addons?.getSchemaByPath(targetPath)
if(widget === 'CustomMap' && view){
const mapExentJson = {
mapExtent: `${view.extent.xmin},${view.extent.ymin},${
view.extent.xmax
},${view.extent.ymax}`,
imageDisplay: `${view.width},${view.height},96`,
zoom: view.zoom,
}
addons.setValue(targetPath, JSON.stringify(mapExentJson))
}else {
if (targetPathText) {
addons.setValue(targetPath, targetPathText)
} else {
......@@ -196,6 +207,7 @@ const Coordinate = (props) => {
}
}
}
}
if (areaSync && areaSyncField) {
let targetPath = getTargetPath(areaSyncField)
if (targetPath) {
......@@ -206,15 +218,6 @@ const Coordinate = (props) => {
}
}
setVisible(false)
if(view){
const mapExentJson = {
mapExtent: `${view.extent.xmin},${view.extent.ymin},${
view.extent.xmax
},${view.extent.ymax}`,
imageDisplay: `${view.width},${view.height},96`,
}
sessionStorage.setItem('mapExentJson', JSON.stringify(mapExentJson))
}
onChange(currentPointerCoordinate.join(','))
}
......
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