|
@@ -205,7 +205,7 @@ export default {
|
|
|
url: url,
|
|
|
// opacity: 0.8,
|
|
|
f: "json",
|
|
|
- format: 'png8',
|
|
|
+ format: "png8",
|
|
|
transparent: true,
|
|
|
// tileSize: 512,
|
|
|
// url: url,
|
|
@@ -677,8 +677,7 @@ export default {
|
|
|
// 遥感影像图层crs -- original
|
|
|
let crs = new L.Proj.CRS(
|
|
|
"EPSG:0986",
|
|
|
- "+proj=tmerc +lat_0=0 +lon_0=121.2751921 +k=1 +x_0=0 +y_0=-3457147.81 +ellps=krass +units=m +no_defs"
|
|
|
- ,
|
|
|
+ "+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: systemConfig.imageryLayer.resolutions,
|
|
|
origin: [-66000, 75000],
|
|
@@ -775,8 +774,9 @@ export default {
|
|
|
} else {
|
|
|
if (
|
|
|
// 切换到首页和疑点筛查页且图层不存在时重新渲染区域图
|
|
|
- this.$ifMenu("1", "") &&
|
|
|
- !map2DViewer.map.hasLayer(map2DViewer.groups["浦东新区_polygon"])
|
|
|
+ this.$ifMenu("1", "")
|
|
|
+ // &&
|
|
|
+ // !map2DViewer.map.hasLayer(map2DViewer.groups["浦东新区_polygon"])
|
|
|
) {
|
|
|
this.getJSonDataToStreet("", "");
|
|
|
// 切换到首页时需定位到当前图层
|
|
@@ -785,6 +785,7 @@ export default {
|
|
|
townLocationMap.get(this.$store.state.homeSpecialTown),
|
|
|
1
|
|
|
);
|
|
|
+ // console.log("切换到首页");
|
|
|
} else {
|
|
|
let polygon = townPolygonMap.get(this.$store.state.homeSpecialTown);
|
|
|
map2DViewer.map.fitBounds(polygon.getBounds());
|
|
@@ -796,7 +797,8 @@ export default {
|
|
|
let locationArr = townLocationMap.get(
|
|
|
this.$store.state.homeSpecialTown
|
|
|
);
|
|
|
- this.setView([locationArr[0], locationArr[1] + 0.15], 1);
|
|
|
+ this.setView([locationArr[0], locationArr[1] + 0.35], 1);
|
|
|
+ console.log("执行此步");
|
|
|
} else {
|
|
|
let locationArr = townLocationMap.get(
|
|
|
this.$store.state.homeSpecialTown
|
|
@@ -812,10 +814,13 @@ export default {
|
|
|
this.$ifMenu("2", "4")
|
|
|
) {
|
|
|
this.getJSonDataToStreet("", "");
|
|
|
+ let locationArr1 = townLocationMap.get(
|
|
|
+ this.$store.state.homeSpecialTown
|
|
|
+ );
|
|
|
// 切换到疑点筛查时均往右偏移一些
|
|
|
if (this.$store.state.homeSpecialTown === "全部") {
|
|
|
this.setView(
|
|
|
- townLocationMap.get(this.$store.state.homeSpecialTown),
|
|
|
+ [locationArr1[0],locationArr1[1]-0.16],
|
|
|
1
|
|
|
);
|
|
|
} else {
|