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

triggering resize event on map idle event #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonnedeprez
Copy link

Fix for #116

@coveralls
Copy link

coveralls commented Jul 31, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 2246942 on jonnedeprez:master into 63b0fd0 on asennikov:master.

this.set('map', new google.maps.Map(canvas, options));
map = new google.maps.Map(canvas, options);

google.maps.event.addListener(map, 'idle', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this event listener be removed after it fires the first time? Would that still solve your issue? I don't think we want every map triggering a resize every time it idles.

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

Successfully merging this pull request may close these issues.

None yet

3 participants