e
This commit is contained in:
@ -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>
|
||||||
|
|||||||
@ -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
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user