src/components/LayerController/LayerController.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/helpers/WmsHelper.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/conf/MapConfig.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/MapTemplate.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/LayerController/LayerController.vue
@@ -1,7 +1,7 @@ <template> <div class="float-panel"> <i class="horn horn-br"></i> <i class="horn horn-bl"></i> <!-- <i class="horn horn-br"></i>--> <!-- <i class="horn horn-bl"></i>--> <div class="head title-border"> <div class="title-text-border"> <div class="title-icon"></div> @@ -14,8 +14,13 @@ </div> <div class="body-box" id="panelContent"> <div id="panelInnerContent" :style="{ height:height }"> <transition name="el-fade-in"> <div v-show="isShow"> <slot></slot> </div> </transition> </div> </div> </div> </template> @@ -52,6 +57,7 @@ data () { return { height: '200px', isShow: true, icons: { setting: iconSetting }, @@ -84,8 +90,10 @@ this.panelSwitch.main = !this.panelSwitch.main if (this.panelSwitch.main) { this.height = '200px' this.isShow = true } else { this.height = '0px' this.isShow = false } } } @@ -111,7 +119,6 @@ overflow: hidden; transition: all 0.5s linear; } .title-border { width: 100%; height: 28px; @@ -159,7 +166,7 @@ height: 22px; margin-top: 4px; margin-left: 2px; background-image: url(/assets/images/map-pages/icon/setting.png); background-image: url(../../assets/images/map-pages/icon/setting.png); } .title-text { @@ -222,7 +229,7 @@ margin-top: 10px; margin-right: 10px; cursor: pointer; background-image: url(/assets/images/map-pages/icon/xljt1.png); background-image: url(../../assets/images/map-pages/icon/xljt1.png); transform: rotateX(0deg); transform-origin: 50% 50%; transition: transform 0.5s linear 0s; @@ -251,25 +258,25 @@ } .horn-tl { background-image: url(/assets/images/map-pages/cosmetics/horn_tl.png) center center no-repeat; background-image: url(../../assets/images/map-pages/cosmetics/horn_tl.png) ; left: -1px; top: -1px; } .horn-tr { background-image: url(/assets/images/map-pages/cosmetics/horn_tr.png) center center no-repeat; background-image: url(../../assets/images/map-pages/cosmetics/horn_tr.png); right: -1px; top: -1px; } .horn-bl { background-image: url(/assets/images/map-pages/cosmetics/horn_bl.png) center center no-repeat; background-image: url(../../assets/images/map-pages/cosmetics/horn_bl.png); left: -1px; bottom: -1px; } .horn-br { background-image: url(/assets/images/map-pages/cosmetics/horn_br.png) center center no-repeat; background-image: url(../../assets/images/map-pages/cosmetics/horn_br.png); right: -1px; bottom: -1px; } src/components/helpers/WmsHelper.js
@@ -25,7 +25,8 @@ for (var j = 0; j < filters.length; j++) { var layer = filters[j] var checked = layer.checked var code = layer.code // var code = layer.code var code = layer.name if (checked) { this.addLayer(wms, code) } src/conf/MapConfig.js
@@ -12,7 +12,7 @@ // service主机配置 const APP_GIS_HOST = 'http://xearth.cn:6299' const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6288' const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6289' // 自定义主机配置 const BLUEMAP_HOST = APP_GIS_HOST // 公司发布的地图服务,用于测试的地址 @@ -222,7 +222,8 @@ icon_actived: '', icon_deactived: '', type: 'wms', url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1', inLegend: true, checked: true, option: { @@ -231,6 +232,7 @@ format: 'image/png', // WMS image format (use 'image/png' for layers with transparency). transparent: true, // If true, the WMS service will return images with transparency. version: '1.1.1', // Version of the WMS service to use tileSize: L.point(1024, 1024), crs: L.CRS.EPSG4326, // Coordinate Reference System to use for the WMS requests, defaults to map CRS. Don't change this if you're not sure what it means. uppercase: false }, src/views/MapTemplate.vue
@@ -3,8 +3,8 @@ <div id="map" ref="rootmap"></div> <sgis-layer-controller :preset="'warningPreset'"> <lc-basemap></lc-basemap> <div class="barline"></div> <lc-service-layer></lc-service-layer> <!-- <div class="barline"></div>--> <lc-service-layer class="barline"></lc-service-layer> </sgis-layer-controller> <lc-service-layer-filter v-show="showServiceLayerFilter" ref="serviceLayerFilter"></lc-service-layer-filter> <monitor-panel></monitor-panel> @@ -89,9 +89,10 @@ width: 100%; } .barline{ width: 100%; height: 1px; background-color: #0661AE; //width: 100%; //height: 1px; //background-color: #0661AE; border-top: 1px solid #0661AE; } } </style>>