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

Internet Explorers complains about 'console not defined' #131

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hello there, When calling Gmaps.map.replaceMarkers(data) on IE browser (tested with 8 & 9), IE complains about a 'console not defined', and the points in the map are not visualized. Looking at the code, I found that on gmaps4rails.googlemaps.js.coffee, line 174, you try to write single markers on console, maybe for debug purposes; Is ok on browsers like Chrome and FF, but on IEE, I think that if you don't have already opened developer tools (with F12), the console doesn't exist anymore, and the error is shown. Can you please erase that line or do something else? Thank you so much for the good work.

apneadiving commented 12 years ago

Hi,

I did the mistake in 1.3.1. It's removed in 1.3.2.