Merge remote-tracking branch 'origin/master'
| | |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
| | | <!-- <meta name="viewport" content="width=device-width,initial-scale=1.0">--> |
| | | <meta name="viewport" content="width=device-width"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=11"> |
| | | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
| | | <title><%= htmlWebpackPlugin.options.title %></title> |
| | | </head> |
| | |
| | | padding: 0; |
| | | overflow: hidden; |
| | | } |
| | | body .el-scrollbar__wrap { |
| | | overflow-x: hidden; |
| | | } |
| | | body{ |
| | | -ms-overflow-style: none; |
| | | } |
| | | |
| | | </style> |
| | |
| | | |
| | | import Editable from '@components/plugin/Editable' |
| | | import PathDrag from '@components/plugin/PathDrag' |
| | | import MagicMarker from '@components/plugin/MagicMarker' |
| | | import WmtsSupport from '@components/plugin/wmts_plugins' |
| | | // import MagicMarker from '@components/plugin/MagicMarker' |
| | | // import WmtsSupport from '@components/plugin/wmts_plugins' |
| | | |
| | | import MapConfig from '@/conf/MapConfig' |
| | | // import DashFlow from '@components/plugin/PathDashFlow' |
| | | import CanvasMarkers from '@components/plugin/CanvasMarkers' |
| | | import FullScreen from '@components/plugin/FullScreen' |
| | | // 下载 |
| | | import '@components/plugin/PathDashFlow' // 流动线图 |
| | | // import CanvasMarkers from '@components/plugin/CanvasMarkers' |
| | | // import FullScreen from '@components/plugin/FullScreen' |
| | | import DownLoad from '@components/plugin/DownLoad' |
| | | // 测量 |
| | | import LeafletMeasurePath from '@components/plugin/leaflet-measure-path/leaflet-measure-path' |
| | | |
| | | import 'leaflet.markercluster' |
| | | // import 'leaflet-canvas-markers' |
| | | import './components/plugin/Leaflet.GridLayer.FadeOut' // 瓦片图层切换淡入淡出 |
| | | |
| | | import './components/plugin/leaflet-canvas-markers' // 画布marker |
| | | let map = null |
| | | const L = window.L |
| | | const initMap = (div) => { |
| | |
| | | // Leaflet扩展代码 |
| | | Editable.init(L) // 图层编辑 |
| | | PathDrag.init(L) // 路径拖拽 |
| | | MagicMarker.init(L) // 动画Marker |
| | | WmtsSupport.init(L) // 扩展,使支持WMTS |
| | | // MagicMarker.init(L) // 动画Marker |
| | | // WmtsSupport.init(L) // 扩展,使支持WMTS |
| | | // CustomPopup.init(L) // 自定义弹出框 |
| | | // DashFlow.DashFlow(L) // 流动线图 |
| | | CanvasMarkers.init(L)// 画布图层 |
| | | // CanvasMarkers.init(L)// 画布图层 |
| | | // 全屏 |
| | | FullScreen.init(L) |
| | | // FullScreen.init(L) |
| | | // 下载 |
| | | DownLoad.init(L) |
| | | LeafletMeasurePath.init(L) |
| | |
| | | /*background-color: transparent;*/ |
| | | border: .00521rem solid @color; |
| | | padding: .10417rem; |
| | | -webkit-box-shadow: 0 0 0.03125rem 0 @color; |
| | | box-shadow: 0 0 0.03125rem 0 @color; |
| | | //-webkit-box-shadow: 0 0 0.03125rem 0 @color; |
| | | //box-shadow: 0 0 0.03125rem 0 @color; |
| | | -webkit-box-shadow: 0 0 10px 0 @color; |
| | | box-shadow: 0 0 10px @color; |
| | | border-radius: 1rem; |
| | | } |
| | | |
| | |
| | | <div class="title"><input type="checkbox" :value="item.code" :checked="item.checked" |
| | | @change="swAllSubFilter(item)">{{item.name}} |
| | | </div> |
| | | <el-scrollbar style="height:100%"> |
| | | <div class="content"> |
| | | <div v-for="filter in item.layers" :key="filter.code"> |
| | | <input type="checkbox" :value="filter.code" :checked="filter.checked" @change="swSubFilter(item.url,filter)"><label |
| | | :title="filter.name">{{filter.name}}</label> |
| | | </div> |
| | | </div> |
| | | </el-scrollbar> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | margin-right: 5px; |
| | | |
| | | .title { |
| | | height: '25px'; |
| | | height: 25px; |
| | | background-color: #091331; |
| | | border: 1px solid #10488c; |
| | | } |
| | |
| | | background-color: rgba(44, 62, 80, 0.6); |
| | | border: 1px solid #10488c; |
| | | max-height: 200px; |
| | | overflow-y: auto; |
| | | //overflow-y: hidden; |
| | | } |
| | | |
| | | ::-webkit-scrollbar { |
| | | width: 7px; |
| | | height: 5px !important; |
| | | } |
| | | |
| | | ::-webkit-scrollbar-thumb { |
| | | /*滚动条里面小方块*/ |
| | | border-radius: 10px; |
| | | box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); |
| | | background: #0661AE; |
| | | border: 1px solid transparent; |
| | | } |
| | | |
| | | ::-webkit-scrollbar-track { |
| | | /*滚动条里面轨道*/ |
| | | // |
| | | //::-webkit-scrollbar { |
| | | // width: 7px; |
| | | // height: 5px !important; |
| | | //} |
| | | // |
| | | //::-webkit-scrollbar-thumb { |
| | | // /*滚动条里面小方块*/ |
| | | // border-radius: 10px; |
| | | // box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2); |
| | | border-radius: 0px; |
| | | background: #0E3565; |
| | | } |
| | | // background: #0661AE; |
| | | // border: 1px solid transparent; |
| | | //} |
| | | // |
| | | //::-webkit-scrollbar-track { |
| | | // /*滚动条里面轨道*/ |
| | | // // box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2); |
| | | // border-radius: 0px; |
| | | // background: #0E3565; |
| | | //} |
| | | } |
| | | } |
| | | } |
| | |
| | | * @param res |
| | | */ |
| | | loadGeojson (res, opt) { |
| | | var that = this |
| | | var icon = opt.icon |
| | | const featureGroup = that.L.featureGroup() |
| | | const featureGroup = this.L.featureGroup() |
| | | const featureList = [] |
| | | const geojson = that.L.geoJSON(res.features, { |
| | | const geojson = this.L.geoJSON(res.features, { |
| | | style: function (feature) { |
| | | return { |
| | | fill: styles.defaultLineStyle.fill, |
| | |
| | | dashSpeed: styles.defaultLineStyle.dashSpeed |
| | | } |
| | | }, |
| | | pointToLayer: function (geoJsonPoint, latlng) { |
| | | return that.L.canvasMarker(latlng, |
| | | pointToLayer: (geoJsonPoint, latlng) => { |
| | | return this.L.canvasMarker(latlng, |
| | | { |
| | | img: { |
| | | // url: 'assets/images/map/marker-icon.png', |
| | |
| | | } |
| | | }) |
| | | }, |
| | | onEachFeature: function (feature, layer) { |
| | | console.log(feature) |
| | | console.log(layer) |
| | | onEachFeature: (feature, layer) => { |
| | | featureList.push(layer) |
| | | layer.bindPopup(function (layer) { |
| | | that.popupComp.setDatas(layer) |
| | | that.popupComp.setShow() |
| | | return that.popupComp.$el |
| | | layer.bindPopup((layer) => { |
| | | this.popupComp.setDatas(layer) |
| | | this.popupComp.setShow() |
| | | return this.popupComp.$el |
| | | }, { |
| | | className: 's-map-popup', |
| | | minWidth: 300, |
| | | closeButton: false, |
| | | autoClose: false |
| | | }) |
| | | .bindTooltip(function (layer) { |
| | | .bindTooltip((layer) => { |
| | | const nameId = layer.feature.id |
| | | let name = '' |
| | | if (nameId.indexOf('三通') !== -1 || nameId.indexOf('四通') !== -1 || nameId.indexOf('窨井') !== -1) { |
| | |
| | | } |
| | | return name |
| | | }, { direction: 'bottom', offset: [0, 15], sticky: true }) |
| | | .on('mouseover', function (e) { |
| | | .on('mouseover', (e) => { |
| | | const type = e.target.feature.geometry.type |
| | | if (type === 'LineString' || type === 'MultiLineString') { |
| | | layer.setStyle({ weight: 8, color: '#00ffff' }) |
| | |
| | | |
| | | layer.bringToFront() |
| | | } |
| | | }).on('mouseout', function (e) { |
| | | }).on('mouseout', (e) => { |
| | | const type = e.target.feature.geometry.type |
| | | if (type === 'LineString' || type === 'MultiLineString') { |
| | | layer.setStyle({ weight: styles.defaultLineStyle.weight, color: styles.defaultLineStyle.color }) |
| | |
| | | } |
| | | }) |
| | | store.commit('addSewersDatas', geojson) |
| | | featureGroup.addTo(that.map) |
| | | that.setZIndex(featureGroup) |
| | | featureGroup.addTo(this.map) |
| | | this.setZIndex(featureGroup) |
| | | return featureGroup |
| | | } |
| | | |
| | |
| | | <!-- </el-form-item>--> |
| | | </el-form> |
| | | </el-card> |
| | | <el-scrollbar style="height:100%"> |
| | | <el-card class="search-result" > |
| | | <div class="B-TMD-table-list" v-for="(item,index) in list" :key="index"> |
| | | <div class="B-TMD-table-list-title"> |
| | |
| | | <!-- </div>--> |
| | | </div> |
| | | </el-card> |
| | | |
| | | </el-scrollbar> |
| | | <el-card class="footer-page" v-if="total > 10"> |
| | | <el-pagination |
| | | small |
| | |
| | | color: '#73b2ff', |
| | | fillOpacity: 0.2, |
| | | opacity: 1, |
| | | dashArray: '5,5', |
| | | dashArray: '4,4', |
| | | dashSpeed: -5, |
| | | size: [20, 20] |
| | | } |
| | |
| | | this.basemapHelper.initBasemap(this.config, false) // 第二个参数,表示是否内网底图 |
| | | |
| | | this.serviceLayerHelper = Sgis.initTileLayersHelper(this.map) // 初始化业务底图助手 |
| | | console.log(this.$refs.popup.$el) |
| | | console.log('-------' + this.$refs.popup.$el) |
| | | this.serviceLayerHelper.initServiceLayers(this.config, this.$refs.popup) |
| | | |
| | | this.vectorLayerHelper = Sgis.initVectorLayersHelper(this.map) // 初始化动态要素图层助手 |