标记中的iconUrl

时间:2019-02-21 04:43:14

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

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

<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>

1 个答案:

答案 0 :(得分:0)

从iconUrl属性中删除方括号