From 44127ba2da0c5a702fb2d5a19c29ca4e51fd4625 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 12 Jul 2023 21:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E8=B7=AF=E6=95=B0=E6=8D=AE=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quanju/containers/public/olMap.js | 96 +++++++++++++++---- web/client/src/utils/index.js | 4 +- web/client/src/utils/webapi.js | 2 + 3 files changed, 81 insertions(+), 21 deletions(-) diff --git a/web/client/src/sections/quanju/containers/public/olMap.js b/web/client/src/sections/quanju/containers/public/olMap.js index 39cce5f0..5be87729 100644 --- a/web/client/src/sections/quanju/containers/public/olMap.js +++ b/web/client/src/sections/quanju/containers/public/olMap.js @@ -1,10 +1,11 @@ import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; - +import request from 'superagent' +import { OlMapRequest } from '$utils' const OlMap = (props) => { const { dispatch, actions, user } = props - + const [olMapOpenData, setOlMapOpenData] = useState([]) useEffect(() => { let config = { layerName: 'nanchang', @@ -12,7 +13,7 @@ const OlMap = (props) => { zoom: 10, // 缩放 minZoom: 8, maxZoom: 21, - isMoveSelect: true, // 鼠标滑过是否选中 + isMoveSelect: false, // 鼠标滑过是否选中 projection: 'EPSG:4326' // 坐标系 } let arcgisUrls = { @@ -20,6 +21,10 @@ const OlMap = (props) => { url: 'http://36.2.6.33:6080/arcgis/rest/services/PBDT/nachang/MapServer', }, } + + + + let option = { target: 'olMap', // 元素ID config: config, @@ -36,29 +41,82 @@ const OlMap = (props) => { console.log(p) }) olMapTool.map.on('singleclick', function (p) { - console.log(p) + console.log("singleclick", p) + + olMapTool.closeOverlay('clickOpen') + olMapTool.removeGeometryLayer('geometry0') + + request.post('http://36.2.6.32:8811/geoserver-pg/rest/bufferSearch') + .type('form') + .send({ + params: `{"layerName":"view_by_line","pageSize":10,"pageNum":1,"filter":"","isReturnGeometry":"true","spatialRel":"INTERSECTS","orderByFields":" sort1, sort2, lxbm, sxxfx, qdzh asc", "spatialFilter":"point(${p.coordinate[0]} ${p.coordinate[1]})","distance":20}` + }) + .then(res => { + console.log(res); + if (res.status == 200 && res.body && res.body.code == 1) { + const data = res.body.data + const { datalist } = data + let index = 0 + for (let d of datalist.list) { + olMapTool.addGeometryJMLayer({ + features: [ + { + geometry: d.shape, + geometryType: 'LineString', + // geometryType: 'Point', + }, + ], + style: { stroke: { width: 10, color: '#9933FF' } }, + selectStyle: { stroke: { width: 5, color: '#9933FF' } }, + layerName: 'geometry' + index++ + }); + const config = { + id: 'clickOpen', + offset: [0, 25], // 偏移 + position: p.coordinate, // 坐标 + autoPan: true, + autoPanMargin: 100, + positioning: 'top-right' + } + setOlMapOpenData([{ k: Math.random() }]) + olMapTool.addOverlay('clickOpen', config) + break + } + } + }) + }) - let mappingDatas = - { - features: [ - { - geometry: 'LaZjCTjBcKxVFmwFzQ7d2qteOOJNRZD2j6uytQUvc3s87CyKOTulaKs/iyGg476/6yfIy/jYe+j7+AEMs/LcEX4IiAmr0X0h29X6oKDts7xALosNZBj19CJXuHDX/BI/MoXGUGI+NFgKoGgyzEmlfndmsxvvix5Upod6QW/ASL72JRZZBHjjWfy+fKpYqu6iysEnelpzRRp4Q7cvOTP5xz/g5zTRDO5TrGnGkZ09PPpswubjaPJWRxgwM/vADuYRDDLVsI8Cgwma95RB4ICzPoO69JpuPdLk+YsOd+inRqBapwiKZM9OL8O+XtrleNlYQg1rlOsaSAqCurh2r0dHCgiPkRCteMrbjS7LODIjPXeSsyrNYqFZhyp//uRE5obemU/ycsuPTn8nGqbKdh8efdjfBMAZdZDQjO0Ow4CO4b0xWOioEuxupVtEkDQCFXc/R03G/IIDWI6MT20B61Mtm/lYAWXyf/czoyaxx8rB/gopf7lqe38Pz0bpRyK9wZX7CSb/6xOK71qZMZdHbOAWZCq5RPNRVjP0oH5DQINI8sTH8kDHSZNT68zgwD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3Uyc8BK5BPsHGdqbHNM260IL8ZR2/oPPfT3q7PgFiviDzQidQWkB7Q0nlnKImuB/L28Xcemn3McY2zfEnET8aCSsObuXpU9O3xk11T3hGpQAhgyFmruPVHJ0aN5uXdutnt3gbxv1nLqC2dDBJsnRiNF7g9nHIVomKJijLF8Kiwt/cN+JV30kr/0tHlHpIZ9xS3QypAapqoMebPKKm32TC78lv8vrIK3HbSrcmtaksiOMGyESyDKk2jzMg57YmQkRKKXaJ0QQxEwB2a18ObYM20zKaIZsHDKKGooCLoLuQ==', - geometryType: 'LineString', - // geometryType: 'Point', - }, - ], - style: { stroke: { width: 10, color: '#9933FF' } }, - selectStyle: { stroke: { width: 5, color: '#9933FF' } }, - layerName: 'geometryQuery2' - } - setTimeout(function () { olMapTool.addGeometryJMLayer(mappingDatas); }, 3000); + }, []) return ( -
+
+
+
+ { + olMapOpenData.map(s => { + return
+
1
+
: {s.k}
+
+ }) + } +
+
+
) } diff --git a/web/client/src/utils/index.js b/web/client/src/utils/index.js index f2eee419..7b60922c 100644 --- a/web/client/src/utils/index.js +++ b/web/client/src/utils/index.js @@ -1,10 +1,10 @@ 'use strict'; import { AuthorizationCode } from './authCode'; -import { ApiTable, RouteTable } from './webapi' +import { ApiTable, RouteTable, } from './webapi' import Func from './func'; export { AuthorizationCode, Func, - ApiTable, RouteTable + ApiTable, RouteTable, } \ No newline at end of file diff --git a/web/client/src/utils/webapi.js b/web/client/src/utils/webapi.js index 580f4f23..9d098c16 100644 --- a/web/client/src/utils/webapi.js +++ b/web/client/src/utils/webapi.js @@ -2,6 +2,8 @@ import { ProxyRequest } from "@peace/utils"; export const GodTransRequest = new ProxyRequest("_godTrans"); +export const OlMapRequest = new ProxyRequest("_olMap"); + export const ApiTable = { login: 'login', logout: 'logout',