Skip to content

triggering resize event on map idle event - #117

Open
jonnedeprez wants to merge 1 commit into
asennikov:masterfrom
jonnedeprez:master
Open

triggering resize event on map idle event#117
jonnedeprez wants to merge 1 commit into
asennikov:masterfrom
jonnedeprez:master

Conversation

@jonnedeprez

Copy link
Copy Markdown

Fix for #116

@coveralls

coveralls commented Jul 31, 2017

Copy link
Copy Markdown

Coverage Status

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

Comment thread addon/components/g-map.js
this.set('map', new google.maps.Map(canvas, options));
map = new google.maps.Map(canvas, options);

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

Copy link
Copy Markdown
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.

3 participants