| | |
| | | import { QueryStoragePlaceListByCompanyAndName } from '@/api/request' |
| | | // 展示图片 |
| | | import defaultImg from '@assets/images/map-pages/basenav/solidwaste/voc.png' |
| | | import Setting from '@assets/images/map-pages/basenav/solidwaste/gf_green.png' |
| | | |
| | | import defaultImg from '../../../../public/assets/images/map/solidwaste/voc.png' |
| | | import setting from '../../../../public/assets/images/map/solidwaste/gf_green.png' |
| | | |
| | | // 底图业务展示点 |
| | | class AddSolidWasteHelper { |
| | |
| | | // 点击 事件 |
| | | marker.on('click', (e) => { |
| | | try { |
| | | // console.log(e) |
| | | // console.log(this.map.getCenter()) |
| | | // console.log(this.map.setCenter([e.target.getLatLng().lat, e.target.getLatLng().lng])) |
| | | // this.map.flyTo([e.target.getLatLng().lat, e.target.getLatLng().lng]) |
| | | // this.map.panTo([e.target.getLatLng().lat, e.target.getLatLng().lng], 100) |
| | | this.setPanTo(e.target.getLatLng(), 250) |
| | | console.log(e.target.getLatLng()) |
| | | this.setPanTo(e.target.getLatLng(), 200) |
| | | this.EffectOfPulse(e.target.getLatLng()) |
| | | this.SolidWastePopup.setData(data[i], 'gufei') |
| | | return this.SolidWastePopup.$el |
| | |
| | | EffectOfChange = defaultImg |
| | | this.EffectOfPulse(position, this.solidWasteMarkersLabels, this.SolidWasteLayerGroup) |
| | | } else { |
| | | EffectOfChange = Setting |
| | | EffectOfChange = setting |
| | | } |
| | | return EffectOfChange |
| | | } |