| | |
| | | <script> |
| | | import WfsHelper from '@components/helpers/WfsHelper' |
| | | import AjaxUtils from '@utils/AjaxUtils' |
| | | |
| | | // import { LayerEmergency } from '../../../../../conf/LayerEmergency' |
| | | import { LayerEmergencySource } from '../../../../conf/layers/LayerEmergencySource' |
| | | import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings' |
| | | import AnimalService from '../../../../components/LayerController/service/AnimalService' |
| | | import { pulseEffect } from '../../../../utils/utils' |
| | | |
| | | export default { |
| | | name: 'ResourcesQuery', |
| | |
| | | this.list = res.features |
| | | } |
| | | }, |
| | | // 查询定位功能 |
| | | handleLocation (val, index) { |
| | | this.activeNum = index |
| | | window.map.setView([val.properties.y, val.properties.x], 16) |
| | | this.animalService = new AnimalService({ |
| | | L: window.L, |
| | | layer: window.layer |
| | | }) |
| | | pulseEffect([val.properties.y, val.properties.x]) |
| | | } |
| | | } |
| | | } |