| | |
| | | </script> |
| | | |
| | | <style> |
| | | html, body, #app{ |
| | | color: #2c3e50; |
| | | height: 100vh; |
| | | width: 100vw; |
| | | margin: 0; |
| | | padding: 0; |
| | | overflow: hidden; |
| | | } |
| | | </style> |
| | |
| | | * @param L |
| | | */ |
| | | const initTileLayersHelper = (map, L) => { |
| | | let serviceLayerHelper = new ServiceLayerHelper({map, L}) |
| | | const serviceLayerHelper = new ServiceLayerHelper({ map, L }) |
| | | return serviceLayerHelper |
| | | } |
| | | |
| | |
| | | homeRouterName: 'Home', |
| | | loginRouteName: 'Login', |
| | | routeMode: 'history', |
| | | isProMACE: false, |
| | | tagNavCache: false, |
| | | defaultTheme: 'blue' |
| | | } |
| | |
| | | |
| | | // 几何类型常量 |
| | | const GEOM_POINT = 'POINT' |
| | | const GEOM_POLYLINE = 'POLYLINE' |
| | | const GEOM_POLYGON = 'POLYGON' |
| | | console.log(GEOM_POINT, GEOM_POLYLINE, GEOM_POLYGON) |
| | | // const GEOM_POLYLINE = 'POLYLINE' |
| | | // const GEOM_POLYGON = 'POLYGON' |
| | | |
| | | const mapOptions = { |
| | | crs: L.CRS.EPSG4326, |
| | |
| | | * } |
| | | */ |
| | | // 默认跳转路由 |
| | | import App from '../App' |
| | | import PipeLineIndex from '../views/baseInfoMgr/pipeline/PipeLineIndex' |
| | | import MapTemplate from '../views/MapTemplate' |
| | | |
| | |
| | | export const routes = [{ |
| | | path: '/', |
| | | name: 'Main', |
| | | component: App, |
| | | component: MapTemplate, |
| | | redirect: '/home', |
| | | children: [{ |
| | | path: 'home', |