Browse Source

[完善]增加水源中心点标记

master
邵佳豪 4 years ago
parent
commit
b4b23cc2b5
  1. 2
      src/app/key-unit/basicinfo/basicinfo.component.scss
  2. 2
      src/app/ui/know-route/know-route.component.html
  3. 8
      src/app/ui/photoofthescene/photoofthescene.component.html
  4. 2
      src/app/ui/water-road/water-road.component.scss
  5. 9
      src/app/ui/water-road/water-road.component.ts

2
src/app/key-unit/basicinfo/basicinfo.component.scss

@ -137,7 +137,7 @@
.houseinfoinput{
width: 4.937891rem;
text-align: end;
margin-left:1.953125rem;
margin-left:0.976563rem;
}
}

2
src/app/ui/know-route/know-route.component.html

@ -23,7 +23,7 @@
<img [src]="imgsrc" [attr.data-original]="imgsrc.split('?')[0]" alt="">
</div>
<div class="image" *ngIf="inputShow && pattern == 'edit'">
<input id="selectedfile" (change)="filechange($event)" type="file" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp">
<input id="selectedfile" (change)="filechange($event)" type="file" name="imgFile">
</div>
</div>

8
src/app/ui/photoofthescene/photoofthescene.component.html

@ -12,7 +12,7 @@
</div>
</div>
<div class="input" *ngIf="!unitImg && isEditPattern">
<input type="file" (change)="filechange1($event,'1')" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp">
<input type="file" (change)="filechange1($event,'1')" name="imgFile">
</div>
<div *ngIf="unitImg" id="viewerjs1">
<img class="image" [src]="unitImg" alt="" [attr.data-original]="unitImg.split('?')[0]">
@ -34,7 +34,7 @@
</div>
</div>
<div class="input" *ngIf="!lingdaoImg && isEditPattern">
<input type="file" (change)="filechange1($event,'2')" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp">
<input type="file" (change)="filechange1($event,'2')" name="imgFile">
</div>
<div *ngIf="lingdaoImg" id="viewerjs2">
<img class="image" [src]="lingdaoImg" alt="" [attr.data-original]="lingdaoImg.split('?')[0]">
@ -58,7 +58,7 @@
</div>
</div>
<div class="input" *ngIf="!peopleImg && isEditPattern">
<input type="file" (change)="filechange1($event,'3')" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp">
<input type="file" (change)="filechange1($event,'3')" name="imgFile">
</div>
<div *ngIf="peopleImg" id="viewerjs3">
<img class="image" [src]="peopleImg" alt="" [attr.data-original]="peopleImg.split('?')[0]">
@ -80,7 +80,7 @@
</div>
</div>
<div class="input" *ngIf="!keysiteImg && isEditPattern">
<input type="file" (change)="filechange1($event,'4')" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp">
<input type="file" (change)="filechange1($event,'4')" name="imgFile">
</div>
<div *ngIf="keysiteImg" id="viewerjs4">
<img class="image" [src]="keysiteImg" alt="" [attr.data-original]="keysiteImg.split('?')[0]">

2
src/app/ui/water-road/water-road.component.scss

@ -80,4 +80,4 @@
background: linear-gradient(337deg, #FC7045 0%, #FF4923 100%);
}
}
}
}

9
src/app/ui/water-road/water-road.component.ts

@ -73,11 +73,18 @@ export class WaterRoadComponent implements OnInit {
Arr.push(viaMarker)
})
var marker = new AMap.Marker({
icon: "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",
// size: new AMap.Size(20, 20),
position: [108.377865, 22.763499],
offset: new AMap.Pixel(-25, -25)
});
this.map = new AMap.Map('map',{
center: [108.377865, 22.763499], //初始地图中心点
zoom: 16
});
marker.setMap(this.map);
this.map.on('click', (e) => {
console.log(e.lnglat.getLng() + ',' + e.lnglat.getLat())
});

Loading…
Cancel
Save