It 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"
Would love to see this feature.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
we need it too
need this.
I think this should be reopened, it is a pretty useful feature that the lib is missing
Need this too +1
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
Need this too +1
Need this
When can we expect it? I need it as well.
The issue is closed because it's a duplicate of #721, but keep in mind we are working on it
Most helpful comment
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.