-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
GoogleMap in modal #21
Comments
Hi, could you share your project source code? |
yes sure! However, if you see the second post, the streetview div is not loaded. I cannot see the reason for that. It would be perfect if you could also help me with google map divs positioning. I want them on the right of the post image with correct height. Thanks! |
what is the div id="pano" for? |
It's for streetview I guess. I've used official google sample |
I've displayed Google Charts and other contents like what you have which require the div sized properly when it is measured. The solution to your problem is probably to defer the Google Maps code until the modal dialog is shown. Fortunately Bootstrap has built-in event for that: https://getbootstrap.com/javascript/#js-events
Same goes for Boostrap popover, it has a shown event. |
I'm not familiar with RoR or Jekyll, so I cannot tell you right away where/how to incorporate this handler. |
Hi,
Thanks for your great work. I've chosen it since it matches my requirements nearly 100%.
However, I'm not able to add a Google Map div into the modal posts so that when you open each post, it shows a Google Map of specific location.
I've added two more attributes to post:
post.lat
andpost.lng
. And the problem is with the moment of render the map. It appears that once you load the whole page, it tries to load the map but since the modal is not opened, it is created with bad height&width. And once you open the modal, the map is rendered in grey box so the map itself is not displayed.Could you please add this feature support? How could I achieve it?
Thanks!
The text was updated successfully, but these errors were encountered: