|
|
|
@ -19,9 +19,9 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
selectedTitle:number
|
|
|
|
|
titleList = [ {name:'重点单位',iconImg:'/assets/images/uniticon.png'}, |
|
|
|
|
{name:'水源',iconImg:'/assets/images/watericon.png'}, |
|
|
|
|
{name:'测量工具',iconImg:'/assets/images/distanceicon.png'}, |
|
|
|
|
/* {name:'测面积',iconImg:'/assets/images/areaicon.png'}, */ |
|
|
|
|
{name:'图层选择',iconImg:'/assets/images/coverageicon.png'}] |
|
|
|
|
// {name:'测量工具',iconImg:'/assets/images/distanceicon.png'},
|
|
|
|
|
// {name:'图层选择',iconImg:'/assets/images/coverageicon.png'}
|
|
|
|
|
] |
|
|
|
|
keyUnitList:any = [] |
|
|
|
|
waterList = [
|
|
|
|
|
{id:'0',name:'消火栓',selected:false}, |
|
|
|
@ -310,10 +310,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
<div style="display: flex; align-items: center; justify-content: center; margin-top: 10px;"> |
|
|
|
|
<div class="btn" id="baseInformation"><img src="../../../assets/images/basicinfoicon.png" alt="">基本信息</div> |
|
|
|
|
<div class="btn" id="route"><img src="../../../assets/images/navicon.png" alt="">导航</div> |
|
|
|
|
<div class="btn" id="fullViewNavigation"><img src="../../../assets/images/panoramaicon.png" alt="">全景漫游</div> |
|
|
|
|
<div class="btn" id="threeeScene"><img src="../../../assets/images/3dicon.png" alt="">三维场景</div> |
|
|
|
|
<div class="btn" id="seePlan"><img src="../../../assets/images/planicon.png" alt="">查看预案</div> |
|
|
|
|
<div class="btn" id="share"><img src="../../../assets/images/shareicon.png" alt="">分享</div> |
|
|
|
|
<div class="btn" id="threeeScene"><img src="../../../assets/images/3dicon.png" alt="">三维场景编制</div> |
|
|
|
|
</div> |
|
|
|
|
</div>` |
|
|
|
|
// 创建一个自定义内容的 infowindow 实例
|
|
|
|
@ -325,10 +322,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
this.infoWindow.open(this.map); |
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#baseInformation'),'click',(event)=>{ this.baseInformation(item) })//基本信息点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#route'),'click',(event)=>{ this.route(item) })//导航点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#fullViewNavigation'),'click',(event)=>{ this.fullViewNavigation(item) })//全景漫游点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#threeeScene'),'click',(event)=>{ this.threeeScene(item) })//三维场景点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#seePlan'),'click',(event)=>{ this.seePlan(item) })//查看预案点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#share'),'click',(event)=>{ this.share(item) })//分享点击事件
|
|
|
|
|
}); |
|
|
|
|
markerArr.push(labelMarker) |
|
|
|
|
}) |
|
|
|
@ -737,10 +731,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
<div style="display: flex; align-items: center; justify-content: center; margin-top: 10px;"> |
|
|
|
|
<div class="btn" id="baseInformation"><img src="../../../assets/images/basicinfoicon.png" alt="">基本信息</div> |
|
|
|
|
<div class="btn" id="route"><img src="../../../assets/images/navicon.png" alt="">导航</div> |
|
|
|
|
<div class="btn" id="fullViewNavigation"><img src="../../../assets/images/panoramaicon.png" alt="">全景漫游</div> |
|
|
|
|
<div class="btn" id="threeeScene"><img src="../../../assets/images/3dicon.png" alt="">三维场景</div> |
|
|
|
|
<div class="btn" id="seePlan"><img src="../../../assets/images/planicon.png" alt="">查看预案</div> |
|
|
|
|
<div class="btn" id="share"><img src="../../../assets/images/shareicon.png" alt="">分享</div> |
|
|
|
|
<div class="btn" id="threeeScene"><img src="../../../assets/images/3dicon.png" alt="">三维场景编制</div> |
|
|
|
|
</div> |
|
|
|
|
</div>` |
|
|
|
|
// 创建一个自定义内容的 infowindow 实例
|
|
|
|
@ -752,10 +743,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
this.infoWindow.open(this.map); |
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#baseInformation'),'click',(event)=>{ this.baseInformation(e) })//基本信息点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#route'),'click',(event)=>{ this.route(e) })//导航点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#fullViewNavigation'),'click',(event)=>{ this.fullViewNavigation(e) })//全景漫游点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#threeeScene'),'click',(event)=>{ this.threeeScene(e) })//三维场景点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#seePlan'),'click',(event)=>{ this.seePlan(e) })//查看预案点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#share'),'click',(event)=>{ this.share(e) })//分享点击事件
|
|
|
|
|
marker.on('click', (ev) => { //marker点击事件
|
|
|
|
|
this.infoWindow = new AMap.InfoWindow({ |
|
|
|
|
position: [e.location.x,e.location.y], |
|
|
|
@ -765,10 +753,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
this.infoWindow.open(this.map); |
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#baseInformation'),'click',(event)=>{ this.baseInformation(e) })//基本信息点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#route'),'click',(event)=>{ this.route(e) })//导航点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#fullViewNavigation'),'click',(event)=>{ this.fullViewNavigation(e) })//全景漫游点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#threeeScene'),'click',(event)=>{ this.threeeScene(e) })//三维场景点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#seePlan'),'click',(event)=>{ this.seePlan(e) })//查看预案点击事件
|
|
|
|
|
this.renderer2.listen(this.elementRef.nativeElement.querySelector('#share'),'click',(event)=>{ this.share(e) })//分享点击事件
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.map.setZoomAndCenter(13,marker._position); //设置地图中心点
|
|
|
|
|