agm-overlays icon indicating copy to clipboard operation
agm-overlays copied to clipboard

Position is not correct

Open luwei6597 opened this issue 4 years ago • 2 comments

Hi I have a problem image 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>

luwei6597 avatar Oct 05 '20 04:10 luwei6597

image

I found the reason myself

luwei6597 avatar Oct 05 '20 15:10 luwei6597

Great work

AckerApple avatar Oct 05 '20 17:10 AckerApple