| | |
| | | "dayjs": "^1.9.6", |
| | | "echarts": "^4.2.1", |
| | | "element-ui": "^2.14.1", |
| | | "esri-leaflet": "^3.0.1", |
| | | "fullscreen": "^1.1.1", |
| | | "jquery": "^3.5.1", |
| | | "js-cookie": "^2.2.0", |
| | |
| | | "leaflet.markercluster": "^1.4.1", |
| | | "lodash": "^4.17.10", |
| | | "nprogress": "^0.2.0", |
| | | "proj4": "^2.7.2", |
| | | "qs": "^6.10.1", |
| | | "rbush": "^3.0.1", |
| | | "screenfull": "^3.3.3", |
| | |
| | | |
| | | /***************Company 图层 悬浮框样式。*********************************/ |
| | | .company-bindTooltip { |
| | | background: none; |
| | | background: @background-color-split; |
| | | border: none; |
| | | color: red; |
| | | font-size: 16px; |
| | | font-weight: 900 !important; |
| | | text-shadow: 0 0 5px #fff; |
| | | //filter:Dropshadow(offx=1,offy=0,color=white) |
| | | //Dropshadow(offx=0,offy=1,color=white) |
| | | //Dropshadow(offx=0,offy=-1,color=white) |
| | | //Dropshadow(offx=-1,offy=0,color=white); |
| | | box-shadow: none; |
| | | -webkit-text-stroke: .5px #fff; |
| | | } |
| | | |
| | | .company-bindTooltip-hover h3 { |
| | |
| | | console.log(homeRouterName) |
| | | next() |
| | | } else if (!token) { |
| | | next({ |
| | | name: LOGIN_PAGE_ROUTE_NAME // 跳转到登录页 |
| | | }) |
| | | // next({ |
| | | // name: LOGIN_PAGE_ROUTE_NAME // 跳转到登录页 |
| | | // }) |
| | | console.log(LOGIN_PAGE_ROUTE_NAME) |
| | | next() |
| | | } else { |
| | | next() |
| | | } |
| | |
| | | // // 公共展示数据 |
| | | import PublicBounced from '@components/BaseNav/PublicBounced/PublicBounced' |
| | | import LayerFactory from '@components/LayerController/service/LayerFactory' |
| | | |
| | | const esri = require('esri-leaflet') |
| | | // const proj4 = require('proj4') |
| | | const proj4 = require('proj4') |
| | | window.proj4 = proj4 |
| | | const Proj = require('../components/plugin/proj4leaflet') |
| | | export default { |
| | | name: 'Temp', |
| | | components: { |
| | |
| | | }, |
| | | init () { |
| | | const mapcontainer = this.$refs.rootmap |
| | | const CRS_4490 = new Proj.CRS('EPSG:4490', '+proj=longlat +ellps=GRS80 +no_defs', { |
| | | resolutions: [ |
| | | 1.40625, |
| | | 0.703125, |
| | | 0.3515625, |
| | | 0.17578125, |
| | | 0.087890625, |
| | | 0.0439453125, |
| | | 0.02197265625, |
| | | 0.010986328125, |
| | | 0.0054931640625, |
| | | 0.00274658203125, |
| | | 0.001373291015625, |
| | | 6.866455078125E-4, |
| | | 3.4332275390625E-4, |
| | | 1.71661376953125E-4, |
| | | 8.58306884765625E-5, |
| | | 4.291534423828125E-5, |
| | | 2.1457672119140625E-5, |
| | | 1.0728836059570312E-5, |
| | | 5.364418029785156E-6, |
| | | 2.682209064925356E-6, |
| | | 1.3411045324626732E-6 |
| | | ], |
| | | origin: [-180, 90] |
| | | }) |
| | | console.log(mapcontainer) |
| | | console.log(CRS_4490) |
| | | debugger |
| | | this.map = Sgis.initMap(mapcontainer) |
| | | this.$refs.toolBox.map = this.map |
| | | |
| | |
| | | window.layerFactory = layerFactory |
| | | |
| | | this.basemapHelper = Sgis.initBasemapsHelper(this.map) // 初始化基础底图助手 |
| | | this.basemapHelper.initBasemap(this.config, true) // 第二个参数,表示是否内网底图 |
| | | this.basemapHelper.initBasemap(this.config, false) // 第二个参数,表示是否内网底图 |
| | | // this.vectorLayerHelper = Sgis.initVectorLayersHelper(this.map) // 初始化动态要素图层助手 |
| | | // this.vectorLayerHelper.initVectorLayers(this.config) |
| | | |
| | |
| | | // this.setBasemapHelper(this.basemapHelper) |
| | | // this.setServiceLayerHelper(this.serviceLayerHelper) |
| | | // this.setVectorLayerHelper(this.vectorLayerHelper) |
| | | this.loadArcgisImg() |
| | | }, |
| | | loadArcgisImg () { |
| | | // const url = 'http://10.246.132.249:8080/OneMapServer/rest/services/base-map-image-enterprise/MapServer/tile/{z}/{y}/{x}' |
| | | const url = 'http://10.246.132.249:8080/OneMapServer/rest/services/base-map-image-enterprise/MapServer' |
| | | // const arcgisTileLayer = this.L.tileLayer(url, { |
| | | const arcgisTileLayer = esri.tiledMapLayer({ url: url }) |
| | | // const arcgisTileLayer = esri.dynamicMapLayer({ url: url }) |
| | | arcgisTileLayer.addTo(this.map) |
| | | }, |
| | | onLayerClick () { |
| | | this.$refs.popup.setShow() |