1486afb6 by unknown

20191219

1 parent 33692f80
...@@ -18,11 +18,11 @@ module.exports = { ...@@ -18,11 +18,11 @@ module.exports = {
18 assetsSubDirectory: 'static', 18 assetsSubDirectory: 'static',
19 assetsPublicPath: '/', 19 assetsPublicPath: '/',
20 proxyTable: { 20 proxyTable: {
21 // '/zj':{ 21 // '/zjtdt':{
22 // target: 'http://www.zjditu.cn', //源地址 22 // target: 'http://127.0.0.1:3000', //源地址
23 // changeOrigin: true, //改变源 23 // changeOrigin: true, //改变源
24 // pathRewrite: { 24 // pathRewrite: {
25 // '^/zj': 'http://127.0.0.1:7000' //路径重写 25 // '^/zjtdt': '' //路径重写
26 // } 26 // }
27 // } 27 // }
28 }, 28 },
......
1 <!--
2 * @Author: jiangbotao
3 * @Date: 2019-12-18 01:40:38
4 * @LastEditors: jiangbotao
5 * @LastEditTime: 2019-12-19 00:13:46
6 * @FilePath: \supermapvue\client\src\components\layers\Map_ags.vue
7 -->
1 <template> 8 <template>
2 <div > 9 <div >
3 <div id="map"></div> 10 <div id="map"></div>
...@@ -26,25 +33,12 @@ export default { ...@@ -26,25 +33,12 @@ export default {
26 "type": "raster", 33 "type": "raster",
27 "tiles": ["https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}"], 34 "tiles": ["https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}"],
28 "tileSize": 256 35 "tileSize": 256
29 },
30 "img": {
31 "type": "raster",
32 "tiles": ["https://services.wzmap.gov.cn/server/rest/services/TDT/YX2017/MapServer/tile/{z}/{y}/{x}?blankTile=false"],
33 "tileSize": 256
34 } 36 }
35 }, 37 },
36 "layers": [ 38 "layers": [{
37 // { 39 "id": "simple-tiles",
38 // "id": "simple-tiles",
39 // "type": "raster",
40 // "source": "raster-tiles",
41 // "minzoom": 0,
42 // "maxzoom": 22
43 // },
44 {
45 "id": "img_lyr",
46 "type": "raster", 40 "type": "raster",
47 "source": "img", 41 "source": "raster-tiles",
48 "minzoom": 0, 42 "minzoom": 0,
49 "maxzoom": 22 43 "maxzoom": 22
50 }] 44 }]
......
...@@ -32,32 +32,13 @@ export default { ...@@ -32,32 +32,13 @@ export default {
32 // crossDomain: true, 32 // crossDomain: true,
33 // success: function(data){ 33 // success: function(data){
34 // console.log(data); 34 // console.log(data);
35 var mapboxgl_style = 'zj/vtiles/styles/tdt/dark.json'; 35 var mapboxgl_style = '/zjtdt?vtiles/styles/tdt/streets_zw.json';
36 var map = new mapboxgl.Map({ 36 var map = new mapboxgl.Map({
37 container: 'map', 37 container: 'map',
38 zoom: 12, 38 zoom: 12,
39 center: [120.15, 30.25], 39 center: [120.15, 30.25],
40 renderWorldCopies: false,
41 localIdeographFontFamily: "'黑体','san-serif'",
42 pitch: 50,
43 bearing: -10,
44 style: mapboxgl_style, 40 style: mapboxgl_style,
45 shading: 'realistic', 41 crs: 'EPSG:4490',
46 light: {
47 main: {
48 intensity: 0.5,
49 shadow: false
50 },
51 ambient: {
52 intensity: 0.2
53 },
54 ambientCubemap: {
55 exposure: 1,
56 diffuseIntensity: 0.5,
57 specularIntensity: 2
58 }
59 },
60 zlevel: 1
61 }); 42 });
62 map.addControl(new mapboxgl.NavigationControl(), 'top-left'); 43 map.addControl(new mapboxgl.NavigationControl(), 'top-left');
63 // } 44 // }
......