| | |
| | | icon: L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [20, 20], |
| | | iconAnchor: [25, 25] |
| | | iconAnchor: [10, 10] |
| | | }) |
| | | }) |
| | | layer.addLayer(marker) |
| | |
| | | // 通过方法 向绑定弹框传递数据 |
| | | instance.setData(resultBasic.Result.DataInfo, resultDetailed.Result.DataInfo, 'gufei') |
| | | /* flyTo()弹出框平移事件 */ |
| | | this.setPanTo(e.latlng, 200) |
| | | this.setPanTo(e.latlng, 80) |
| | | } |
| | | |
| | | // flayTo() 弹框的可滑动事件 |
| | |
| | | icon: L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [20, 20], |
| | | iconAnchor: [10, 20] |
| | | iconAnchor: [10, 10] |
| | | }) |
| | | }) |
| | | layer.addLayer(marker) |
| | |
| | | // console.log(e.layer.options.test) |
| | | instance.$mount() |
| | | document.body.appendChild(instance.$el) |
| | | this.setPanTo(e.latlng, 240) |
| | | this.setPanTo(e.latlng, 80) |
| | | } |
| | | // 不同类型图片加载 |
| | | this.differentTypes = (ContrLevel) => { |
| | |
| | | icon: L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [20, 20], |
| | | iconAnchor: [25, 25] |
| | | iconAnchor: [10, 10] |
| | | }) |
| | | }) |
| | | layer.addLayer(marker) |
| | |
| | | // console.log(e.layer.options.test) |
| | | instance.$mount() |
| | | document.body.appendChild(instance.$el) |
| | | this.setPanTo(e.latlng, 240) |
| | | this.setPanTo(e.latlng, 80) |
| | | } |
| | | |
| | | // 根据返回值的不同标记不同图片 |