question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get zoom on change

See original GitHub issue

Issue description I’ve bound the zoomChange output to a simple logging function. However, I can’t get the zoom level.

Current behavior Seems like no arguments are being passed to my callback

Expected/desired behavior Zoom should be passed on each call

angular2 & angular2-google-maps version Angular2 2.0.0 AGM 0.15.0

<ion-content class="map">
  <sebm-google-map [latitude]="lat"
                   [longitude]="lng"
                   [zoom]="16"
                   (zoomChange)="zoomChange(z)">
  </sebm-google-map>
</ion-content>
    zoomChange(event){
    console.log(event);
    }

every time I zoom, I get undefined in the console.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
lazarljubenoviccommented, Oct 30, 2016

You need to change z into $event as argument in the template (it’s by design in Angular). z really is undefined in your template.

1reaction
sebholsteincommented, Nov 18, 2016

@jonathan-chin you can combine the (idle) output with the (centerChange) event. So track changes from the centerChange output when an idle gets emitted, you can start your logic. Does this help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently asked questions - Zoom Support
Read common questions about: Getting started with Zoom; Scheduling a meeting; Joining a meeting; Zoom Webinars; Meeting and webinar features; My ...
Read more >
The most common Zoom problems and how to fix them now
Here are some of the most common Zoom problems and how to troubleshoot them. From issues with your video to problems sharing your...
Read more >
Change Zoom advanced options for accessibility on Mac
To change these settings, choose Apple menu > System Settings, click Accessibility in the sidebar, click Zoom on the right, then click Advanced....
Read more >
Zoom in or magnify your Chromebook screen - Google Support
Reset zoom: Press Ctrl + 0. You can also make all pages bigger or change the font size. Make everything on your screen...
Read more >
Can't get zoom on change · Issue #724 - GitHub
Issue description I've bound the zoomChange output to a simple logging function. However, I can't get the zoom level.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found