CloudMade/Leaflet — Issue #519: Problem with getting my map to work in Opera
Author: lyh
Created: 2012-02-22 07:04:35+00:00
State: open

Here's my project (test link) http://sfpopos.com/test/

It works in Firefox, Chrome, and IE. But on Opera (the latest version, 11.61) the map doesn't ever appear. If I look in Opera's error console, it says:

Uncaught exception: TypeError: Cannot convert 'this._container' to object
Error thrown at line 6, column 24625 in (a, b) in http://sfpopos.com/test/js/leaflet.js:
if(this._container._leaflet)
called via Function.prototype.apply() from line 6, column 3393 in () in http://sfpopos.com/test/js/leaflet.js:
this.initialize&&this.initialize.apply(this,arguments)
called from line 4, column 0 in http://sfpopos.com/test/map.js:
var map = new L.Map('map');

Any idea what's causing this? Other Leaflet maps like the one on Leaflet's main site work fine.