angular6 - AGM(角度谷歌地图)的箭头符号(折线)
问题描述
在 Angular 6 中,我使用流动代码进行 agm-polyline。我想在 agm-polyline中添加箭头符号(折线)( https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-arrow )。但编译器显示错误,例如无法绑定到“图标”,因为它不是“agm-polyline”的已知属性......
<agm-polyline [strokeColor]="color" [icon]="icon" >
<agm-polyline-point *ngFor="let marker of markers ; let i=index" [latitude]="marker.lat" [longitude]="marker.lng">
</agm-polyline-point>
</agm-polyline>
对于 agm-polyline 箭头符号(折线)我应该怎么做?
解决方案
<agm-polyline [strokeColor]="'red'" [strokeWeight]="'1.5'">
<agm-icon-sequence [fixedRotation]="false"
[repeat]= "'50px'"
[offset]="100"
[path]="'FORWARD_OPEN_ARROW'">
</agm-icon-sequence>
<agm-polyline-point *ngFor="let line of circles_path"
[latitude]="line.lat"
[longitude]="line.long" >
</agm-polyline-point>
</agm-polyline>
推荐阅读
- amazon-web-services - 如何在终端中编辑 AWS 凭证?
- python - Scikit learn + Pandas ValueError:形状(1,1)和(10,10)未对齐
- ruby - 这个 SQL 调试输出来自哪里?
- reactjs - ReactJS(Typescript + Fabric UI) - 状态或数据处理程序?
- nativescript - 导航返回时 Nativescript Webviewinterface 回调不起作用
- java - 程序查找重复 n 个字符的字符串中“a”的数量?
- alpha-vantage - Alpha vantage - 如何获得特定日期的股票 SMA
- apache-zookeeper - 正确处理 CuratorFramework 关闭方法
- ios - 更改 UICollectionView 的反弹起点/终点
- amazon-web-services - 如何在 API Gateway 中检查 Cognito 权限