AckerApple / agm-overlays

Custom marker overlay for the @agm/core package
MIT License
25 stars 24 forks source link

Position is not correct #47

Open luwei6597 opened 4 years ago

luwei6597 commented 4 years ago

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"> <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-overlay ngFor="let pos of item.trace" [latitude]="pos.coordinate.coordinates[1]" [longitude]="pos.coordinate.coordinates[0]">

        </agm-overlay>  
    </ng-container>`
luwei6597 commented 4 years ago

image

I found the reason myself

AckerApple commented 4 years ago

Great work