Closed stefkas closed 7 years ago
Are you sure the div containing the map is visible whenever the js code to create the map is executed?
On 21 Sep 2016, at 20:14, Stefan Kaklamanis notifications@github.com wrote:
I use gmaps4rails 1.5.7 in my Rails 3.2.19 app, so the user can select his location. In the general administrator's page, the map loads without any problem and I (the admin) can select or fix the location of the user. But on the user's edit page, with exactly the same code as the page of the administrator, I have a broken map like this:
No matter if I drag the map, the visible part, is only a small piece of the given area. It is crazy as I have exactly the same code in both cases.
Do you have any idea for this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
You are absolutely right! I was digging into js code or css, but the problem was the fact that the map was loaded into a different hidden tab, not the main active.
Thank you for your help!
I use gmaps4rails 1.5.7 in my Rails 3.2.19 app, so the user can select his location. In the general administrator's page, the map loads without any problem and I (the admin) can select or fix the location of the user. But on the user's edit page, with exactly the same code as the page of the administrator, I have a broken map like this:
No matter if I drag the map, the visible part, is only a small piece of the given area. It is crazy as I have exactly the same code in both cases.
Do you have any idea for this?