diff --git a/front/public/static/config/basicConfig.js b/front/public/static/config/basicConfig.js index 1659fe20..ec7ed27c 100644 --- a/front/public/static/config/basicConfig.js +++ b/front/public/static/config/basicConfig.js @@ -1,15 +1,15 @@ /* * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 - * @LastEditors: Light - * @LastEditTime: 2022-11-14 18:00:12 + * @LastEditors: hisense.wuhongjian + * @LastEditTime: 2022-11-22 14:37:59 * @Description: 系统静态参数配置 */ var _global = {} var CONFIGITEM = { // version: 'qingdao', //青岛 - // version: 'xihaian', // 西海岸 - version: 'dev', // 开发 + version: 'xihaian', // 西海岸 + // version: 'dev', // 开发 // version: 'zhanTingDev', // 展厅dev (2022-09-13:姜永超让添加) // version: 'qingdao', // 测试 //version: 'frp', // 内网穿透 @@ -68,6 +68,8 @@ var CONFIGITEM = { cameraUrl: '192.168.124.236:9537', // 远雄(不挂vpn可直接连) }, backUrl: 'http://10.134.135.9:9797', + // apiURL: 'http://10.134.135.92:8888/renren-admin', + apiURL: 'http://192.168.124.233:8888/ucs-admin', previewUrl: 'http://10.134.135.9:9796/', // websocketURL: '10.134.135.9:8888/ucs-admin', // 正式环境 // websocketURL: '10.134.135.92:8888/ucs-admin', // 测试环境 diff --git a/front/src/supermap/advance-init.js b/front/src/supermap/advance-init.js index 6e28c3c6..7e90c4e3 100644 --- a/front/src/supermap/advance-init.js +++ b/front/src/supermap/advance-init.js @@ -1675,10 +1675,9 @@ export function MapFun(mapObj) { // }) // } - //_removeLayerByLayerName(layerName) + _removeLayerByLayerName(layerName) let selectedLayerList = []; let layers = null; - let clickDataList = []; // 判断是否是聚合图层 layers = createMarkerClusterLayer('', map) const icon1 = createDefaultFeatureStyle({ @@ -1734,6 +1733,7 @@ export function MapFun(mapObj) { // }) // } marker.on('click', e => { + let clickDataList = []; //console.log('点位数据', e) //console.log('点位数据1', e.sourceTarget.resourceData) clickDataList.push(e.sourceTarget.resourceData); diff --git a/front/src/supermap/map-showResource.js b/front/src/supermap/map-showResource.js index 3aab1872..94e3f4c1 100644 --- a/front/src/supermap/map-showResource.js +++ b/front/src/supermap/map-showResource.js @@ -66,26 +66,26 @@ function createMarkerClusterLayer(layerClassName, mapObj) { } else { // 使用默认图标 markerClusterLayer = L.markerClusterGroup({ - iconCreateFunction(cluster) { - const markers = cluster.getAllChildMarkers() - let n = 0 - for (let i = 0; i < markers.length; i++) { - n += markers[i].number - } - return L.divIcon({ html: markers.length, className: "topic-marker-cluster-video" }) - }, + // iconCreateFunction(cluster) { + // const markers = cluster.getAllChildMarkers() + // let n = 0 + // for (let i = 0; i < markers.length; i++) { + // n += markers[i].number + // } + // return L.divIcon({ html: markers.length, className: "topic-marker-cluster-video" }) + // }, // 是否允许指定 PolylineOptions 样式 spider spiderfyOnMaxZoom: false, // 是否显示标记的边界 - showCoverageOnHover: false, + showCoverageOnHover: true, // 是否点击展开 zoomToBoundsOnClick: true, maxClusterRadius: 80, }) markerClusterLayer.on('clusterclick', function(a) { + let clusterList = []; //console.log('cluster ' + a.layer.getAllChildMarkers()); if (a.layer.getAllChildMarkers().length < 50) { - let clusterList = []; for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) { //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData); //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].fData); @@ -1024,4 +1024,4 @@ export { addResourceOnMapWithoutSuper, addResourceOnMapNew, addPointsToMap, -} \ No newline at end of file +} diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index 53075a89..b540cf9b 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -166,7 +166,7 @@ -