This commit is contained in:
Taric Xin
2022-03-07 17:42:58 +08:00
parent 83d43d2f15
commit 658f1666be
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<input id="pickerInput" [(ngModel)]="addressInput" placeholder="请输入地址" /> <input id="pickerInput" [(ngModel)]="addressInput" placeholder="请输入地址" />
</div> </div>
</div> </div>
<div class="map-container" id="container" tabindex="0" style="width: 100%; height: 500px"></div> <div class="map-container" id="modal-container" tabindex="0" style="width: 100%; height: 500px"></div>
<div *nzModalFooter> <div *nzModalFooter>
<button nz-button nzType="default" (click)="cancel()">取消</button> <button nz-button nzType="default" (click)="cancel()">取消</button>
<button nz-button nzType="primary" (click)="sure()">确定</button> <button nz-button nzType="primary" (click)="sure()">确定</button>

View File

@ -74,7 +74,7 @@ export class AmapPoiPickerComponent implements OnInit {
}); });
// 地图 // 地图
this.aMap = new AMap.Map('container', { this.aMap = new AMap.Map('modal-container', {
resizeEnable: true, resizeEnable: true,
zoom: 16 zoom: 16
}); });