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

mapView.zoom not changing zoom #447

Open
isabeladowsley opened this issue Nov 19, 2020 · 0 comments
Open

mapView.zoom not changing zoom #447

isabeladowsley opened this issue Nov 19, 2020 · 0 comments

Comments

@isabeladowsley
Copy link

isabeladowsley commented Nov 19, 2020

Hey!

In similar lines to what happened to #248 , I am trying to change the zoom level after clicking on a marker with an Android emulator. I've tried to redefine the zoom inside the onMarkerEvent() :

onMarkerEvent(args) {

        if (args.eventName === 'markerInfoWindowTapped') {
            this.routerExtenstions.navigate([`../item/${args.marker.userData.id}`], { relativeTo: this.activatedRoute });

        } else if (args.eventName === 'markerSelect') {
            this.zoom = 17;
            this.mapView.zoom = this.zoom;
        }
}

However, the zoom is not changing.

On map.component.tns.html I have:


<MapView #mapView [latitude]="latitude" [longitude]="longitude"
                [zoom]="zoom" [minZoom]="minZoom" [maxZoom]="maxZoom" [bearing]="bearing"
                [tilt]="tilt" i-padding="50,50,50,50" [padding]="padding" (mapReady)="onMapReady($event)"
                (markerSelect)="onMarkerEvent($event)" (markerInfoWindowTapped)="onMarkerEvent($event)" 
                (coordinateTapped)="onCoordinateTapped($event)"
                (cameraChanged)="onCameraChanged($event)" (mapAnimationsEnabled)="true"
                (cameraMove)="onCameraMove($event)">
        </MapView>   

Any ideas on how to fix this? I feel that should be something basic I am forgetting.

ps: I've tried the ideas from #248 but no success so far.

Thanks

@isabeladowsley isabeladowsley changed the title mapView.zoom not changing mapView.zoom not changing zoom Nov 19, 2020
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

1 participant