Implement support for icons property of Google Maps Polyline object
See original GitHub issueIt appears that support for the icons property of Google Maps Polyline has been catered for somewhat (refer to interfaces https://angular-maps.com/api-docs/agm-core/interfaces/IconSequence.html#source line 242-247 where there is a definition of IconSequence). The IconSequence interface matches the required definition of the data the PolyLine object requires in its icons property (https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-dashed)
However the AgmPolyline directive does not contain an @Input() for the icons property so there does not seem to be a way (currently) to pass through the icons object which is necessary to create a dashed PolyLine.
It looks like a relatively simple change - I am happy to give it a go but need some guidance on my first time out updating a GH project.
Steps to reproduce and a minimal demo of the problem The below currently does nothing but I expect that once implemented this should be the correct code to pass through the icons data to the GM PolyLine [component]
public polyOptions:IconSequence = {
icon: {
path: 'M 0,-1 0,1',
strokeOpacity: 1,
scale: 4
},
offset: '0',
repeat: '20px'
}
[Template]
<agm-polyline [icons]="polyOptions" ...></agm>
Expected/desired behavior Would be nice if we could pass through an icons object to the PolyLine.
angular2 & angular-google-maps version Angular Version: 6 AGM: @agm/core": “^1.0.0-beta.3”
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:12
Top GitHub Comments
https://github.com/SebastianM/angular-google-maps/pull/1594
I create a pull request for “Implement support for icons property of Google Maps Polyline object”. waiting for merge approval.
Need this too +1