我在Angular 7应用程序中使用AgmMap。如何在加载数据时禁用地图,使其灰显?应用程序在使用标记填充地图之前等待数据,我希望用户知道它正在等待数据,这样用户就不会假设他们正在查看的地图部分中没有标记。
有没有简单的disabled输入/参数可以使用?
类似于:[disabled]="mapLoading"
将如下所示:
<agm-map #agmMap
id="map-locater"
(mapReady)="mapReady($event)"
[disabled]="mapLoading"
[streetViewControl]="false"
[latitude]="lat"
[longitude]="lng"
[styles]="styles">发布于 2021-02-01 22:04:00
您可以使用disableDefaultUI="true“的属性
您可以使用下面的链接进行测试。https://stackblitz.com/edit/angular-google-maps-demo?file=app%2Fapp.component.html
https://stackoverflow.com/questions/65961540
复制相似问题