Commit c9532394 authored by 皮倩雯's avatar 皮倩雯

底图范围选择y坐标写反bug

parent 48c5f5b9
Pipeline #60072 failed with stages
......@@ -376,16 +376,17 @@ const Map = props => {
view: mapInfo.current,
action: 'extent',
drawEnd: data => {
console.log(data);
const geom = geomUtils.toGeometry({
type: 'extent',
xmin: data.rings[0][0][0],
xmax: data.rings[0][2][0],
ymin: data.rings[0][0][1],
ymax: data.rings[0][1][1],
ymin: data.rings[0][1][1],
ymax: data.rings[0][0][1],
});
form.setFieldsValue({
extent: `${data.rings[0][0][0]},${data.rings[0][0][1]},${data.rings[0][2][0]},${
data.rings[0][1][1]
extent: `${data.rings[0][0][0]},${data.rings[0][1][1]},${data.rings[0][2][0]},${
data.rings[0][0][1]
}`,
});
mapRef.current.gotoGeometry(geom);
......
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