Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Map in hidden div #201

Open
kelsonbatista opened this issue Mar 24, 2015 · 1 comment
Open

Map in hidden div #201

kelsonbatista opened this issue Mar 24, 2015 · 1 comment

Comments

@kelsonbatista
Copy link

Hello

I am using the sample "draggable" in a hidden div , but the map is not correctly shown (only half).

I have read that I need to input the code --> google.maps.event.trigger(map, 'resize')

But where do I put this piece of code? I can get the map working in hidden areas.

Thanks

Kelson

@Arwany
Copy link

Arwany commented Apr 14, 2015

I would say it works with no issues, if it makes some issues, you should call the map resize.

One thing to remember: be sure that you are passing the correct map object, getting that object is really tricky.

This is how I am making the call:

 google.maps.event.trigger($('#geoComplete').geocomplete('map'), 'resize');

I am leaving this comment for others, even it came too late.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants