Skip to content

map zoom changes when agp-direction is updated #88

@DanielEFGS

Description

@DanielEFGS

i have the following code:

`<agm-map
    [latitude]="lat"
    [longitude]="lng"
    [zoom]="zoom"
    style="height: 100%; width: 100%;">

    <agm-marker *ngFor="let d of markers"
        (markerClick)="clickedMarker()"
        [latitude]="d.lat"
        [longitude]="d.lng"
        [visible]="d.visible"
        [iconUrl]="d.icon"
        [animation]="d.animation">    
    </agm-marker>

    <agm-direction
        *ngFor="let dir of current_route" 
        [origin]="dir.origin"
        [destination]="dir.destination"
        travelMode="DRIVING"
        [renderOptions]="renderOptions">
    </agm-direction>

</agm-map>`

when adding a new address the map zoom increases by itself, despite having the fixed zoom at 18.
How can i avoid this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions