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

Gmaps4rails not showing #357

Closed
hkairi opened this issue Jul 3, 2013 · 8 comments
Closed

Gmaps4rails not showing #357

hkairi opened this issue Jul 3, 2013 · 8 comments

Comments

@hkairi
Copy link

hkairi commented Jul 3, 2013

Hi,

i am facing this issue : Gmaps 4 rails not showing except when i refresh !
I am using Rails4

@davidakachaos
Copy link

👍 Here neither....

@taylorbrooks
Copy link

Same. I've tried using Google Maps outside of the gem and it still doesn't work. So I think it's a problem with Rails 4 or my JS.

@hkairi
Copy link
Author

hkairi commented Jul 13, 2013

I think it is a problem caused by TurboLinks

@Jngai
Copy link

Jngai commented Jul 14, 2013

Hey my map is not showing as well..... using rails 4 here, maybe I have a js problem as well ?

@nordbit
Copy link

nordbit commented Aug 4, 2013

Turbolinks, wiselinks, JQueryMobile - any engine based on ajax call.
Look here:
#328
Issue is described here:
http://stackoverflow.com/questions/13807686/gmaps4rails-and-turbolinks-not-loading-without-full-page-refresh
Quick and dirty solution - disable Turbolink with "data-no-turbolink" for specified pages/links
It is not really gmaps4rails issue, but google api loaded in ajax call.

@aweis89
Copy link

aweis89 commented Aug 30, 2013

Using rails 4.0, and I can't get the map to work at all.
Any suggestions?

@hennzen
Copy link

hennzen commented Aug 31, 2013

Using "data-no-turbolink" solved this for me in Rails 4:
<%= link_to "Page with gmap", foo_path(foo), 'data-no-turbolink' => true %>

@hkairi
Copy link
Author

hkairi commented Sep 1, 2013

Thans @hennzen

I tried it with the option "data-no-turbolink" set to false ... and it worked !

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

7 participants