|
@@ -19,6 +19,7 @@ export default {
|
|
layerId: "",
|
|
layerId: "",
|
|
zoom: "",
|
|
zoom: "",
|
|
iServerJieDaoSheQuMap: "",
|
|
iServerJieDaoSheQuMap: "",
|
|
|
|
+ iServerQkYingxiangtuMap: "",
|
|
iServerJilinshengAndQikaiMap: "",
|
|
iServerJilinshengAndQikaiMap: "",
|
|
datasourceName: "",
|
|
datasourceName: "",
|
|
datasetName: "",
|
|
datasetName: "",
|
|
@@ -31,6 +32,7 @@ export default {
|
|
dataUrl: "",
|
|
dataUrl: "",
|
|
workspace_qk: "",
|
|
workspace_qk: "",
|
|
workspace_jdsq: "",
|
|
workspace_jdsq: "",
|
|
|
|
+ workspace_qkyxt: "",
|
|
map_jilinShiLiang: "",
|
|
map_jilinShiLiang: "",
|
|
map_qikaiYingXiang: "",
|
|
map_qikaiYingXiang: "",
|
|
//选择用到的
|
|
//选择用到的
|
|
@@ -42,9 +44,9 @@ export default {
|
|
// 社区集合
|
|
// 社区集合
|
|
sqOptions: null,
|
|
sqOptions: null,
|
|
// 影像图/矢量图
|
|
// 影像图/矢量图
|
|
- yxtSlt: "yxt",
|
|
|
|
|
|
+ yxtSlt: null,
|
|
// 人房户/事件
|
|
// 人房户/事件
|
|
- rfhSj: "rfh",
|
|
|
|
|
|
+ rfhSj: null,
|
|
// 年份
|
|
// 年份
|
|
year: null,
|
|
year: null,
|
|
//事件详情页是否显示
|
|
//事件详情页是否显示
|
|
@@ -79,6 +81,8 @@ export default {
|
|
this.sqOptions = sqOptions;
|
|
this.sqOptions = sqOptions;
|
|
this.jieDao = jieDao;
|
|
this.jieDao = jieDao;
|
|
this.sheQu = sheQu;
|
|
this.sheQu = sheQu;
|
|
|
|
+ this.yxtSlt = yxtSlt;
|
|
|
|
+ this.rfhSj = rfhSj;
|
|
this.year = year;
|
|
this.year = year;
|
|
this.mapId = "";
|
|
this.mapId = "";
|
|
this.layers = [];
|
|
this.layers = [];
|
|
@@ -94,27 +98,40 @@ export default {
|
|
this.zoom = response.data.zoom;
|
|
this.zoom = response.data.zoom;
|
|
this.iServerJilinshengAndQikaiMap = response.data.superMapIServerJilinshengAndQikaiMap;
|
|
this.iServerJilinshengAndQikaiMap = response.data.superMapIServerJilinshengAndQikaiMap;
|
|
this.iServerJieDaoSheQuMap = response.data.superMapIServerJiedaoshequMap;
|
|
this.iServerJieDaoSheQuMap = response.data.superMapIServerJiedaoshequMap;
|
|
|
|
+ this.iServerQkYingxiangtuMap = response.data.superMapIServerJilinshengYingxaingAndQikaiMap;
|
|
this.dataUrl = response.data.superMapIServerJiedaoshequMap;
|
|
this.dataUrl = response.data.superMapIServerJiedaoshequMap;
|
|
this.url = response.data.superMapIServerJiedaoshequMap;
|
|
this.url = response.data.superMapIServerJiedaoshequMap;
|
|
this.workspace_qk = this.iServerJilinshengAndQikaiMap;//省矢量及区影像,固定加载。
|
|
this.workspace_qk = this.iServerJilinshengAndQikaiMap;//省矢量及区影像,固定加载。
|
|
this.workspace_jdsq = this.iServerJieDaoSheQuMap;//街道社区的地图服务路径
|
|
this.workspace_jdsq = this.iServerJieDaoSheQuMap;//街道社区的地图服务路径
|
|
|
|
+ this.workspace_qkyxt = this.iServerQkYingxiangtuMap;//汽开区影像图
|
|
this.map_jilinShiLiang = window.L.supermap.tiledMapLayer(this.workspace_qk, {
|
|
this.map_jilinShiLiang = window.L.supermap.tiledMapLayer(this.workspace_qk, {
|
|
noWrap: true
|
|
noWrap: true
|
|
});
|
|
});
|
|
- // this.map_qikaiYingXiang = window.L.supermap.tiledMapLayer(this.workspace_qk + '/经开影像 ', {
|
|
|
|
- // noWrap: true
|
|
|
|
- // });
|
|
|
|
|
|
+ this.map_qikaiYingXiang = window.L.supermap.tiledMapLayer(this.workspace_qkyxt + '/经开影像 ', {
|
|
|
|
+ noWrap: true
|
|
|
|
+ });
|
|
this.initSlt();
|
|
this.initSlt();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 矢量图
|
|
* 矢量图
|
|
*/
|
|
*/
|
|
initSlt: async function () {
|
|
initSlt: async function () {
|
|
this.layers.push(this.map_jilinShiLiang);//吉林矢量
|
|
this.layers.push(this.map_jilinShiLiang);//吉林矢量
|
|
- // this.layers.push(this.map_qikaiYingXiang);//经开影像
|
|
|
|
|
|
+ this.initYxt();
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 影像图
|
|
|
|
+ */
|
|
|
|
+ initYxt: async function () {
|
|
|
|
+ if(this.yxtSlt == 'yxt'){//影像图
|
|
|
|
+ this.layers.push(this.map_qikaiYingXiang);//汽开影像
|
|
|
|
+ }
|
|
this.initZxd();
|
|
this.initZxd();
|
|
},
|
|
},
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 事件落点
|
|
* 事件落点
|
|
*/
|
|
*/
|
|
@@ -124,12 +141,14 @@ export default {
|
|
year: this.year
|
|
year: this.year
|
|
}, this.map);
|
|
}, this.map);
|
|
},
|
|
},
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 中心点、zoom
|
|
* 中心点、zoom
|
|
*/
|
|
*/
|
|
initZxd: async function () {
|
|
initZxd: async function () {
|
|
this.initMap();
|
|
this.initMap();
|
|
},
|
|
},
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 加载地图
|
|
* 加载地图
|
|
*/
|
|
*/
|
|
@@ -277,7 +296,6 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
addMark: function (options) {
|
|
addMark: function (options) {
|
|
- console.log("iconList.camera",iconList.camera);
|
|
|
|
let that = this;
|
|
let that = this;
|
|
let marker = "markers" + options.id;
|
|
let marker = "markers" + options.id;
|
|
marker = L.marker(
|
|
marker = L.marker(
|
|
@@ -293,18 +311,17 @@ export default {
|
|
}
|
|
}
|
|
);
|
|
);
|
|
/**鼠标悬停打开popup**/
|
|
/**鼠标悬停打开popup**/
|
|
- // marker.on('mouseover', function () {
|
|
|
|
- // let html = "";
|
|
|
|
- // html += "<p class='v-p-color'>事件标题:" + options.eventTitle + "</p>";
|
|
|
|
- // html += "<p class='v-p-color'>上报时间:" + options.eventSbsj + "</p>";
|
|
|
|
- // html += "<p class='v-p-color'>上报人:" + options.eventSbrName + "</p>";
|
|
|
|
- // html += "<p class='v-p-color'>当前状态:" + getStateText(options.eventState) + "</p>";
|
|
|
|
- // this.bindPopup(html).openPopup(this.getLatLng());
|
|
|
|
- // });
|
|
|
|
|
|
+ marker.on('mouseover', function () {
|
|
|
|
+ let html = "";
|
|
|
|
+ html += "<p class='v-p-color'>摄像头名称:" + options.cameraName + "</p>";
|
|
|
|
+ html += "<p class='v-p-color'>摄像头类型:" + options.buildType + "</p>";
|
|
|
|
+ html += "<p class='v-p-color'>所属派出所:" + options.policeName + "</p>";
|
|
|
|
+ this.bindPopup(html).openPopup(this.getLatLng());
|
|
|
|
+ });
|
|
// /**鼠标移开关闭popup**/
|
|
// /**鼠标移开关闭popup**/
|
|
- // marker.on('mouseout', function () {
|
|
|
|
- // this.closePopup();
|
|
|
|
- // });
|
|
|
|
|
|
+ marker.on('mouseout', function () {
|
|
|
|
+ this.closePopup();
|
|
|
|
+ });
|
|
// marker.on('click', function () {
|
|
// marker.on('click', function () {
|
|
// getEventDetail(options.eventId).then(response => {
|
|
// getEventDetail(options.eventId).then(response => {
|
|
// that.$emit('child-event', response);
|
|
// that.$emit('child-event', response);
|