【问题标题】:iconUrl in agm markersagm 标记中的 iconUrl
【发布时间】:2019-07-14 21:54:42
【问题描述】:

我正在尝试将 iconUrl 属性合并到我的 agm 映射中。但是,当我收到此回复时,我不明白为什么。

<agm-marker [latitude] = "currentLat" [longitude]= "currentLng" 
[iconUrl]= "../../assets/images/polkaDots.jpg" >

    <!-- Marker info -->
    <agm-info-window>
        <h3>You are here</h3>
        <button>I am interested</button>

    </agm-info-window>
</agm-marker>

【问题讨论】:

    标签: html angular google-maps-api-3


    【解决方案1】:

    从 iconUrl 属性中删除方括号

    【讨论】:

      猜你喜欢
      • 2019-03-19
      • 1970-01-01
      • 2018-11-04
      • 2018-04-08
      • 1970-01-01
      • 2022-01-04
      • 1970-01-01
      • 2018-04-02
      • 1970-01-01
      相关资源
      最近更新 更多