如何在引导模态中显示agm方向?

时间:2019-05-12 05:58:56

标签: angular google-maps bootstrap-modal

我试图在弹出模式中显示方向; agm方向工作得很好,但是当我放入模态主体时,必须放大以查看两个点。下面是我尝试的代码。

<agm-map [latitude]="lat" [longitude]="lng">
            <agm-direction [origin]="origin" [destination]="destination">
            </agm-direction>
</agm-map>

This is how it looks on page:This is how it looks on page:

But when I put this code in modal-body, it appears like this:But when I put this code in modal-body, it appears like this:

我尝试设置缩放属性,也尝试设置triggerResize(),如建议的here。但是我仍然对模态弹出窗口有相同的看法。

您能指导我在模式弹出窗口上获得正确的视图吗?

0 个答案:

没有答案