-
Notifications
You must be signed in to change notification settings - Fork 183
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
google map not loading with modaal #70
Comments
@mojbenzcar can you please provide an example of your setup with a link, a jsfiddle or code examples here? Without those we can't help you find a fix. We have successfully implemented google maps in a modaal instance using the |
@danhumaan Thanks for the quick response. I total missed |
Awesome @mojbenzcar, glad to hear! |
Hi, I'm sorry to reopen this issue (well, I'm not really reopening it). I just wonder if you guys can jsfiddle an example of loading a Google Map using Modaal. Don't really know how to start. I was going to use modaal iframe and just pass the map url but maybe is a better way... I'll understand if I don't get a response ;D Thank you! |
hi @cfaria, the iframe method will work, but if you want to embed the map using their api you can use the $('.my-link').modaal({
after_open: initMap
});
function initMap() {
// all your google maps js here.
} |
Thank you @danhumaan, I tested it yesterday and the iframe method doesn't work to search urls for Google Maps (the ones like this https://www.google.com/maps/search/xxxx). Seems like there is an option in the Google Maps page header that prevents loading an URL directly in an iframe: 'X-Frame-Options' to 'sameorigin'. So I guess I'd stick with the option you mentioned. Thank you for pointing me up to the good way! ;D |
No description provided.
The text was updated successfully, but these errors were encountered: