danielemoraschi / maplace.js

A Google Maps Javascript plugin for jQuery.
http://maplacejs.com/
MIT License
999 stars 190 forks source link

How to trigger 'resize' event? #154

Open nikbabchenko opened 8 years ago

nikbabchenko commented 8 years ago

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 commented 7 years ago

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

google.maps.event.trigger(maplaceObj.oMap, 'resize');
nikbabchenko commented 7 years ago

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 commented 7 years ago

Related to #173

GorakhJadhav commented 6 years ago

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