Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position is not correct #47

Open
luwei6597 opened this issue Oct 5, 2020 · 2 comments
Open

Position is not correct #47

luwei6597 opened this issue Oct 5, 2020 · 2 comments

Comments

@luwei6597
Copy link

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
Copy link
Author

image

I found the reason myself

@AckerApple
Copy link
Owner

Great work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants