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

How to trigger 'resize' event? #154

Open
nikbabchenko opened this issue Oct 4, 2016 · 4 comments
Open

How to trigger 'resize' event? #154

nikbabchenko opened this issue Oct 4, 2016 · 4 comments
Milestone

Comments

@nikbabchenko
Copy link

Hello, can't figure it out.
I have similar event like here in https://snazzymaps.com/style/42/apple-maps-esque

Initially map width is 70% of the screen and when hiding a side panel it's width 100%.

how to fire 'resize' event of google map, like this:

google.maps.event.trigger(map, 'resize');

?

image

@danielemoraschi
Copy link
Owner

Sorry I've taken so long to reply, it should be as simple as:

google.maps.event.trigger(maplaceObj.oMap, 'resize');

@nikbabchenko
Copy link
Author

Thanks a lot for reply) Though, sure, I've handle it so long time ago.

I guess it would be useful to have it in docs :-)

@danielemoraschi danielemoraschi added this to the v0.2.11 milestone Jun 22, 2017
danielemoraschi pushed a commit that referenced this issue Jun 25, 2017
@danielemoraschi
Copy link
Owner

Related to #173

@GorakhJadhav
Copy link

Hi there,
Can I have one example to trigger resize event on map. I am unable to resize the map

your help will be really appreciated.

map issue

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

3 participants