yourcelf / olwidget

Javascript library to replace textareas that contain WKT data with editable OpenLayers maps, and a django app using it for django forms and admin.
Other
91 stars 44 forks source link

Doesn't work in IE 9 Windows 7 64 bit #109

Closed cjvilla2012 closed 11 years ago

cjvilla2012 commented 12 years ago

Open your home page in IE 9 on Windows 7 64 bit and you will see that the map is not displayed, but the text boxes are:

http://docs.olwidget.org/en/latest/index.html

No warnings or prompts of any kind appear in IE 9.0.8112.16421

RobertoMaurizzi commented 11 years ago

The problem is due to a console.log call that IE (still) doesn't support:(*)

Message: 'console' is undefined Line: 277 Char: 13 Code: 0 URI: http://docs.olwidget.org/en/latest/_static/examples/js/olwidget.js

At that line we have a "console.log(map_type)" call

Possible fixes are redefining console.log if not available or... commenting out that line :-)

edit: (*) unless you hit F12 each time to open the Development Console... ^_^;

yourcelf commented 11 years ago

Oops, thanks. Removed it.