apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Can't display the the map (JS errors) #218

Closed keysen closed 12 years ago

keysen commented 12 years ago

Hello,

I've tried a lot of thing and it's doesn't work, please have a look on my error :s, very strange :

Failed to load resource: the server responded with a status of 404 (Not Found) http://maps.gstatic.com/cat_js/intl/fr_fr/mapfiles/api-3/8/11/%7Bmain,geometry%7D.js?_=1337772082579 Uncaught RangeError: Maximum call stack size exceeded gmaps4rails.base.js:6

And no map are displayed.

apneadiving commented 12 years ago

Don't know.

Any public url?

Sent from my iPhone

On 23 mai 2012, at 13:43, keysenreply@reply.github.com wrote:

Hello,

I've tried a lot of thing and it's doesn't work, please have a look on my error :s, very strange : Failed to load resource: the server responded with a status of 404 (Not Found) http://maps.gstatic.com/cat_js/intl/fr_fr/mapfiles/api-3/8/11/%7Bmain,geometry%7D.js?_=1337772082579 Uncaught RangeError: Maximum call stack size exceeded gmaps4rails.base.js:6

And no map are displayed.


Reply to this email directly or view it on GitHub: https://github.com/apneadiving/Google-Maps-for-Rails/issues/218

keysen commented 12 years ago

Temporarly I have this one : http://keysen.alwaysdata.net/about_us

keysen commented 12 years ago

I've understood the problem, I use an extra script which is bgstretcher to set a background image with specific attributes and it seems to corrupt the loading of the map.

How can I load your script manually after my script for example ?

apneadiving commented 12 years ago

in the gmaps helper, add last_map: false

This way, the map won't try to load.

Whenever you want it to load, use Gmaps.loadMaps()

keysen commented 12 years ago

Awesome I will search for the good order to load these plugins.

Thanks a lot, have a nice day. I think you can close this topics :).