|
@@ -129,10 +129,10 @@ const updateSubRegionsData = () => {
|
|
|
|
|
|
return {
|
|
|
...block,
|
|
|
- startXx: centerGeo.x - w / 2,
|
|
|
- stopXx: centerGeo.x + w / 2,
|
|
|
- startYy: centerGeo.y - h / 2,
|
|
|
- stopYy: centerGeo.y + h / 2,
|
|
|
+ startXx: Number(Math.floor(centerGeo.x - w / 2)),
|
|
|
+ stopXx: Number(Math.floor(centerGeo.x + w / 2)),
|
|
|
+ startYy: Number(Math.floor(centerGeo.y - h / 2)),
|
|
|
+ stopYy: Number(Math.floor(centerGeo.y + h / 2)),
|
|
|
startZz: Number(block.startZz) || 0,
|
|
|
stopZz: Number(block.stopZz) || 0,
|
|
|
}
|