@@ -107,6 +107,7 @@ const selectChange = (id: string) => {
if (points.length) {
const total = points.reduce((t, p) => [t[0] + p.x, t[1] + p.y], [0, 0]);
const view = mapManage.map.getView();
+ console.log("设置定位");
// view.setZoom(20);
setTimeout(() => {
view.setCenter([total[0] / points.length, total[1] / points.length]);