|
@@ -582,30 +582,34 @@ export default {
|
|
|
},
|
|
|
|
|
|
mapInit: function () {
|
|
|
- // var crs = new L.Proj.CRS(
|
|
|
- // "EPSG:2401",
|
|
|
- // "+proj=tmerc +lat_0=0 +lon_0=121.2751921 +k=1 +x_0=0 +y_0=-3457147.81 +ellps=krass +units=m +no_defs",
|
|
|
- // {
|
|
|
- // resolutions: [
|
|
|
- // 529.1666666666666, 264.5833333333333, 132.29166666666666, 52.916666666666664, 26.458333333333332,
|
|
|
- // 13.229166666666666, 5.291666666666666, 2.645833333333333, 1.3229166666666665, 0.5291666666666666,
|
|
|
- // 0.2645833333333333, 0.13229166666666664
|
|
|
- // ],
|
|
|
- // origin: [-66000, 75000],
|
|
|
- // bounds: L.bounds([-65000, -76000], [75000, 72000])
|
|
|
- // }
|
|
|
- // );
|
|
|
+ var crs = new L.Proj.CRS(
|
|
|
+ "EPSG:2401",
|
|
|
+ "+proj=tmerc +lat_0=0 +lon_0=121.2751921 +k=1 +x_0=0 +y_0=-3457147.81 +ellps=krass +units=m +no_defs",
|
|
|
+ {
|
|
|
+ resolutions: [529.1666666666666, 264.5833333333333,
|
|
|
+ 132.2919312505292, 52.91677250021167, 26.458386250105836,
|
|
|
+ 13.229193125052918, 5.291677250021167, 2.6458386250105836,
|
|
|
+ 1.3229193125052918, 0.5291677250021167, 0.26458386250105836,
|
|
|
+ 0.13229193125052918,
|
|
|
+ ],
|
|
|
+ // resolutions: [
|
|
|
+ // 529.1666666666666, 264.5833333333333, 132.29166666666666, 52.916666666666664, 26.458333333333332,
|
|
|
+ // 13.229166666666666, 5.291666666666666, 2.645833333333333, 1.3229166666666665, 0.5291666666666666,
|
|
|
+ // 0.2645833333333333, 0.13229166666666664
|
|
|
+ // ],
|
|
|
+ origin: [-66000, 75000],
|
|
|
+ bounds: L.bounds([-65000, -76000], [75000, 72000]),
|
|
|
+ }
|
|
|
+ );
|
|
|
|
|
|
map2DViewer.map = L.map("map2DViewer", {
|
|
|
- // crs: crs,
|
|
|
- // center: [31.074472887639914, 121.72521988031804],
|
|
|
- // zoom: 1,
|
|
|
- // minZoom: 1,
|
|
|
- // maxZoom: 12
|
|
|
+ crs: crs,
|
|
|
+ center: [31.074472887639914, 121.72521988031804],
|
|
|
+ zoom: 5,
|
|
|
+ minZoom: 1,
|
|
|
+ maxZoom: 10,
|
|
|
attributionControl: false,
|
|
|
zoomControl: false,
|
|
|
- minZoom: 10,
|
|
|
- maxZoom: 19,
|
|
|
// preferCanvas: true,
|
|
|
}).setView(systemConfig.mapViewer.center, systemConfig.mapViewer.zoom);
|
|
|
|
|
@@ -613,15 +617,15 @@ export default {
|
|
|
let guid = publicFun.buildGuid("baseLayer");
|
|
|
let layer = L.esri
|
|
|
.tiledMapLayer({
|
|
|
- url:
|
|
|
+ // url:
|
|
|
// "http://10.242.182.25:9099/8639b723819f4b63940b93cc28e1b3ed/operation?APPID=00d494ff5d7b27fae263410627ba52bd&AUTHKEY=zCcyaym9MSkH1FT3&ClientId=com.pudong.002456271.00d494ff5d7b27fae263410627ba52bd&OperationCode=com.pudong.esb.catalog.8639b723819f4b63940b93cc28e1b3ed.operation&AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM"
|
|
|
- // systemConfig.mapService +
|
|
|
- // "?servertype=Street_Purplish_Blue&token=" +
|
|
|
- // systemConfig.token,
|
|
|
-
|
|
|
- // url: "http://aimap.pudong.sh:5236/maps/rest/services/basemap-shanghai-gem-blue-sh2000/mapserver",
|
|
|
- // tileSize: 512
|
|
|
- systemConfig.blueBlackMap,
|
|
|
+ // systemConfig.mapService +
|
|
|
+ // "?servertype=Street_Purplish_Blue&token=" +
|
|
|
+ // systemConfig.token,
|
|
|
+ url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2018s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
|
|
|
+ // url: "http://aimap.pudong.sh:5236/maps/rest/services/basemap-shanghai-gem-blue-sh2000/mapserver",
|
|
|
+ tileSize: 512,
|
|
|
+ // systemConfig.blueBlackMap,
|
|
|
})
|
|
|
.addTo(map2DViewer.map);
|
|
|
// layer.setStyle({opacity:0,fillOpacity:0})
|