agm-overlays
agm-overlays copied to clipboard
Position is not correct
Hi I have a problem
Blue dot is the things by agm-overlays(this lib) and maker is agm marker. I used same data for these
But as you can see here it doesn't have route
How can I fix it?
<agm-marker *ngFor="let trace of traces" [latitude]="trace.latitude" [longitude]="trace.longitude"></agm-marker> <ng-container *ngFor="let item of tracing"> <agm-marker *ngFor="let pos of item.trace" [latitude]="pos.coordinate.coordinates[1]" [longitude]="pos.coordinate.coordinates[0]" iconUrl="assets/img/pos.png"></agm-marker> <agm-overlay *ngFor="let pos of item.trace" [latitude]="pos.coordinate.coordinates[1]" [longitude]="pos.coordinate.coordinates[0]"> <div style="width: 5px; height: 5px; border-radius: 50%; background-color: blue;"></div> </agm-overlay> </ng-container>
I found the reason myself
Great work