地图内容
This commit is contained in:
parent
314b871493
commit
246f34358c
|
|
@ -187,26 +187,31 @@
|
||||||
monitorRender() {// 监测点位渲染
|
monitorRender() {// 监测点位渲染
|
||||||
this.soilStationList.forEach((item, index) => {
|
this.soilStationList.forEach((item, index) => {
|
||||||
let iconPath = '';
|
let iconPath = '';
|
||||||
let width = 35;
|
let width = 32;
|
||||||
let height = 35;
|
let height = 47;
|
||||||
// 根据设备类型设置不同的图标
|
// 根据设备类型设置不同的图标
|
||||||
switch(item.type) {
|
// switch(item.type) {
|
||||||
case 'soil':
|
// case 'soil':
|
||||||
iconPath = this.baseUrl + '/icon/device/soil.png';
|
// iconPath = this.baseUrl + '/icon/device/soil.png';
|
||||||
width = 32;
|
// width = 32;
|
||||||
height = 47;
|
// height = 47;
|
||||||
break;
|
// break;
|
||||||
case 'camera':
|
// case 'camera':
|
||||||
iconPath = this.baseUrl + '/icon/device/cam.png';
|
// iconPath = this.baseUrl + '/icon/device/cam.png';
|
||||||
width = 45;
|
// width = 45;
|
||||||
height = 45;
|
// height = 45;
|
||||||
break;
|
// break;
|
||||||
default:
|
// case '10_flowmeter':
|
||||||
iconPath = this.baseUrl + '/icon/device/default.png';
|
// iconPath = this.baseUrl + '/icon/device/liuliang.png';
|
||||||
}
|
// width = 45;
|
||||||
|
// height = 45;
|
||||||
|
// break;
|
||||||
|
// default:
|
||||||
|
// iconPath = this.baseUrl + '/icon/device/default.png';
|
||||||
|
// }
|
||||||
const markerItem = {
|
const markerItem = {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
iconPath: iconPath,
|
iconPath: this.baseUrl +'/' + item.mapIcon,
|
||||||
latitude: Number(item.latitude),
|
latitude: Number(item.latitude),
|
||||||
longitude: Number(item.longitude),
|
longitude: Number(item.longitude),
|
||||||
width: width,
|
width: width,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue