jquery - Gmaps4rails : map not showing when loaded dynamically -


When I have a map using Gmaps4rails via a jazzery call ( $ ('# id') Displays / loads / Xyz) ), the map is not shown (instead a blank area is shown).

This page: After the page has loaded, call is done by calling map.reloadMap , however I do not know the ID of the element that should be called. The Gmaps4rails documentation does not help to read only the map source and read the source.

How can this be resolved?

Fyi, I've updated the source code, I've commented specifically on JS file.

The map itself is stored in the following JS variables:

  Gmaps4Rails.map   

But glad you got your problem Found solution of;)

Comments