/**
|
* 固废
|
*/
|
const AnimalService = require('../service/AnimalService').default
|
const AjaxUtils = require('../../../utils/AjaxUtils').default
|
|
module.exports = function () {
|
/**
|
* 返回marker对象数组
|
* @param L leaflet对象
|
*/
|
this.init = (layer, L) => {
|
this.animalService = new AnimalService({
|
L: L,
|
layer: layer,
|
LayerPopup: null
|
})
|
// AjaxUtils.get4JsonDataByUrl('http://10.246.162.140:8080/EPInterface/DataService/EPMapService.asmx/QueryStoragePlaceListByCompanyAndName', {
|
// AjaxUtils.get4JsonDataByUrl('http://xearth.cn:3000/wasteSolid/getSolidWaste', {
|
AjaxUtils.get4JsonDataByUrl('http://localhost:8888/static/SolidWaste.json', {
|
companyId: 3900100145,
|
userCode: 'wenchun.deng',
|
name: '',
|
marginWarr: '',
|
longDayWarr: ''
|
}, function (res) {
|
const data = res.data.Result.DataInfo
|
for (let i = 0; i < data.length; i++) {
|
// 经纬度 位置
|
const positionX = data[i].Latitude
|
const positionY = data[i].Longitude
|
layer.addLayer(L.marker([positionX, positionY], {}))
|
}
|
})
|
}
|
|
this.bindTooltip = (layer) => {
|
return '测试固废'
|
}
|
|
this.clickListener = (e) => {
|
this.animalService.pulseEffect(e.latlng)
|
console.log(e)
|
console.log(this.PublicBounced)
|
// return this.PublicBounced.$el
|
}
|
// 固废点击进行的 内容的设置
|
// SetSolidWasteContent (config, containerPopup) {
|
// this.SolidWastePopup = containerPopup
|
// }
|
}
|