diff --git a/front/public/static/config/mapConfig.js b/front/public/static/config/mapConfig.js index 5a2b7fff..28d6037f 100644 --- a/front/public/static/config/mapConfig.js +++ b/front/public/static/config/mapConfig.js @@ -2,50 +2,30 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-11-21 17:06:10 + * @LastEditTime: 2022-11-21 19:21:42 * @Description: 地图静态参数配置 */ var _mapConfig = {} -;(function () { - var L = window.L || {} - // // 定义底图初始化化参数 - // 请在此处更改你的配置********************************************** - // eslint-disable-next-line no-undef - var CONFIGKEY = CONFIGITEM.version === 'xihaian' ? 'xihaian' : 'qingdao' - // var CONFIGKEY = 'dev'; - // 请在上面更改你的配置*********************************************** - var BASECONFIGITEM = { - xihaian: { - base: 'xihaian', - CURRENT_MAP_OPTIONS: { - // crs: CRS_4490, - center: [35.96, 120.19], - maxZoom: 18, - minZoom: 0, - zoom: 5, - }, - }, - qingdao: { - DATABASE_TYPE: 'Highgo', - POI_TYPE: 'Supermap', // POI接口类型 'Supermap'、'Amap'、'Survey_Institute' - ISERVER_URL: '15.2.21.238:8090', - WORKPLACE_NAME: 'HIMAP-HIGHGO', - MAP_NAME: 'QDMAP', - DATASOURCE_NAME: 'HISENSE_map', - ATMOSPHERE_URL: 'http://15.2.21.151:9015/service-main', - CURRENT_MAP_OPTIONS: { - // crs: CRS_4490, - center: [36.17, 120.13], - maxZoom: 18, - minZoom: 0, - zoom: 10, - }, - BDMAP_CONFIG: { - location: 'qingdao', - _initpos: { - point: [120.392795, 36.072854], - zoom: 2, +; +(function() { + var L = window.L || {} + // // 定义底图初始化化参数 + // 请在此处更改你的配置********************************************** + // eslint-disable-next-line no-undef + var CONFIGKEY = CONFIGITEM.version === 'xihaian' ? 'xihaian' : 'qingdao' + // var CONFIGKEY = 'dev'; + // 请在上面更改你的配置*********************************************** + var BASECONFIGITEM = { + xihaian: { + base: 'xihaian', + CURRENT_MAP_OPTIONS: { + // crs: CRS_4490, + center: [35.96, 120.19], + maxZoom: 15, + minZoom: 0, + zoom: 5, + }, }, _keyframes: [ [121.6011191295479, 36.73422934263509], diff --git a/front/src/assets/home/arrow-left.png b/front/src/assets/home/arrow-left.png new file mode 100644 index 00000000..29cd118d Binary files /dev/null and b/front/src/assets/home/arrow-left.png differ diff --git a/front/src/assets/home/arrow-right.png b/front/src/assets/home/arrow-right.png new file mode 100644 index 00000000..77a08e63 Binary files /dev/null and b/front/src/assets/home/arrow-right.png differ diff --git a/front/src/supermap/advance-init.js b/front/src/supermap/advance-init.js index e61c160e..6068870d 100644 --- a/front/src/supermap/advance-init.js +++ b/front/src/supermap/advance-init.js @@ -1680,7 +1680,7 @@ export function MapFun(mapObj) { let layers = null; let clickDataList = []; // 判断是否是聚合图层 - layers = createMarkerClusterLayer() + layers = createMarkerClusterLayer('', map) const icon1 = createDefaultFeatureStyle({ img: url, iconSize: [33, 33], diff --git a/front/src/supermap/map-showResource.js b/front/src/supermap/map-showResource.js index 07390e3e..8990447e 100644 --- a/front/src/supermap/map-showResource.js +++ b/front/src/supermap/map-showResource.js @@ -39,11 +39,9 @@ function updateProgressBar(processed, total, elapsed, layersArray) { * @param layerClassName 据此判断是否需要自定义聚合图层的样式 * @returns {*} */ -function createMarkerClusterLayer(layerClassName) { +function createMarkerClusterLayer(layerClassName, mapObj) { let array = []; let markerClusterLayer = null - //let currentZoom = this.map._zoom - //console.log('zzzzzz', currentZoom); if (layerClassName) { // 如果存在类名,表示需要自定义图标 markerClusterLayer = L.markerClusterGroup({ @@ -81,18 +79,23 @@ function createMarkerClusterLayer(layerClassName) { // 是否显示标记的边界 showCoverageOnHover: false, // 是否点击展开 - zoomToBoundsOnClick: false, + zoomToBoundsOnClick: true, maxClusterRadius: 80, }) markerClusterLayer.on('clusterclick', function(a) { - //console.log('cluster ' + a.layer.getAllChildMarkers()); - let clusterList = []; - for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) { - //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData); - clusterList.push(a.layer.getAllChildMarkers()[i].resourceData); + //console.log('cluster ' + a.layer.getAllChildMarkers().length); + 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); + clusterList.push(a.layer.getAllChildMarkers()[i].resourceData); + } + //console.log('clusterList ' + a.layer.getAllChildMarkers(array, true)); + //console.log('zzzzzzzzz', mapObj.getZoom(), mapObj.getMaxZoom()); + if (mapObj.getZoom() == mapObj.getMaxZoom()) { + mybus.emit('openOperationPopup', clusterList); + } } - //console.log('clusterList ' + a.layer.getAllChildMarkers(array, true)); - mybus.emit('openOperationPopup', clusterList); }); } return markerClusterLayer diff --git a/front/src/views/home/components/H5Player.vue b/front/src/views/home/components/H5Player.vue index d0494749..6ace8674 100644 --- a/front/src/views/home/components/H5Player.vue +++ b/front/src/views/home/components/H5Player.vue @@ -13,6 +13,10 @@ const MSE_IS_SUPPORT = !!window.MediaSource // 是否支持mse videoUrl:{ type: String, default: '', + }, + index:{ + type: Number, + default: 0, } }, data() { @@ -64,7 +68,9 @@ const MSE_IS_SUPPORT = !!window.MediaSource // 是否支持mse }) }, createPlayer () { + //console.log('this.index',this.index); this.player = new window.JSPlugin({ + //szId: 'player'+this.index, szId: 'player', szBasePath: "/util/", //引入静态资源地址,我这里静态资源在public/js文件存放,所以设置为js iMaxSplit: 4, diff --git a/front/src/views/home/detailBack.vue b/front/src/views/home/detailBack.vue index 2f1c1f46..518cb5e0 100644 --- a/front/src/views/home/detailBack.vue +++ b/front/src/views/home/detailBack.vue @@ -13,6 +13,7 @@ import { reactive, ref, watch, defineProps } from 'vue' import { useRouter } from 'vue-router' import { useStore } from 'vuex' +import mybus from '@/myplugins/mybus' const router = useRouter() const oldValue1= ref('') const props = defineProps({ @@ -32,6 +33,13 @@ const previousPage = () => { const detailName = ref("应用资源") +const goToDetailsPageconetent = () =>{ + let pathData = { + path: '/DetailsPageconetent', + }; + mybus.emit('changeMenuStyle',pathData); +} +